art.cpp: In function 'int publish(std::vector<int>)':
art.cpp:5:17: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
5 | for (int i=0; i<R.size(); i++) cout << R [i] << " ";
| ~^~~~~~~~~
art.cpp: In function 'void answer(std::vector<int>)':
art.cpp:11:17: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
11 | for (int i=0; i<R.size(); i++) cout << R [i] << " ";
| ~^~~~~~~~~
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) {
| ~~~~~~~~~^~~~
/usr/bin/ld: /tmp/ccQUMAvW.o: in function `publish(std::vector<int, std::allocator<int> >)':
interface.cpp:(.text+0x60): multiple definition of `publish(std::vector<int, std::allocator<int> >)'; /tmp/ccGj6iYZ.o:art.cpp:(.text+0x0): first defined here
/usr/bin/ld: /tmp/ccQUMAvW.o: in function `answer(std::vector<int, std::allocator<int> >)':
interface.cpp:(.text+0x170): multiple definition of `answer(std::vector<int, std::allocator<int> >)'; /tmp/ccGj6iYZ.o:art.cpp:(.text+0x120): first defined here
/usr/bin/ld: /tmp/ccQUMAvW.o: in function `main':
interface.cpp:(.text.startup+0x0): multiple definition of `main'; /tmp/ccGj6iYZ.o:art.cpp:(.text.startup+0x0): first defined here
collect2: error: ld returned 1 exit status