art.cpp:4:5: error: ambiguating new declaration of 'int solve(int)'
4 | int solve(int N){
| ^~~~~
In file included from art.cpp:3:
art.h:17:6: note: old declaration 'void solve(int)'
17 | void solve(int N);
| ^~~~~
art.cpp: In function 'int solve(int)':
art.cpp:13:20: error: 'puplish' was not declared in this scope; did you mean 'publish'?
13 | lol[i-1] = puplish(xd);
| ^~~~~~~
| publish
art.cpp:23:1: warning: no return statement in function returning non-void [-Wreturn-type]
23 | }
| ^
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) {
| ~~~~~~~~~^~~~