art.cpp:8:5: error: ambiguating new declaration of 'int solve(int)'
8 | int solve(int n){
| ^~~~~
In file included from art.cpp:2:
art.h:17:6: note: old declaration 'void solve(int)'
17 | void solve(int N);
| ^~~~~
art.cpp: In function 'int solve(int)':
art.cpp:19:35: error: could not convert 'temp' from 'vector<long long int>' to 'vector<int>'
19 | offsets.push_back(publish(temp));
| ^~~~
| |
| vector<long long int>
art.cpp:36:12: error: cannot convert 'std::vector<int>' to 'int' in return
36 | return result;
| ^~~~~~
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) {
| ~~~~~~~~~^~~~