/ OPS /

记录详情

Runtime Error

/in/foo.c: In function 'main':
/in/foo.c:19:9: warning: format '%s' expects argument of type 'char *', but argument 2 has type 'char (*)[20]' [-Wformat=]
   scanf("%s %d %d %c %c %d", &stu[i]->name,
         ^
/in/foo.c:15:2: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
  scanf("%d", &N);
  ^
/in/foo.c:19:3: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
   scanf("%s %d %d %c %c %d", &stu[i]->name,
   ^
/in/foo.c:31:20: warning: 'j' may be used uninitialized in this function [-Wmaybe-uninitialized]
  printf("%s\n", stu[j]->name);
                    ^
# 状态 耗时 内存占用
#1 Runtime Error 1ms 204.0 KiB
#2 Runtime Error 0ms 204.0 KiB
#3 Runtime Error 1ms 204.0 KiB
#4 Runtime Error 1ms 204.0 KiB
#5 Runtime Error 0ms 204.0 KiB
#6 Runtime Error 1ms 204.0 KiB
#7 Runtime Error 0ms 204.0 KiB
#8 Runtime Error 1ms 204.0 KiB
#9 Runtime Error 1ms 204.0 KiB
#10 Runtime Error 0ms 204.0 KiB

信息

递交者
类型
递交
题目
P3018 谁拿了最多奖学金
语言
C
递交时间
2020-08-13 15:51:33
评测时间
2020-08-13 15:51:33
评测机
分数
0
总耗时
10ms
峰值内存
204.0 KiB