QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#399914#2823. 改善生活ucup-team1383Compile Error//C++981.6kb2024-04-26 19:37:032024-04-26 19:37:04

Details

answer.code: In function ‘void solve()’:
answer.code:47:27: error: ‘j’ does not name a type
   47 |                 for (auto j : s[now]) {
      |                           ^
answer.code:51:18: error: expected ‘;’ before ‘}’ token
   51 |                 }
      |                  ^
      |                  ;
   52 |             }
      |             ~     
answer.code:52:13: error: expected primary-expression before ‘}’ token
   52 |             }
      |             ^
answer.code:51:18: error: expected ‘;’ before ‘}’ token
   51 |                 }
      |                  ^
      |                  ;
   52 |             }
      |             ~     
answer.code:52:13: error: expected primary-expression before ‘}’ token
   52 |             }
      |             ^
answer.code:51:18: error: expected ‘)’ before ‘}’ token
   51 |                 }
      |                  ^
      |                  )
   52 |             }
      |             ~     
answer.code:47:21: note: to match this ‘(’
   47 |                 for (auto j : s[now]) {
      |                     ^
answer.code:52:13: error: expected primary-expression before ‘}’ token
   52 |             }
      |             ^