记录详情

Compile Error

/in/foo.c: In function 'main':
/in/foo.c:11:25: error: expected expression before 'int'
   11 |                         int MAX=i;
      |                         ^~~
/in/foo.c:12:21: error: 'j' undeclared (first use in this function)
   12 |                 for(j=1;j<n;j++)
      |                     ^
/in/foo.c:12:21: note: each undeclared identifier is reported only once for each function it appears in
/in/foo.c:14:35: error: 'MAX' undeclared (first use in this function)
   14 |                         if(a[j]>a[MAX])
      |                                   ^~~
/in/foo.c:26:49: error: expected ')' before ';' token
   26 |                                 printf("%d",a[i];
      |                                       ~         ^
      |                                                 )
/in/foo.c:26:50: error: expected ';' before '}' token
   26 |                                 printf("%d",a[i];
      |                                                  ^
      |                                                  ;
   27 |                                            }
      |                                            ~      
/in/foo.c:30:44: error: expected declaration or statement at end of input
   30 |                                            }
      |                                            ^
/in/foo.c:30:44: error: expected declaration or statement at end of input

信息

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