记录详情

System Error

/in/foo.c: In function 'getfail':
/in/foo.c:14:21: warning: iteration 3 invokes undefined behavior [-Waggressive-loop-optimizations]
   if (score[student][i] < 60) {
       ~~~~~~~~~~~~~~^~~
/in/foo.c:13:2: note: within this loop
  for (int i = 1; i <= 4; i ++ ) {
  ^~~
/in/foo.c: In function 'rate':
/in/foo.c:24:15: warning: iteration 4 invokes undefined behavior [-Waggressive-loop-optimizations]
   if (score[i][course] >= 60) {
       ~~~~~~~~^~~~~~~~
/in/foo.c:23:2: note: within this loop
  for (int i = 1; i <= 5; i ++ ) {
  ^~~
/in/foo.c: In function 'putscore':
/in/foo.c:34:4: warning: iteration 3 invokes undefined behavior [-Waggressive-loop-optimizations]
    printf("%d ", score[i][j]);
    ^~~~~~~~~~~~~~~~~~~~~~~~~~
/in/foo.c:33:3: note: within this loop
   for (int j = 1; j <= 4; j ++ ) {
   ^~~
ValueError("invalid literal for int() with base 10: '//[输入文件名]|[输出文件名]|[时限(单位为秒)]|[得分]|[内存限制(单位为KiB)]\\n'",)

信息

递交者
类型
递交
题目
P1021 成绩统计
语言
C
递交时间
2021-11-22 13:23:38
评测时间
2021-11-22 13:23:38
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes