QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#238379#5437. Graph Completingucup-team1136Compile Error//C++175.8kb2023-11-04 16:33:492023-11-04 16:33:49

Details

answer.code: In function ‘void solution()’:
answer.code:140:4: error: expected ‘;’ before ‘for’
  140 |   2 for (int i = 1; i < 10000; i++) p1[i] = p1[i - 1] * 2;
      |    ^~~~
      |    ;
answer.code:140:21: error: ‘i’ was not declared in this scope
  140 |   2 for (int i = 1; i < 10000; i++) p1[i] = p1[i - 1] * 2;
      |                     ^