QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#353049 | #7933. Build Permutation | MaMengQi | Compile Error | / | / | C89 | 1.1kb | 2024-03-13 20:14:39 | 2024-03-13 20:14:39 |
Due to the privacy settings of the submitter, you are not allowed to view this code.
詳細信息
answer.code: In function ‘main’: answer.code:28:19: error: C++ style comments are not allowed in ISO C90 28 | int arr[n+1]; // ?i?? | ^ answer.code:28:19: note: (this will be reported only once per input file) answer.code:31:5: error: ‘for’ loop initial declarations are only allowed in C99 or C11 mode 31 | for (int i = 0; i < n; i++) | ^~~ answer.code:31:5: note: use option ‘-std=c99’, ‘-std=gnu99’, ‘-std=c11’ or ‘-std=gnu11’ to compile your code answer.code:47:14: error: redefinition of ‘i’ 47 | for (int i=0; i<n; i++) | ^ answer.code:31:14: note: previous definition of ‘i’ was here 31 | for (int i = 0; i < n; i++) | ^ answer.code:47:5: error: ‘for’ loop initial declarations are only allowed in C99 or C11 mode 47 | for (int i=0; i<n; i++) | ^~~ answer.code:56:14: error: redefinition of ‘i’ 56 | for (int i=0; i<n; i++) | ^ answer.code:47:14: note: previous definition of ‘i’ was here 47 | for (int i=0; i<n; i++) | ^ answer.code:56:5: error: ‘for’ loop initial declarations are only allowed in C99 or C11 mode 56 | for (int i=0; i<n; i++) | ^~~ answer.code:26:5: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result [-Wunused-result] 26 | scanf("%d", &n); | ^~~~~~~~~~~~~~~ answer.code:34:9: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result [-Wunused-result] 34 | scanf("%d", &s[i].data); | ^~~~~~~~~~~~~~~~~~~~~~~