QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#345479 | #7933. Build Permutation | ZhaoZiLong | Compile Error | / | / | C89 | 1.0kb | 2024-03-07 00:07:26 | 2024-03-07 00:07:26 |
Due to the privacy settings of the submitter, you are not allowed to view this code.
詳細信息
answer.code: In function ‘main’: answer.code:19:2: error: ‘for’ loop initial declarations are only allowed in C99 or C11 mode 19 | for (int t = 0; t < n; t++) { | ^~~ answer.code:19:2: note: use option ‘-std=c99’, ‘-std=gnu99’, ‘-std=c11’ or ‘-std=gnu11’ to compile your code answer.code:62:2: error: ‘for’ loop initial declarations are only allowed in C99 or C11 mode 62 | for (int p = 0; p < n; p++) { | ^~~ answer.code:8:2: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result [-Wunused-result] 8 | scanf("%d",&n); | ^~~~~~~~~~~~~~ answer.code:20:3: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result [-Wunused-result] 20 | scanf("%d",&r); | ^~~~~~~~~~~~~~