/ Vijos /

记录详情

Runtime Error

/in/foo.cc: In function 'int main()':
/in/foo.cc:24:22: warning: format '%s' expects argument of type 'char*', but argument 2 has type 'int' [-Wformat=]
  scanf("%s\n",name[y]);
                      ^
/in/foo.cc:25:21: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'int' [-Wformat=]
  scanf("%d\n",sum[y]);
                     ^
/in/foo.cc:26:19: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'int' [-Wformat=]
  scanf("%d",sumall);
                   ^
/in/foo.cc:9:12: warning: 'n' is used uninitialized in this function [-Wuninitialized]
  for (i=1;i<=n;i++)
           ~^~~
# 状态 耗时 内存占用
#1 Runtime Error 3ms 208.0 KiB
#2 Runtime Error 3ms 332.0 KiB
#3 Runtime Error 3ms 256.0 KiB
#4 Runtime Error 3ms 256.0 KiB
#5 Runtime Error 3ms 280.0 KiB
#6 Runtime Error 3ms 256.0 KiB
#7 Runtime Error 2ms 384.0 KiB
#8 Runtime Error 3ms 336.0 KiB
#9 Runtime Error 3ms 340.0 KiB
#10 Runtime Error 2ms 216.0 KiB

信息

递交者
类型
递交
题目
P1001 谁拿了最多奖学金
语言
C++
递交时间
2017-08-09 15:29:03
评测时间
2017-08-09 15:29:03
评测机
分数
0
总耗时
32ms
峰值内存
384.0 KiB