permutation.cpp: In function 'int query(std::vector<int>)':
permutation.cpp:167:16: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
167 | for(int h=1; h<V.size(); h++){
| ~^~~~~~~~~
permutation.cpp: In function 'void answer(std::vector<int>)':
permutation.cpp:173:16: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
173 | for(int h=0; h<P.size(); h++){
| ~^~~~~~~~~
stub.cpp: In function 'int query(int*)':
stub.cpp:15:9: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
15 | fscanf(stdin, "%d", &x);
| ~~~~~~^~~~~~~~~~~~~~~~~
stub.cpp: In function 'int main(int, char**)':
stub.cpp:48:9: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
48 | fscanf(stdin, "%d", &N);
| ~~~~~~^~~~~~~~~~~~~~~~~
/usr/bin/ld: /tmp/ccu3VoDM.o: in function `query(std::vector<int, std::allocator<int> >)':
stub.cpp:(.text+0x1d0): multiple definition of `query(std::vector<int, std::allocator<int> >)'; /tmp/ccfYxd3Q.o:permutation.cpp:(.text+0x140): first defined here
/usr/bin/ld: /tmp/ccu3VoDM.o: in function `answer(std::vector<int, std::allocator<int> >)':
stub.cpp:(.text+0x280): multiple definition of `answer(std::vector<int, std::allocator<int> >)'; /tmp/ccfYxd3Q.o:permutation.cpp:(.text+0x1a0): first defined here
/usr/bin/ld: /tmp/ccu3VoDM.o: in function `main':
stub.cpp:(.text.startup+0x0): multiple definition of `main'; /tmp/ccfYxd3Q.o:permutation.cpp:(.text.startup+0x0): first defined here
collect2: error: ld returned 1 exit status