unique.cpp: In function 'std::vector<int> PickUnique(int)':
unique.cpp:4:2: error: 'vector' was not declared in this scope
vector<int> ans = vector<int>(N, 1);
^~~~~~
unique.cpp:4:2: note: suggested alternative:
In file included from /usr/include/c++/7/vector:64:0,
from unique.h:1,
from unique.cpp:1:
/usr/include/c++/7/bits/stl_vector.h:216:11: note: 'std::vector'
class vector : protected _Vector_base<_Tp, _Alloc>
^~~~~~
unique.cpp:4:9: error: expected primary-expression before 'int'
vector<int> ans = vector<int>(N, 1);
^~~
unique.cpp:10:4: error: 'ans' was not declared in this scope
ans[i] = 0;
^~~
unique.cpp:19:4: error: 'ans' was not declared in this scope
ans[i] = 0;
^~~
unique.cpp:24:9: error: 'ans' was not declared in this scope
return ans;
^~~