permutation.cpp: In function 'void solve(int)':
permutation.cpp:12:9: error: 'N' was not declared in this scope
12 | S/=(N-1);
| ^
permutation.cpp: In lambda function:
permutation.cpp:18:34: error: 'd' was not declared in this scope
18 | if(abs(a[0]-a[n-1])!=d[0]) return;
| ^
permutation.cpp:25:28: error: 'd' was not declared in this scope
25 | int x=a[i-1]+t*d[i];
| ^
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);
| ~~~~~~^~~~~~~~~~~~~~~~~