QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#524960 | #7062. Prince and Princess | GuanYunchang | Compile Error | / | / | C++17 | 334b | 2024-08-20 10:57:05 | 2024-08-20 10:57:05 |
Due to the privacy settings of the submitter, you are not allowed to view this code.
Details
answer.code: In function ‘int main()’: answer.code:10:9: error: expected initializer before ‘cin’ 10 | cin>>a>>b>>c; | ^~~ answer.code:11:16: error: ‘c’ was not declared in this scope 11 | if(a>b+c){ | ^ answer.code:12:34: error: expected ‘;’ before ‘if’ 12 | cout<<"YES"<<endl | ^ | ; 13 | if(!b&&!c){ | ~~ answer.code:15:18: error: expected ‘}’ before ‘else’ 15 | }else{ | ^~~~ answer.code:11:18: note: to match this ‘{’ 11 | if(a>b+c){ | ^ answer.code: At global scope: answer.code:18:10: error: expected unqualified-id before ‘else’ 18 | }else{ | ^~~~ answer.code:21:9: error: expected unqualified-id before ‘return’ 21 | return 0; | ^~~~~~ answer.code:22:1: error: expected declaration before ‘}’ token 22 | } | ^