记录详情

Compile Error

foo.c:1:19: warning: extra tokens at end of #include directive
    1 | #include <stdio.h>#define LEN 50
      |                   ^
foo.c:3:6: warning: return type of 'main' is not 'int' [-Wmain]
    3 | void main()
      |      ^~~~
foo.c: In function 'main':
foo.c:7:7: error: 'LEN' undeclared (first use in this function)
    7 | int a[LEN]={0},i,j,min=0,iMin=0,max=0,iMax=0;
      |       ^~~
foo.c:7:7: note: each undeclared identifier is reported only once for each function it appears in
foo.c:8:71: error: stray '\357' in program
    8 | printf("请个输入整型数组元素(输入0表示输入结束):\n");
      |                                                                       ^
foo.c:8:72: error: stray '\274' in program
    8 | printf("请个输入整型数组元素(输入0表示输入结束):\n");
      |                                                                        ^
foo.c:8:73: error: stray '\233' in program
    8 | printf("请个输入整型数组元素(输入0表示输入结束):\n");
      |                                                                         ^
foo.c:8:71: error: expected ';' before 'for'
    8 | printf("请个输入整型数组元素(输入0表示输入结束):\n");
      |                                                                       ^
      |                                                                       ;
    9 | 
   10 | for (j=0; j<LEN; j++)
      | ~~~                                                                    
foo.c:29:1: error: expected declaration or statement at end of input
   29 | {
      | ^
foo.c:29:1: error: expected declaration or statement at end of input
foo.c:29:1: error: expected declaration or statement at end of input
foo.c:7:39: warning: unused variable 'iMax' [-Wunused-variable]
    7 | int a[LEN]={0},i,j,min=0,iMin=0,max=0,iMax=0;
      |                                       ^~~~
foo.c:7:33: warning: unused variable 'max' [-Wunused-variable]
    7 | int a[LEN]={0},i,j,min=0,iMin=0,max=0,iMax=0;
      |                                 ^~~
foo.c:7:26: warning: unused variable 'iMin' [-Wunused-variable]
    7 | int a[LEN]={0},i,j,min=0,iMin=0,max=0,iMax=0;
      |                          ^~~~
foo.c:7:5: warning: unused variable 'a' [-Wunused-variable]
    7 | int a[LEN]={0},i,j,min=0,iMin=0,max=0,iMax=0;
      |     ^
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
比赛
2022春 C语言课程设计 作业2
语言
C
递交时间
2022-03-22 02:10:38
评测时间
2022-03-22 02:10:38
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes