QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#524960#7062. Prince and PrincessGuanYunchangCompile Error//C++17334b2024-08-20 10:57:052024-08-20 10:57:05

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 | }
      | ^