permutation.cpp: In function 'int Query(std::vector<int>)':
permutation.cpp:11:12: error: 'query' was not declared in this scope
return query(a);
^~~~~
permutation.cpp:11:12: note: suggested alternative: 'Query'
return query(a);
^~~~~
Query
permutation.cpp: In function 'void solve(int)':
permutation.cpp:83:13: error: 'answer' was not declared in this scope
answer(P);
^~~~~~
permutation.cpp:83:13: note: suggested alternative: 'assert'
answer(P);
^~~~~~
assert
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);
~~~~~~^~~~~~~~~~~~~~~~~