foo.cc: In function 'int main()':
foo.cc:8:23: warning: comparison of integer expressions of different signedness: 'int' and 'size_t' {aka 'long unsigned int'} [-Wsign-compare]
8 | for (int i=0;i<strlen(s);i++)
| ~^~~~~~~~~~
foo.cc:17:33: warning: this 'else' clause does not guard... [-Wmisleading-indentation]
17 | else ans=-int((-sum/strlen(s))+0.5); cout<<ans<<endl;
| ^~~~
foo.cc:17:70: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'else'
17 | else ans=-int((-sum/strlen(s))+0.5); cout<<ans<<endl;
| ^~~~
foo.cc:19:17: warning: this 'else' clause does not guard... [-Wmisleading-indentation]
19 | else c=26+ans+'a';cout<<c<<endl;
| ^~~~
foo.cc:19:35: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'else'
19 | else c=26+ans+'a';cout<<c<<endl;
| ^~~~
foo.cc:20:23: warning: comparison of integer expressions of different signedness: 'int' and 'size_t' {aka 'long unsigned int'} [-Wsign-compare]
20 | for (int i=0;i<strlen(s);i++)
| ~^~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务