QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#351745 | #7933. Build Permutation | HuangHanSheng | Compile Error | / | / | C89 | 1.4kb | 2024-03-12 13:59:04 | 2024-03-12 13:59:05 |
Due to the privacy settings of the submitter, you are not allowed to view this code.
Details
answer.code: In function ‘pailie’: answer.code:6:5: error: ‘for’ loop initial declarations are only allowed in C99 or C11 mode 6 | for(int i=0;i<n;i++) | ^~~ answer.code:6:5: note: use option ‘-std=c99’, ‘-std=gnu99’, ‘-std=c11’ or ‘-std=gnu11’ to compile your code answer.code:12:13: error: redefinition of ‘i’ 12 | for(int i=0;i<n;i++) | ^ answer.code:6:13: note: previous definition of ‘i’ was here 6 | for(int i=0;i<n;i++) | ^ answer.code:12:5: error: ‘for’ loop initial declarations are only allowed in C99 or C11 mode 12 | for(int i=0;i<n;i++) | ^~~ answer.code:17:13: error: redefinition of ‘i’ 17 | for(int i=0;i<n;i++) | ^ answer.code:12:13: note: previous definition of ‘i’ was here 12 | for(int i=0;i<n;i++) | ^ answer.code:17:5: error: ‘for’ loop initial declarations are only allowed in C99 or C11 mode 17 | for(int i=0;i<n;i++) | ^~~ answer.code:20:9: error: ‘for’ loop initial declarations are only allowed in C99 or C11 mode 20 | for(int j=i;j<n;j++) | ^~~ answer.code:29:17: error: ‘for’ loop initial declarations are only allowed in C99 or C11 mode 29 | for(int k=0;k<i;k++) | ^~~ answer.code: In function ‘main’: answer.code:57:5: error: ‘for’ loop initial declarations are only allowed in C99 or C11 mode 57 | for(int i=0;i<n;i++) | ^~~ answer.code:59:20: warning: passing argument 1 of ‘pailie’ makes pointer from integer without a cast [-Wint-conversion] 59 | int *A=*pailie(*q,n); | ^~ | | | int answer.code:3:18: note: expected ‘int *’ but argument is of type ‘int’ 3 | int *pailie(int *a,int n) | ~~~~~^ answer.code:59:12: warning: initialization of ‘int *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 59 | int *A=*pailie(*q,n); | ^ answer.code:63:5: error: ‘for’ loop initial declarations are only allowed in C99 or C11 mode 63 | for (int i = 0; i < n; i++) | ^~~ answer.code:55:5: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result [-Wunused-result] 55 | scanf("%d",&n); | ^~~~~~~~~~~~~~ answer.code:58:5: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result [-Wunused-result] 58 | scanf("%d",&q[i]); | ^~~~~~~~~~~~~~~~~