QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#597509#9417. Palindromic Polygonucup-team5045#Compile Error//C++173.0kb2024-09-28 17:58:022024-09-28 17:58:03

Details

answer.code:99:5: error: expected unqualified-id before ‘for’
   99 |     for(int i = 0;i + n - 1 < n * 2;i++) {
      |     ^~~
answer.code:99:19: error: ‘i’ does not name a type
   99 |     for(int i = 0;i + n - 1 < n * 2;i++) {
      |                   ^
answer.code:99:37: error: ‘i’ does not name a type
   99 |     for(int i = 0;i + n - 1 < n * 2;i++) {
      |                                     ^
answer.code:102:5: error: ‘cout’ does not name a type
  102 |     cout << res << endl;
      |     ^~~~
answer.code:107:1: error: expected declaration before ‘}’ token
  107 | }
      | ^