gondola.cpp: In function 'int valid(int, int*)':
gondola.cpp:6:3: error: 'vector' was not declared in this scope
vector<int>ans;
^~~~~~
gondola.cpp:6:3: note: suggested alternative:
In file included from /usr/include/c++/7/vector:64:0,
from /usr/include/c++/7/queue:61,
from /usr/include/x86_64-linux-gnu/c++/7/bits/stdc++.h:86,
from gondola.cpp:1:
/usr/include/c++/7/bits/stl_vector.h:216:11: note: 'std::vector'
class vector : protected _Vector_base<_Tp, _Alloc>
^~~~~~
gondola.cpp:6:10: error: expected primary-expression before 'int'
vector<int>ans;
^~~
gondola.cpp:13:5: error: 'ans' was not declared in this scope
ans;
^~~
gondola.cpp:13:5: note: suggested alternative: 'abs'
ans;
^~~
abs