QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#891721#2169. 'S No ProblemZhaoZiLong Compile Error//C++2339b2025-02-09 16:45:392025-02-09 16:45:39

Details

answer.code:1:3: error: expected unqualified-id before ‘for’
    1 |   for (int i = 0; i < x.size(); i++) {
      |   ^~~
answer.code:1:23: error: ‘x’ was not declared in this scope
    1 |   for (int i = 0; i < x.size(); i++) {
      |                       ^
answer.code:1:23: error: ‘x’ was not declared in this scope
answer.code:1:23: error: ‘x’ was not declared in this scope
answer.code:1:23: error: ‘x’ was not declared in this scope
answer.code:1:23: error: ‘x’ was not declared in this scope
answer.code:1:23: error: ‘x’ was not declared in this scope
answer.code:1:23: error: ‘x’ was not declared in this scope
answer.code:1:23: error: ‘x’ was not declared in this scope
answer.code:1:23: error: ‘x’ was not declared in this scope
answer.code:1:19: error: ‘i’ does not name a type
    1 |   for (int i = 0; i < x.size(); i++) {
      |                   ^
answer.code:1:33: error: ‘i’ does not name a type
    1 |   for (int i = 0; i < x.size(); i++) {
      |                                 ^