Wrong Answer

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/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/n","AAAAAAA");
      |            ~^
      |             |
      |             int
foo.cc:7:15: warning: format '%c' expects a matching 'int' argument [-Wformat=]
    7 |  printf("%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/n","AAAAAAA");
      |                ~^
      |                 |
      |                 int
foo.cc:7:19: warning: format '%c' expects a matching 'int' argument [-Wformat=]
    7 |  printf("%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/n","AAAAAAA");
      |                    ~^
      |                     |
      |                     int
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Wrong Answer Binary files usrout and answer 2ms 256.0 KiB

信息

递交者
类型
递交
题目
P1001 打印字符
语言
C++
递交时间
2022-07-08 13:29:33
评测时间
2022-07-08 13:29:33
评测机
分数
0
总耗时
2ms
峰值内存
256.0 KiB