/ CWOI /

记录详情

Runtime Error

/in/foo.cc: In function 'int main()':
/in/foo.cc:46:44: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'long long int*' [-Wformat=]
   for(int i=2;i<=n;i++) scanf("%I64d",&a[i]);
                                            ^
/in/foo.cc:50:24: warning: format '%d' expects argument of type 'int', but argument 2 has type 'long long int' [-Wformat=]
    printf("%I64d\n",ans);
                        ^
/in/foo.cc:56:21: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'long long int' [-Wformat=]
    scanf("%I64d",res);
                     ^
/in/foo.cc:57:26: warning: format '%d' expects argument of type 'int', but argument 2 has type 'long long int' [-Wformat=]
    printf("%I64d\n",res+i);
                          ^
/in/foo.cc:55:7: warning: 'res' may be used uninitialized in this function [-Wmaybe-uninitialized]
    ll res;
       ^~~
# 状态 耗时 内存占用
#1 Wrong Answer 3ms 384.0 KiB
#2 Wrong Answer 3ms 256.0 KiB
#3 Wrong Answer 3ms 256.0 KiB
#4 Wrong Answer 6ms 256.0 KiB
#5 Runtime Error 3ms 324.0 KiB
#6 Runtime Error 3ms 256.0 KiB
#7 Runtime Error 3ms 336.0 KiB
#8 Runtime Error 3ms 324.0 KiB
#9 Runtime Error 1ms 356.0 KiB
#10 Runtime Error 3ms 380.0 KiB

信息

递交者
类型
递交
题目
2017.07.17 P1 奶牛与程序
语言
C++
递交时间
2017-07-17 21:05:23
评测时间
2017-07-17 21:05:23
评测机
分数
0
总耗时
34ms
峰值内存
384.0 KiB