QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#593132#9375. TouristHuangHanShengCompile Error//C++20419b2024-09-27 11:47:572024-09-27 11:47:57

Details

answer.code: In function ‘int32_t main()’:
answer.code:9:24: error: expected initializer before ‘arr’
    9 |        long long int n arr[n];
      |                        ^~~
answer.code:10:27: error: expected ‘;’ before ‘i’
   10 |       for( long long int n i=0;i<n;i++)
      |                           ^~
      |                           ;
answer.code:10:28: error: ‘i’ was not declared in this scope
   10 |       for( long long int n i=0;i<n;i++)
      |                            ^
answer.code:10:35: error: expected ‘)’ before ‘;’ token
   10 |       for( long long int n i=0;i<n;i++)
      |          ~                        ^
      |                                   )
answer.code:10:36: error: ‘i’ was not declared in this scope
   10 |       for( long long int n i=0;i<n;i++)
      |                                    ^