art.cpp: In function 'void solve(int)':
art.cpp:3:2: error: 'vector' was not declared in this scope
3 | vector<int>a(n);
| ^~~~~~
art.cpp:3:2: note: suggested alternatives:
In file included from /usr/include/c++/10/vector:67,
from art.h:1,
from art.cpp:1:
/usr/include/c++/10/bits/stl_vector.h:389:11: note: 'std::vector'
389 | class vector : protected _Vector_base<_Tp, _Alloc>
| ^~~~~~
In file included from art.h:1,
from art.cpp:1:
/usr/include/c++/10/vector:86:13: note: 'std::pmr::vector'
86 | using vector = std::vector<_Tp, polymorphic_allocator<_Tp>>;
| ^~~~~~
art.cpp:3:9: error: expected primary-expression before 'int'
3 | vector<int>a(n);
| ^~~
art.cpp:4:24: error: 'a' was not declared in this scope
4 | for(int i=1;i<=n;i++) a[i-1]=i;
| ^
art.cpp:6:14: error: 'a' was not declared in this scope
6 | if(publish(a)==0){
| ^
art.cpp:10:26: error: 'a' was not declared in this scope
10 | }while(next_permutation(a.begin(),a.end()));
| ^
art.cpp:10:9: error: 'next_permutation' was not declared in this scope
10 | }while(next_permutation(a.begin(),a.end()));
| ^~~~~~~~~~~~~~~~
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) {
| ~~~~~~~~~^~~~