foo.cc: In function 'void insert(char*)':
foo.cc:26:34: warning: array subscript has type 'char' [-Wchar-subscripts]
26 | s[k+1]=s[k];
| ^
foo.cc:27:19: warning: array subscript has type 'char' [-Wchar-subscripts]
27 | s[j]=',';
| ^
foo.cc: In function 'int main()':
foo.cc:38:22: warning: comparison of integer expressions of different signedness: 'int' and 'size_t' {aka 'long unsigned int'} [-Wsign-compare]
38 | for(int i=0;i<strlen(s);i++)
| ~^~~~~~~~~~
正在同步测试数据,请稍后
[Hydro](https://hydro.ac)提供评测服务