foo.cc: In function 'int main()':
foo.cc:37:1: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
for(int i=1;i<=n;i++) add(s[i]);for(int i=1;i<=n;i++) add(s[i]);
^~~
foo.cc:37:33: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
for(int i=1;i<=n;i++) add(s[i]);for(int i=1;i<=n;i++) add(s[i]);
^~~
foo.cc:34:8: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("1437.in","r",stdin);freopen("1437.out","w",stdout);
~~~~~~~^~~~~~~~~~~~~~~~~~~~~
foo.cc:34:37: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("1437.in","r",stdin);freopen("1437.out","w",stdout);
~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~
foo.cc:35:6: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&n);
~~~~~^~~~~~~~~
正在同步测试数据,请稍后
自豪的采用HydroJudge(https://github.com/hydro-dev/Hydro)进行评测。