记录详情

Compile Error

/in/foo.c: In function 'main':
/in/foo.c:14:20: warning: format '%f' expects argument of type 'float *', but argument 3 has type 'double' [-Wformat=]
   14 |         scanf("%s %f\n",student[i].name,student[i].score[j])
      |                   ~^                    ~~~~~~~~~~~~~~~~~~~
      |                    |                                    |
      |                    float *                              double
/in/foo.c:14:61: error: expected ';' before '}' token
   14 |         scanf("%s %f\n",student[i].name,student[i].score[j])
      |                                                             ^
      |                                                             ;
   15 |         }
      |         ~                                                    

信息

递交者
类型
自测
语言
C
递交时间
2025-12-24 11:25:59
评测时间
2025-12-24 11:25:59
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes