foo.c: In function ‘main’:
foo.c:4:10: error: expected ‘;’ before ‘char’
4 | int n,
| ^
| ;
5 | char maxName[25],
| ~~~~
foo.c:5:19: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘,’
5 | char maxName[25],
| ^~
foo.c:5:19: error: ‘,’ undeclared (first use in this function)
foo.c:5:19: note: each undeclared identifier is reported only once for each function it appears in
foo.c:5:21: error: expected ‘;’ before ‘int’
5 | char maxName[25],
| ^
| ;
6 | int maxMoney=-1,
| ~~~
foo.c:6:17: error: invalid suffix ‘,’ on integer constant
6 | int maxMoney=-1,
| ^~~
foo.c:7:16: error: invalid suffix ‘,’ on integer constant
7 | int totalSum=0,
| ^~~
foo.c:9:7: error: ‘inti’ undeclared (first use in this function); did you mean ‘int’?
9 | for(inti=0;i<n;i++){
| ^~~~
| int
foo.c:9:14: error: ‘i’ undeclared (first use in this function)
9 | for(inti=0;i<n;i++){
| ^
foo.c:9:16: error: ‘n’ undeclared (first use in this function)
9 | for(inti=0;i<n;i++){
| ^
foo.c:10:42: error: expected identifier or ‘(’ before ‘char’
10 | char name[25];int avg,classScore,paper,char isLeader,isWest;int money=0;
| ^~~~
foo.c:11:56: error: ‘isLeader’ undeclared (first use in this function)
11 | scanf("%s%d%d%d%c%c%d",name,&avg,&classScore,&paper,&isLeader,&isWest);
| ^~~~~~~~
foo.c:11:66: error: ‘isWest’ undeclared (first use in this function)
11 | scanf("%s%d%d%d%c%c%d",name,&avg,&classScore,&paper,&isLeader,&isWest);
| ^~~~~~
foo.c:27:3: error: ‘totalSum’ undeclared (first use in this function)
27 | totalSum+=money;
| ^~~~~~~~
foo.c:28:12: error: ‘maxMoney’ undeclared (first use in this function); did you mean ‘money’?
28 | if(money>maxMoney){
| ^~~~~~~~
| money
foo.c:30:13: error: ‘maxName’ undeclared (first use in this function)
30 | strcpy(maxName,name);
| ^~~~~~~
foo.c:36:7: error: expected expression before ‘=’ token
36 | return=0;
| ^