Anna.cpp: In function 'void Anna(int, long long int, int, int*)':
Anna.cpp:5:5: error: 'vector' was not declared in this scope
vector<int> ans(N,-1);
^~~~~~
Anna.cpp:5:12: error: expected primary-expression before 'int'
vector<int> ans(N,-1);
^~~
Anna.cpp:7:9: error: 'ans' was not declared in this scope
ans[P[i]] = 0;
^~~
Anna.cpp:10:13: error: 'ans' was not declared in this scope
if (ans[i] == 0 || ans[i+1] == 0) {
^~~
Anna.cpp:33:16: error: 'ans' was not declared in this scope
assert(ans[i] == 0 || ans[i] == 1);
^~~
Anna.cpp:33:9: error: 'assert' was not declared in this scope
assert(ans[i] == 0 || ans[i] == 1);
^~~~~~
Anna.cpp:33:9: note: suggested alternative: 'short'
assert(ans[i] == 0 || ans[i] == 1);
^~~~~~
short