QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#807333 | #29. Posters on the wall | I_be_wanna | Compile Error | / | / | C++20 | 8.6kb | 2024-12-09 21:31:26 | 2024-12-09 21:31:27 |
Due to the privacy settings of the submitter, you are not allowed to view this code.
詳細信息
answer.code:261:12: error: expected constructor, destructor, or type conversion before ‘(’ token 261 | For(i,0,SZ(vec)-1){ | ^ answer.code:271:5: error: expected declaration before ‘}’ token 271 | } | ^ answer.code:273:5: error: expected unqualified-id before ‘for’ 273 | for(auto [l,r,w]:f[1]){ | ^~~ answer.code:277:8: error: expected constructor, destructor, or type conversion before ‘(’ token 277 | For(i,0,n+1) For(j,0,2) dp[i][j]=inf; | ^ answer.code:278:5: error: ‘dp’ does not name a type 278 | dp[0][0]=0; | ^~ answer.code:279:8: error: expected constructor, destructor, or type conversion before ‘(’ token 279 | For(i,1,n){ | ^ answer.code:285:8: error: expected constructor, destructor, or type conversion before ‘(’ token 285 | For(i,1,n){ | ^ answer.code:294:13: error: ‘inf’ was not declared in this scope; did you mean ‘int’? 294 | int res=inf; | ^~~ | int answer.code:295:8: error: expected constructor, destructor, or type conversion before ‘(’ token 295 | For(i,0,1) res=min(res,dp[n][i]); | ^ answer.code:296:5: error: expected unqualified-id before ‘if’ 296 | if(res==inf)puts("-1"); | ^~ answer.code:297:5: error: expected unqualified-id before ‘else’ 297 | else cout<<res<<"\n"; | ^~~~ answer.code:298:1: error: expected declaration before ‘}’ token 298 | } | ^ answer.code:300:8: error: redefinition of ‘int main()’ 300 | signed main() | ^~~~ answer.code:87:5: note: ‘int main()’ previously defined here 87 | int main() | ^~~~ answer.code: In function ‘int main()’: answer.code:304:11: error: ‘cin’ was not declared in this scope 304 | int T;cin>>T; | ^~~ answer.code:305:15: error: ‘work’ was not declared in this scope 305 | while(T--)work(); | ^~~~ answer.code: At global scope: answer.code:307:3: error: expected unqualified-id before ‘/’ token 307 | }*/ | ^ answer.code: In function ‘int main()’: answer.code:89:28: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 89 | int r,c,n,q,m;scanf("%d%d%d%d%d",&r,&c,&n,&q,&m); | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ answer.code:93:22: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 93 | scanf("%d%d%d%d",cl+i,cd+i,cr+i,cu+i); | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ answer.code:117:40: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 117 | int ql,qr,qu,qd,v;scanf("%d%d%d%d%d",&ql,&qd,&qr,&qu,&v); | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~