记录详情

Accepted

/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 ++ ) {
   ^~~
# 状态 耗时 内存占用
#1 Accepted 1ms 252.0 KiB
#2 Accepted 1ms 260.0 KiB
#3 Accepted 1ms 200.0 KiB
#4 Accepted 1ms 204.0 KiB
#5 Accepted 1ms 212.0 KiB

信息

递交者
类型
递交
题目
P1021 成绩统计
语言
C
递交时间
2021-11-22 13:24:14
评测时间
2021-11-22 13:24:14
评测机
分数
50
总耗时
5ms
峰值内存
260.0 KiB