记录详情

Wrong Answer

foo.cc: In function ‘int main()’:
foo.cc:14:17: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long long int*’ [-Wformat=]
   14 |         scanf("%d",&a);
      |                ~^  ~~
      |                 |  |
      |                 |  long long int*
      |                 int*
      |                %lld
foo.cc:18:26: warning: format ‘%ld’ expects argument of type ‘long int*’, but argument 2 has type ‘long long int*’ [-Wformat=]
   18 |                 scanf("%ld%ld%ld",&x,&y,&z);
      |                        ~~^        ~~
      |                          |        |
      |                          |        long long int*
      |                          long int*
      |                        %lld
foo.cc:18:29: warning: format ‘%ld’ expects argument of type ‘long int*’, but argument 3 has type ‘long long int*’ [-Wformat=]
   18 |                 scanf("%ld%ld%ld",&x,&y,&z);
      |                           ~~^        ~~
      |                             |        |
      |                             |        long long int*
      |                             long int*
      |                           %lld
foo.cc:18:32: warning: format ‘%ld’ expects argument of type ‘long int*’, but argument 4 has type ‘long long int*’ [-Wformat=]
   18 |                 scanf("%ld%ld%ld",&x,&y,&z);
      |                              ~~^        ~~
      |                                |        |
      |                                |        long long int*
      |                                long int*
      |                              %lld
foo.cc:22:34: warning: format ‘%ld’ expects argument of type ‘long int*’, but argument 2 has type ‘long long int*’ [-Wformat=]
   22 |                         scanf("%ld",&b);
      |                                ~~^  ~~
      |                                  |  |
      |                                  |  long long int*
      |                                  long int*
      |                                %lld
foo.cc:31:29: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 2 has type ‘long long int’ [-Wformat=]
   31 |                   printf("%ld\n",n[t]);
      |                           ~~^    ~~~~
      |                             |       |
      |                             |       long long int
      |                             long int
      |                           %lld
# 状态 耗时 内存占用
#1 Accepted 3ms 536.0 KiB
#2 Accepted 2ms 320.0 KiB
#3 Accepted 3ms 536.0 KiB
#4 Accepted 2ms 536.0 KiB
#5 Accepted 2ms 536.0 KiB
#6 Accepted 2ms 536.0 KiB
#7 Accepted 2ms 536.0 KiB
#8 Wrong Answer User output longer than standard answer. 19ms 540.0 KiB
#9 Wrong Answer User output longer than standard answer. 20ms 536.0 KiB
#10 Wrong Answer User output longer than standard answer. 20ms 768.0 KiB

信息

递交者
类型
递交
题目
P1504 Problem 2A.拆弹专家
语言
C++
递交时间
2024-10-05 23:32:33
评测时间
2024-10-05 23:32:33
评测机
分数
70
总耗时
81ms
峰值内存
768.0 KiB