제출 #838386

#제출 시각아이디문제언어결과실행 시간메모리
838386beabossLost in the cycle (IOI19_cycle)C++14
컴파일 에러
0 ms0 KiB
#include "cycle.h" void escape(int n) { bool works = jump(0); while (!works) jump(n/2); int lo = 0; int hi = n/2; int cur_dist = 0; while (lo < hi) { int m = (lo + hi)/2; if (jmp((m - cur_dist + n) % n)) { lo = m; } else hi = m-1; cur_dist = m; } jump((lo - cur_dist + n) % n); }

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

cycle.cpp: In function 'void escape(int)':
cycle.cpp:15:7: error: 'jmp' was not declared in this scope; did you mean 'jump'?
   15 |   if (jmp((m - cur_dist + n) % n)) {
      |       ^~~
      |       jump