foo.cc: In function 'int getint()':
foo.cc:23:1: warning: this 'while' clause does not guard... [-Wmisleading-indentation]
while((c<'0' || c>'9') && c!='-') c=getchar(); if(c=='-') q=1,c=getchar();
^~~~~
foo.cc:23:48: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'while'
while((c<'0' || c>'9') && c!='-') c=getchar(); if(c=='-') q=1,c=getchar();
^~
foo.cc:24:1: warning: this 'while' clause does not guard... [-Wmisleading-indentation]
while (c>='0' && c<='9') w=w*10+c-'0', c=getchar(); return q ? -w : w;
^~~~~
foo.cc:24:53: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'while'
while (c>='0' && c<='9') w=w*10+c-'0', c=getchar(); return q ? -w : w;
^~~~~~
foo.cc: In function 'int main()':
foo.cc:59:8: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("2001.in","r",stdin);
~~~~~~~^~~~~~~~~~~~~~~~~~~~~
foo.cc:60:8: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("2001.out","w",stdout);
~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务