tournament.cpp: In function 'int GetBestPosition(int, int, int, int*, int*, int*)':
tournament.cpp:3:5: error: 'vector' was not declared in this scope
3 | vector<int> remaining;
| ^~~~~~
tournament.cpp:3:12: error: expected primary-expression before 'int'
3 | vector<int> remaining;
| ^~~
tournament.cpp:4:33: error: 'remaining' was not declared in this scope
4 | for (int i = 0; i < N; i++) remaining.push_back(K[i]);
| ^~~~~~~~~
tournament.cpp:8:16: error: expected primary-expression before 'int'
8 | vector<int> knights = remaining;
| ^~~
tournament.cpp:9:9: error: 'knights' was not declared in this scope
9 | knights.insert(next(knights.begin(), i), R);
| ^~~~~~~
tournament.cpp:9:24: error: 'next' was not declared in this scope
9 | knights.insert(next(knights.begin(), i), R);
| ^~~~
tournament.cpp:13:52: error: 'max' was not declared in this scope
13 | for (int k = S[j]; k <= E[j]; k++) M = max(M, knights[k]);
| ^~~