foo.cc: In function 'int main()':
foo.cc:4:11: warning: format '%c' expects argument of type 'int', but argument 2 has type 'const char*' [-Wformat=]
4 | printf("%c/n","A");
| ~^ ~~~
| | |
| int const char*
| %s
foo.cc:5:11: warning: format '%c' expects argument of type 'int', but argument 2 has type 'const char*' [-Wformat=]
5 | printf("%c%c%c/n","AAA");
| ~^ ~~~~~
| | |
| int const char*
| %s
foo.cc:5:13: warning: format '%c' expects a matching 'int' argument [-Wformat=]
5 | printf("%c%c%c/n","AAA");
| ~^
| |
| int
foo.cc:5:15: warning: format '%c' expects a matching 'int' argument [-Wformat=]
5 | printf("%c%c%c/n","AAA");
| ~^
| |
| int
foo.cc:6:11: warning: format '%c' expects argument of type 'int', but argument 2 has type 'const char*' [-Wformat=]
6 | printf("%c%c%c%c%c/n","AAAAA");
| ~^ ~~~~~~~
| | |
| int const char*
| %s
foo.cc:6:13: warning: format '%c' expects a matching 'int' argument [-Wformat=]
6 | printf("%c%c%c%c%c/n","AAAAA");
| ~^
| |
| int
foo.cc:6:15: warning: format '%c' expects a matching 'int' argument [-Wformat=]
6 | printf("%c%c%c%c%c/n","AAAAA");
| ~^
| |
| int
foo.cc:6:17: warning: format '%c' expects a matching 'int' argument [-Wformat=]
6 | printf("%c%c%c%c%c/n","AAAAA");
| ~^
| |
| int
foo.cc:6:19: warning: format '%c' expects a matching 'int' argument [-Wformat=]
6 | printf("%c%c%c%c%c/n","AAAAA");
| ~^
| |
| int
foo.cc:7:11: warning: format '%c' expects argument of type 'int', but argument 2 has type 'const char*' [-Wformat=]
7 | printf("%c%c%c%c%c%c%c/n","AAAAAAA");
| ~^ ~~~~~~~~~
| | |
| int const char*
| %s
foo.cc:7:13: warning: format '%c' expects a matching 'int' argument [-Wformat=]
7 | printf("%c%c%c%c%c%c%c/n","AAAAAAA");
| ~^
| |
| int
foo.cc:7:15: warning: format '%c' expects a matching 'int' argument [-Wformat=]
7 | printf("%c%c%c%c%c%c%c/n","AAAAAAA");
| ~^
| |
| int
foo.cc:7:17: warning: format '%c' expects a matching 'int' argument [-Wformat=]
7 | printf("%c%c%c%c%c%c%c/n","AAAAAAA");
| ~^
| |
| int
foo.cc:7:19: warning: format '%c' expects a matching 'int' argument [-Wformat=]
7 | printf("%c%c%c%c%c%c%c/n","AAAAAAA");
| ~^
| |
| int
foo.cc:7:21: warning: format '%c' expects a matching 'int' argument [-Wformat=]
7 | printf("%c%c%c%c%c%c%c/n","AAAAAAA");
| ~^
| |
| int
foo.cc:7:23: warning: format '%c' expects a matching 'int' argument [-Wformat=]
7 | printf("%c%c%c%c%c%c%c/n","AAAAAAA");
| ~^
| |
| int
[Hydro](https://hydro.ac)提供评测服务