제출 #992861

#제출 시각아이디문제언어결과실행 시간메모리
992861vjudge1Cave (IOI13_cave)C++17
컴파일 에러
0 ms0 KiB
#include <bits/stdc++.h> #include "cave.h" using namespace std; // int tryCombination(int S[]); // void answer(int S[], int D[]); #define ask(x) tryCombination(x) void exploreCave(int n) { int lvr[n] = {}, pos[n]; iota(pos, pos + n, 0); for(int i = 0; i < n; i++){ lvr[i] = ask(lvr) != i; } anwser(lvr, pos); }

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

cave.cpp: In function 'void exploreCave(int)':
cave.cpp:16:5: error: 'anwser' was not declared in this scope; did you mean 'answer'?
   16 |     anwser(lvr, pos);
      |     ^~~~~~
      |     answer