/in/foo.c: In function 'main':
/in/foo.c:12:29: error: expected ':', ',', ';', '}' or '__attribute__' before '=' token
12 | int jiangjin=0;
| ^
/in/foo.c:6:22: error: flexible array member not at end of struct
6 | char name[];
| ^~~~
/in/foo.c:14:44: warning: excess elements in struct initializer
14 | struct student winner={0,0,0,0,0,0,0};
| ^
/in/foo.c:14:44: note: (near initialization for 'winner')
/in/foo.c:18:16: error: variable-sized object may not be initialized
18 | struct student students[number]={};
| ^~~~~~~
/in/foo.c:21:64: error: expected ';' before '}' token
21 | &students[i].xibu,&students[i].lunwen)
| ^
| ;
22 | }
| ~
/in/foo.c:25:36: error: 'struct student' has no member named 'jiangjin'
25 | students[i].jiangjin+=8000;
| ^
/in/foo.c:28:36: error: 'struct student' has no member named 'jiangjin'
28 | students[i].jiangjin+=4000;
| ^
/in/foo.c:31:36: error: 'struct student' has no member named 'jiangjin'
31 | students[i].jiangjin+=2000;
| ^
/in/foo.c:33:61: warning: comparison between pointer and integer
33 | if (students[i].qimo>85 && students[i].xibu == "Y"){
| ^~
/in/foo.c:33:61: warning: comparison with string literal results in unspecified behavior [-Waddress]
/in/foo.c:34:36: error: 'struct student' has no member named 'jiangjin'
34 | students[i].jiangjin+=1000;
| ^
/in/foo.c:36:63: warning: comparison between pointer and integer
36 | if (students[i].banji>80 && students[i].ganbu =="Y"){
| ^~
/in/foo.c:36:63: warning: comparison with string literal results in unspecified behavior [-Waddress]
/in/foo.c:37:37: error: 'jiangjin' undeclared (first use in this function); did you mean 'totaljiangjin'?
37 | students[i],jiangjin+=850;
| ^~~~~~~~
| totaljiangjin
/in/foo.c:37:37: note: each undeclared identifier is reported only once for each function it appears in
/in/foo.c:37:36: warning: left-hand operand of comma expression has no effect [-Wunused-value]
37 | students[i],jiangjin+=850;
| ^
/in/foo.c:39:29: error: '(struct student *)&students' is a pointer; did you mean to use '->'?
39 | if (students.jiangjin > winner.jiangjin){
| ^
| ->
/in/foo.c:39:47: error: 'struct student' has no member named 'jiangjin'
39 | if (students.jiangjin > winner.jiangjin){
| ^
/in/foo.c:42:43: error: 'struct student' has no member named 'jiangjin'
42 | totaljiangjin+=students[i].jiangjin;
| ^
/in/foo.c:45:29: error: 'struct student' has no member named 'jiangjin'
45 | printf("%d\n",winner.jiangjin);
| ^
/in/foo.c:14:24: warning: variable 'winner' set but not used [-Wunused-but-set-variable]
14 | struct student winner={0,0,0,0,0,0,0};
| ^~~~~~