#include <iostream>
#include <vector>
#include <string>
#include <algorithm>
#include <sstream>

using namespace std;

vector<string> solution(vector<string> quiz)
{
vector<string> answer;
for (int i = 0; i < quiz.size(); i++)
{
stringstream ss(quiz[i]);
int init;
ss >> init;
char a, c;
int b, d;

while (ss >> a >> b >> c >> d)
{
if (a == '+')
{
init += b;
if (init == d) answer.push_back("O");
else answer.push_back("X");
}
else if (a == '-')
{
init -= b;
if (init == d) answer.push_back("O");
else answer.push_back("X");
}
}
}

return answer;
}

int main()
{
vector<string> quiz = {"19 - 6 = 13", "5 + 66 = 71", "5 - 15 = 63", "3 - 1 = 2"};

solution(quiz);
}


메인함수 arr의 7 - 3 = 11 에서 11을 저기 물음표 친 부분에 할당하고싶으면 여기서 어떻게 해야하죠 ..?