QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#485076 | #7691. B Road Band | ZhaoZiLong | Compile Error | / | / | C++20 | 1.1kb | 2024-07-20 11:28:16 | 2024-07-20 11:28:17 |
Due to the privacy settings of the submitter, you are not allowed to view this code.
详细
answer.code: In function ‘void solve()’: answer.code:7:19: error: expected primary-expression before ‘for’ 7 | #define up(i,a,b) for(int i=(a);i<=(b);++i) | ^~~ answer.code:25:5: note: in expansion of macro ‘up’ 25 | up(i,1,m) | ^~ answer.code:24:38: error: expected ‘:’ before ‘for’ 24 | scanf("%d %d %d %d",&m,&n,&k,&s)? | ^ | : answer.code:7:19: error: expected primary-expression before ‘for’ 7 | #define up(i,a,b) for(int i=(a);i<=(b);++i) | ^~~ answer.code:25:5: note: in expansion of macro ‘up’ 25 | up(i,1,m) | ^~ answer.code:25:8: error: ‘i’ was not declared in this scope 25 | up(i,1,m) | ^ answer.code:7:33: note: in definition of macro ‘up’ 7 | #define up(i,a,b) for(int i=(a);i<=(b);++i) | ^ answer.code:28:10: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 28 | scanf("%lf",&a[i]); | ~~~~~^~~~~~~~~~~~~