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