/in/foo.cc: In function 'void calc()':
/in/foo.cc:37:2: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
for(int k=0;k<n;k++)
^~~
/in/foo.cc:43:3: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for'
for(int i=0;i<=10000;i++){
^~~
/in/foo.cc: In function 'void out()':
/in/foo.cc:52:5: warning: suggest explicit braces to avoid ambiguous 'else' [-Wparentheses]
if(f[5000-i]!=-1)
^
/in/foo.cc:57:5: warning: suggest explicit braces to avoid ambiguous 'else' [-Wparentheses]
if(f[5000+i]!=-1)
^