/ Vijos /

记录详情

Runtime Error

/in/foo.cc: In function 'int main()':
/in/foo.cc:12:33: warning: format '%d' expects argument of type 'int*', but argument 3 has type 'long long int*' [-Wformat=]
     while(scanf("%s%I64d",s+1,&m)!=EOF){
                                 ^
/in/foo.cc:19:33: warning: overflow in implicit constant conversion [-Woverflow]
         memset(dp,INF,sizeof(dp));
                                 ^
/in/foo.cc:43:63: warning: format '%d' expects argument of type 'int', but argument 2 has type 'long long int' [-Wformat=]
         printf("%I64d %I64d %I64d %I64d\n",sum1,ans1,sum2,ans2);
                                                               ^
/in/foo.cc:43:63: warning: format '%d' expects argument of type 'int', but argument 3 has type 'long long int' [-Wformat=]
/in/foo.cc:43:63: warning: format '%d' expects argument of type 'int', but argument 4 has type 'long long int' [-Wformat=]
/in/foo.cc:43:63: warning: format '%d' expects argument of type 'int', but argument 5 has type 'long long int' [-Wformat=]
/in/foo.cc:43:64: warning: 'sum2' may be used uninitialized in this function [-Wmaybe-uninitialized]
         printf("%I64d %I64d %I64d %I64d\n",sum1,ans1,sum2,ans2);
                                                                ^
/in/foo.cc:43:64: warning: 'ans2' may be used uninitialized in this function [-Wmaybe-uninitialized]
/in/foo.cc:43:64: warning: 'sum1' may be used uninitialized in this function [-Wmaybe-uninitialized]
/in/foo.cc:43:64: warning: 'ans1' may be used uninitialized in this function [-Wmaybe-uninitialized]
# 状态 耗时 内存占用
#1 Runtime Error 14ms 7.797 MiB
#2 Runtime Error 9ms 4.43 MiB
#3 Runtime Error 3ms 1.727 MiB
#4 Runtime Error 14ms 8.02 MiB
#5 Runtime Error 2ms 1.203 MiB
#6 Runtime Error 14ms 7.742 MiB
#7 Runtime Error 2ms 1.238 MiB
#8 Runtime Error 2ms 1.223 MiB
#9 Runtime Error 2ms 1.477 MiB
#10 Runtime Error 4ms 2.215 MiB
#11 Runtime Error 13ms 7.391 MiB
#12 Runtime Error 4ms 2.723 MiB
#13 Runtime Error 2ms 1.641 MiB
#14 Runtime Error 13ms 7.598 MiB
#15 Runtime Error 4ms 2.594 MiB
#16 Runtime Error 2ms 1.352 MiB
#17 Runtime Error 3ms 1.75 MiB
#18 Runtime Error 10ms 6.48 MiB
#19 Runtime Error 14ms 7.852 MiB
#20 Runtime Error 14ms 7.844 MiB

信息

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