foo.cc: In function 'void out(int)':
foo.cc:26:36: warning: narrowing conversion of '((x % 10) + 48)' from 'int' to 'char' [-Wnarrowing]
26 | char sta[15] = { 1, x % 10 + '0' };
| ~~~~~~~^~~~~
foo.cc:27:29: warning: array subscript has type 'char' [-Wchar-subscripts]
27 | while (x /= 10) sta[++sta[0]] = x % 10 + '0';
| ^~~~~~~~
foo.cc:28:42: warning: array subscript has type 'char' [-Wchar-subscripts]
28 | while (sta[0]) putchar(sta[sta[0]--]);
| ~~~~~~^~
foo.cc: In function 'int main()':
foo.cc:37:13: warning: unused variable 'head' [-Wunused-variable]
37 | int head = 1;
| ^~~~
正在同步测试数据,请稍后
[Hydro](https://hydro.ac)提供评测服务