train.cpp: In function 'std::vector<int> who_wins(std::vector<int>, std::vector<int>, std::vector<int>, std::vector<int>)':
train.cpp:48:9: warning: init-statement in selection statements only available with '-std=c++17' or '-std=gnu++17'
48 | if(ok == 1 && (a[i] == 1 || ok2 == 1) Q.push(i), vis[i] = 1;
| ^~
train.cpp:48:43: error: expected ';' before 'Q'
48 | if(ok == 1 && (a[i] == 1 || ok2 == 1) Q.push(i), vis[i] = 1;
| ^~
| ;
train.cpp:49:5: error: expected primary-expression before '}' token
49 | }
| ^
train.cpp:48:66: error: expected ')' before '}' token
48 | if(ok == 1 && (a[i] == 1 || ok2 == 1) Q.push(i), vis[i] = 1;
| ~ ^
| )
49 | }
| ~
train.cpp:49:5: error: expected primary-expression before '}' token
49 | }
| ^