/ Vijos /

记录详情

Wrong Answer

/in/foo.c: In function 'main':
/in/foo.c:14:11: warning: format '%s' expects argument of type 'char *', but argument 2 has type 'char (*)[20]' [-Wformat=]
   scanf("%s", &stu[i].name);
           ^
/in/foo.c:17:11: warning: format '%s' expects argument of type 'char *', but argument 2 has type 'char (*)[10]' [-Wformat=]
   scanf("%s", &stu[i].Position);
           ^
/in/foo.c:18:11: warning: format '%s' expects argument of type 'char *', but argument 2 has type 'char (*)[2]' [-Wformat=]
   scanf("%s", &stu[i].Area);
           ^
/in/foo.c:33:36: warning: array subscript is above array bounds [-Warray-bounds]
   if (stu[i].a1 > 85 && stu[i].Area[2] == ch) {
                         ~~~~~~~~~~~^~~
/in/foo.c:45:2: warning: 'icount' may be used uninitialized in this function [-Wmaybe-uninitialized]
  printf("%d", icount);
  ^~~~~~~~~~~~~~~~~~~~
# 状态 耗时 内存占用
#1 Wrong Answer 0ms 208.0 KiB
#2 Wrong Answer 0ms 212.0 KiB
#3 Wrong Answer 0ms 216.0 KiB
#4 Wrong Answer 1ms 212.0 KiB
#5 Wrong Answer 0ms 216.0 KiB
#6 Wrong Answer 1ms 212.0 KiB
#7 Wrong Answer 1ms 216.0 KiB
#8 Wrong Answer 1ms 212.0 KiB
#9 Wrong Answer 0ms 212.0 KiB
#10 Wrong Answer 0ms 212.0 KiB

信息

递交者
类型
递交
题目
P1001 谁拿了最多奖学金
语言
C
递交时间
2018-12-25 12:05:55
评测时间
2018-12-25 12:05:55
评测机
分数
0
总耗时
9ms
峰值内存
216.0 KiB