permutation.cpp: In function 'void query(std::vector<int>)':
permutation.cpp:36:19: error: return-statement with a value, in function returning 'void' [-fpermissive]
return query(a);
^
permutation.cpp: In function 'void solve(int)':
permutation.cpp:51:19: error: void value not ignored as it ought to be
d[N] = query(q);
^
permutation.cpp:55:23: error: void value not ignored as it ought to be
d[j] = query(q);
^
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);
~~~~~~^~~~~~~~~~~~~~~~~