记录详情

Wrong Answer

foo.cc: In function 'int main()':
foo.cc:7:17: warning: format '%c' expects argument of type 'char*', but argument 2 has type 'int*' [-Wformat=]
    7 |         scanf("%c%c%c%c%c",&a,&b,&c,&d,&e);
      |                ~^          ~~
      |                 |          |
      |                 char*      int*
      |                %d
foo.cc:7:19: warning: format '%c' expects argument of type 'char*', but argument 3 has type 'int*' [-Wformat=]
    7 |         scanf("%c%c%c%c%c",&a,&b,&c,&d,&e);
      |                  ~^           ~~
      |                   |           |
      |                   char*       int*
      |                  %d
foo.cc:7:21: warning: format '%c' expects argument of type 'char*', but argument 4 has type 'int*' [-Wformat=]
    7 |         scanf("%c%c%c%c%c",&a,&b,&c,&d,&e);
      |                    ~^            ~~
      |                     |            |
      |                     char*        int*
      |                    %d
foo.cc:7:23: warning: format '%c' expects argument of type 'char*', but argument 5 has type 'int*' [-Wformat=]
    7 |         scanf("%c%c%c%c%c",&a,&b,&c,&d,&e);
      |                      ~^             ~~
      |                       |             |
      |                       char*         int*
      |                      %d
foo.cc:7:25: warning: format '%c' expects argument of type 'char*', but argument 6 has type 'int*' [-Wformat=]
    7 |         scanf("%c%c%c%c%c",&a,&b,&c,&d,&e);
      |                        ~^              ~~
      |                         |              |
      |                         char*          int*
      |                        %d
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Wrong Answer Read 1233, expect No. 3ms 256.0 KiB
#2 Wrong Answer Read 12345, expect Yes. 2ms 256.0 KiB
#3 Wrong Answer Binary files usrout and answer 2ms 256.0 KiB
#4 Wrong Answer Binary files usrout and answer 2ms 256.0 KiB
#5 Wrong Answer Read 72272, expect Yes. 1ms 256.0 KiB

信息

递交者
类型
递交
题目
A4-3 回文数专题:回文数判断
比赛
2022年迎新赛(第三场)
语言
C++
递交时间
2022-09-16 19:40:50
评测时间
2022-09-16 19:40:50
评测机
分数
0
总耗时
13ms
峰值内存
256.0 KiB