记录详情

Wrong Answer

foo.c: In function 'main':
foo.c:11:19: warning: format '%d' expects argument of type 'int', but argument 2 has type 'long int' [-Wformat=]
   11 |         printf("%1d %1d %1d %1d %1d",x,y,a,b,c);
      |                 ~~^                  ~
      |                   |                  |
      |                   int                long int
      |                 %1ld
foo.c:11:23: warning: format '%d' expects argument of type 'int', but argument 3 has type 'long int' [-Wformat=]
   11 |         printf("%1d %1d %1d %1d %1d",x,y,a,b,c);
      |                     ~~^                ~
      |                       |                |
      |                       int              long int
      |                     %1ld
foo.c:11:27: warning: format '%d' expects argument of type 'int', but argument 4 has type 'long int' [-Wformat=]
   11 |         printf("%1d %1d %1d %1d %1d",x,y,a,b,c);
      |                         ~~^              ~
      |                           |              |
      |                           int            long int
      |                         %1ld
foo.c:11:31: warning: format '%d' expects argument of type 'int', but argument 5 has type 'long int' [-Wformat=]
   11 |         printf("%1d %1d %1d %1d %1d",x,y,a,b,c);
      |                             ~~^            ~
      |                               |            |
      |                               int          long int
      |                             %1ld
foo.c:11:35: warning: format '%d' expects argument of type 'int', but argument 6 has type 'long int' [-Wformat=]
   11 |         printf("%1d %1d %1d %1d %1d",x,y,a,b,c);
      |                                 ~~^          ~
      |                                   |          |
      |                                   int        long int
      |                                 %1ld
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Wrong Answer User output longer than standard answer. 2ms 256.0 KiB

信息

递交者
类型
递交
题目
P1006 表达式运算(三)
语言
C
递交时间
2022-08-21 09:16:31
评测时间
2022-08-21 09:16:31
评测机
分数
0
总耗时
2ms
峰值内存
256.0 KiB