QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#856659 | #9807. Make Them Believe | GuanYunchang | Compile Error | / | / | C89 | 423b | 2025-01-14 15:06:06 | 2025-01-14 15:06:07 |
Due to the privacy settings of the submitter, you are not allowed to view this code.
Details
answer.code: In function ‘main’: answer.code:9:5: error: ‘for’ loop initial declarations are only allowed in C99 or C11 mode 9 | for(int i=0;i<8;i++) | ^~~ answer.code:9:5: note: use option ‘-std=c99’, ‘-std=gnu99’, ‘-std=c11’ or ‘-std=gnu11’ to compile your code answer.code:11:13: error: redefinition of ‘i’ 11 | for(int i=0;i<7;i++) | ^ answer.code:9:13: note: previous definition of ‘i’ with type ‘int’ 9 | for(int i=0;i<8;i++) | ^ answer.code:11:5: error: ‘for’ loop initial declarations are only allowed in C99 or C11 mode 11 | for(int i=0;i<7;i++) | ^~~ answer.code:12:9: error: ‘for’ loop initial declarations are only allowed in C99 or C11 mode 12 | for(int j=0;j<7-i;j++) | ^~~ answer.code:10:9: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 10 | scanf("%s %d",a[i].s,&a[i].score); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~