QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#470322#4928. Game With NumbersMaMengQiCompile Error//C++17991b2024-07-10 11:56:122024-07-10 11:56:12

Details

answer.code: In function ‘int main()’:
answer.code:19:43: error: expected ‘;’ before ‘if’
   19 |                         }1.414213562373095
      |                                           ^
      |                                           ;
   20 |                         if(ans1>ans2)
      |                         ~~                 
answer.code:25:25: error: expected ‘}’ before ‘else’
   25 |                         else
      |                         ^~~~
answer.code:13:17: note: to match this ‘{’
   13 |                 {
      |                 ^
answer.code:31:17: error: ‘else’ without a previous ‘if’
   31 |                 else //???????
      |                 ^~~~
answer.code: At global scope:
answer.code:50:9: error: expected unqualified-id before ‘for’
   50 |         for(int i=1;i<=n;i++)
      |         ^~~
answer.code:50:21: error: ‘i’ does not name a type
   50 |         for(int i=1;i<=n;i++)
      |                     ^
answer.code:50:26: error: ‘i’ does not name a type
   50 |         for(int i=1;i<=n;i++)
      |                          ^
answer.code:52:9: error: ‘cout’ does not name a type
   52 |         cout<<ans;
      |         ^~~~
answer.code:53:9: error: expected unqualified-id before ‘return’
   53 |         return 0;
      |         ^~~~~~
answer.code:54:1: error: expected declaration before ‘}’ token
   54 | }
      | ^