art.cpp: In function 'void solve(long long int)':
art.cpp:12:30: error: 'class std::vector<long long int>' has no member named 'pb'
12 | for(int i = 1;i<=n;i++)v.pb(i);
| ^~
art.cpp:16:26: error: could not convert 'v' from 'vector<long long int>' to 'vector<int>'
16 | ans[i] = publish(v);
| ^
| |
| vector<long long int>
art.cpp:17:11: error: 'class std::vector<long long int>' has no member named 'pb'
17 | v.pb(v[0]);
| ^~
art.cpp:26:12: error: could not convert 'v' from 'vector<long long int>' to 'vector<int>'
26 | answer(v);
| ^
| |
| vector<long long int>
interface.cpp: In function 'int publish(std::vector<int>)':
interface.cpp:20:17: warning: comparison of integer expressions of different signedness: 'std::vector<int>::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
20 | if(v.size() != N) {
| ~~~~~~~~~^~~~
interface.cpp: In function 'void answer(std::vector<int>)':
interface.cpp:36:17: warning: comparison of integer expressions of different signedness: 'std::vector<int>::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
36 | if(v.size() != N) {
| ~~~~~~~~~^~~~