제출 #1310678

#제출 시각아이디문제언어결과실행 시간메모리
1310678ninogogatishvili동굴 (IOI13_cave)C++20
컴파일 에러
0 ms0 KiB
void exploreCave(int N) { int S[N]; int D[N]; for (int i = 0; i < N; i++) { S[i] = 0; } int closedDoor = tryCombination(S); if (closedDoor != -1) { for (int i = 0; i < N; i++) { S[i] = 1; closedDoor = tryCombination(S); if (closedDoor != -1) { D[i] = closedDoor; } } } for (int i = 0; i < N; i++) { S[i] = 1; } answer(S, D); }

컴파일 시 표준 에러 (stderr) 메시지

cave.cpp: In function 'void exploreCave(int)':
cave.cpp:8:22: error: 'tryCombination' was not declared in this scope
    8 |     int closedDoor = tryCombination(S);
      |                      ^~~~~~~~~~~~~~
cave.cpp:24:5: error: 'answer' was not declared in this scope
   24 |     answer(S, D);
      |     ^~~~~~