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]
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]
fscanf(stdin, "%d", &N);
~~~~~~^~~~~~~~~~~~~~~~~
/tmp/cc3Iyp2I.o: In function `query(std::vector<int, std::allocator<int> >)':
stub.cpp:(.text+0x1b0): multiple definition of `query(std::vector<int, std::allocator<int> >)'
/tmp/ccEzMlKH.o:permutation.cpp:(.text+0x120): first defined here
/tmp/cc3Iyp2I.o: In function `answer(std::vector<int, std::allocator<int> >)':
stub.cpp:(.text+0x230): multiple definition of `answer(std::vector<int, std::allocator<int> >)'
/tmp/ccEzMlKH.o:permutation.cpp:(.text+0x1a0): first defined here
collect2: error: ld returned 1 exit status