QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#783046 | #9449. New School Term | GuanYunchang | Compile Error | / | / | C99 | 4.5kb | 2024-11-25 22:47:50 | 2024-11-25 22:47:52 |
Due to the privacy settings of the submitter, you are not allowed to view this code.
Details
answer.code:2:13: error: expected identifier or ‘(’ before ‘if’ 2 | if(student[i]==-1)//????? | ^~ answer.code:6:9: error: expected identifier or ‘(’ before ‘}’ token 6 | } | ^ answer.code:7:9: warning: data definition has no type or storage class 7 | cmp();//????? | ^~~ answer.code:7:9: warning: type defaults to ‘int’ in declaration of ‘cmp’ [-Wimplicit-int] answer.code:8:9: error: expected identifier or ‘(’ before ‘for’ 8 | for(i=N*2; i>=1; i--) | ^~~ answer.code:8:21: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘>=’ token 8 | for(i=N*2; i>=1; i--) | ^~ answer.code:8:27: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘--’ token 8 | for(i=N*2; i>=1; i--) | ^~ answer.code:15:9: error: expected identifier or ‘(’ before ‘return’ 15 | return; | ^~~~~~ answer.code:16:5: error: expected identifier or ‘(’ before ‘}’ token 16 | } | ^ answer.code:17:5: error: expected identifier or ‘(’ before ‘else’ 17 | else if(count1==N)//1???? | ^~~~ answer.code:37:5: error: expected identifier or ‘(’ before ‘else’ 37 | else//??????? | ^~~~ answer.code:153:1: error: expected identifier or ‘(’ before ‘}’ token 153 | } | ^ answer.code:155:6: error: conflicting types for ‘cmp’ 155 | void cmp(void) | ^~~ answer.code:7:9: note: previous declaration of ‘cmp’ was here 7 | cmp();//????? | ^~~ answer.code: In function ‘cmp’: answer.code:158:11: error: ‘M’ undeclared (first use in this function) 158 | for(i=M; i>=1; i--) | ^ answer.code:158:11: note: each undeclared identifier is reported only once for each function it appears in answer.code:160:12: error: ‘min_student’ undeclared (first use in this function) 160 | if(min_student[a[i][0]]==min_student[a[i][1]]&&student[a[i][0]]!=student[a[i][1]])//min???student??? | ^~~~~~~~~~~ answer.code:160:24: error: ‘a’ undeclared (first use in this function) 160 | if(min_student[a[i][0]]==min_student[a[i][1]]&&student[a[i][0]]!=student[a[i][1]])//min???student??? | ^ answer.code:160:56: error: ‘student’ undeclared (first use in this function) 160 | if(min_student[a[i][0]]==min_student[a[i][1]]&&student[a[i][0]]!=student[a[i][1]])//min???student??? | ^~~~~~~ answer.code:163:19: error: ‘N’ undeclared (first use in this function) 163 | for(j=N*2; j>=1; j--) | ^