/ Vijos /

记录详情

Wrong Answer

foo.cc: In function 'int main()':
foo.cc:12:24: warning: format '%d' expects argument of type 'int*', but argument 3 has type 'long long int*' [-Wformat=]
   12 |     while(scanf("%s%I64d",s+1,&m)!=EOF){
      |                    ~~~~^      ~~
      |                        |      |
      |                        int*   long long int*
      |                    %I64lld
foo.cc:19:19: warning: overflow in conversion from 'long long int' to 'int' changes value from '4557430888798830399' to '1061109567' [-Woverflow]
   19 |         memset(dp,INF,sizeof(dp));
      |                   ^~~
foo.cc:43:21: warning: format '%d' expects argument of type 'int', but argument 2 has type 'long long int' [-Wformat=]
   43 |         printf("%I64d %I64d %I64d %I64d\n",sum1,ans1,sum2,ans2);
      |                 ~~~~^                      ~~~~
      |                     |                      |
      |                     int                    long long int
      |                 %I64lld
foo.cc:43:27: warning: format '%d' expects argument of type 'int', but argument 3 has type 'long long int' [-Wformat=]
   43 |         printf("%I64d %I64d %I64d %I64d\n",sum1,ans1,sum2,ans2);
      |                       ~~~~^                     ~~~~
      |                           |                     |
      |                           int                   long long int
      |                       %I64lld
foo.cc:43:33: warning: format '%d' expects argument of type 'int', but argument 4 has type 'long long int' [-Wformat=]
   43 |         printf("%I64d %I64d %I64d %I64d\n",sum1,ans1,sum2,ans2);
      |                             ~~~~^                    ~~~~
      |                                 |                    |
      |                                 int                  long long int
      |                             %I64lld
foo.cc:43:39: warning: format '%d' expects argument of type 'int', but argument 5 has type 'long long int' [-Wformat=]
   43 |         printf("%I64d %I64d %I64d %I64d\n",sum1,ans1,sum2,ans2);
      |                                   ~~~~^                   ~~~~
      |                                       |                   |
      |                                       int                 long long int
      |                                   %I64lld
foo.cc:43:15: warning: 'sum2' may be used uninitialized [-Wmaybe-uninitialized]
   43 |         printf("%I64d %I64d %I64d %I64d\n",sum1,ans1,sum2,ans2);
      |         ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
foo.cc:11:40: note: 'sum2' was declared here
   11 |     long long i,j,k,n,m,ans1,ans2,sum1,sum2;
      |                                        ^~~~
foo.cc:43:15: warning: 'sum1' may be used uninitialized [-Wmaybe-uninitialized]
   43 |         printf("%I64d %I64d %I64d %I64d\n",sum1,ans1,sum2,ans2);
      |         ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
foo.cc:11:35: note: 'sum1' was declared here
   11 |     long long i,j,k,n,m,ans1,ans2,sum1,sum2;
      |                                   ^~~~
foo.cc:43:15: warning: 'ans2' may be used uninitialized [-Wmaybe-uninitialized]
   43 |         printf("%I64d %I64d %I64d %I64d\n",sum1,ans1,sum2,ans2);
      |         ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
foo.cc:11:30: note: 'ans2' was declared here
   11 |     long long i,j,k,n,m,ans1,ans2,sum1,sum2;
      |                              ^~~~
foo.cc:43:15: warning: 'ans1' may be used uninitialized [-Wmaybe-uninitialized]
   43 |         printf("%I64d %I64d %I64d %I64d\n",sum1,ans1,sum2,ans2);
      |         ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
foo.cc:11:25: note: 'ans1' was declared here
   11 |     long long i,j,k,n,m,ans1,ans2,sum1,sum2;
      |                         ^~~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Wrong Answer User output longer than standard answer. 291ms 7.77 MiB
#2 Wrong Answer User output longer than standard answer. 146ms 4.418 MiB
#3 Wrong Answer User output longer than standard answer. 10ms 1.652 MiB
#4 Wrong Answer User output longer than standard answer. 293ms 7.895 MiB
#5 Wrong Answer User output longer than standard answer. 2ms 1.152 MiB
#6 Wrong Answer User output longer than standard answer. 289ms 7.703 MiB
#7 Wrong Answer User output longer than standard answer. 4ms 1.152 MiB
#8 Wrong Answer User output longer than standard answer. 2ms 1.152 MiB
#9 Wrong Answer User output longer than standard answer. 5ms 1.402 MiB
#10 Wrong Answer User output longer than standard answer. 13ms 2.152 MiB
#11 Wrong Answer User output longer than standard answer. 371ms 7.375 MiB
#12 Wrong Answer User output longer than standard answer. 40ms 2.758 MiB
#13 Wrong Answer User output longer than standard answer. 4ms 1.527 MiB
#14 Wrong Answer User output longer than standard answer. 303ms 7.566 MiB
#15 Wrong Answer User output longer than standard answer. 20ms 2.527 MiB
#16 Wrong Answer User output longer than standard answer. 5ms 1.277 MiB
#17 Wrong Answer User output longer than standard answer. 6ms 1.652 MiB
#18 Wrong Answer User output longer than standard answer. 251ms 6.383 MiB
#19 Wrong Answer User output longer than standard answer. 373ms 7.805 MiB
#20 Wrong Answer User output longer than standard answer. 370ms 7.867 MiB

信息

递交者
类型
递交
题目
P1455 最小与最大
语言
C++
递交时间
2023-11-13 21:39:05
评测时间
2023-11-13 21:39:05
评测机
分数
0
总耗时
2807ms
峰值内存
7.895 MiB