watching.cpp: In function 'int main()':
watching.cpp:9:3: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
9 | if(n<y) y=n; if(n-y<x) x=n-y;
| ^~
watching.cpp:9:16: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
9 | if(n<y) y=n; if(n-y<x) x=n-y;
| ^~
watching.cpp:8:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
8 | scanf("%d%d%d", &n, &x, &y);
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~
watching.cpp:10:21: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
10 | rep(i, 1, n) scanf("%d", a+i);
| ~~~~~^~~~~~~~~~~