记录详情

Runtime Error

foo.c:2:1: warning: return type defaults to ‘int’ [-Wimplicit-int]
    2 | main(){
      | ^~~~
foo.c: In function ‘main’:
foo.c:9:17: warning: format ‘%d’ expects argument of type ‘int *’, but argument 2 has type ‘int’ [-Wformat=]
    9 |         scanf("%d",score[i]);
      |                ~^  ~~~~~~~~
      |                 |       |
      |                 int *   int
foo.c:11:20: warning: ‘j’ is used uninitialized [-Wuninitialized]
   11 |         for(int j;j<N;j++){
      |                   ~^~
foo.c:11:17: note: ‘j’ was declared here
   11 |         for(int j;j<N;j++){
      |                 ^
正在同步测试数据,请稍后
# 状态 耗时 内存占用
#1 Runtime Error Segmentation fault 1ms 288.0 KiB
#2 Runtime Error Segmentation fault 1ms 324.0 KiB
#3 Runtime Error Segmentation fault 1ms 520.0 KiB
#4 Runtime Error Segmentation fault 1ms 548.0 KiB
#5 Runtime Error Segmentation fault 1ms 288.0 KiB

信息

递交者
类型
递交
题目
P1058 G7-1 统计不及格人数
语言
C
递交时间
2024-09-24 18:06:07
评测时间
2024-09-24 18:06:07
评测机
分数
0
总耗时
6ms
峰值内存
548.0 KiB