제출 #52135

#제출 시각아이디문제언어결과실행 시간메모리
52135rondojim동굴 (IOI13_cave)C++17
컴파일 에러
0 ms0 KiB
#include "cave.h" const int MAXN = 5e3 + 5; int bit[MAXN], door[MAXN], vis[MAXN]; void exploreCave(int n){ for(int i=0; i<n; ++i){ int ret = tryCombination(bit), lo = 0, hi = n - 1, mid, pos; while(lo < hi){ mid = (lo + hi)>>1; for(int j=lo; j<=mid; ++j) if(!vis[j]) bit[j] ^= 1; pos = ret; ret = tryCombination(st); if(pos == i || ret == i) hi = mid; else lo = mid + 1; } if(ret == i) bit[lo] ^= 1; door[lo] = i, vis[lo] = 1; } answer(bit, door); }

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

cave.cpp: In function 'void exploreCave(int)':
cave.cpp:14:28: error: 'st' was not declared in this scope
       ret = tryCombination(st);
                            ^~