Submission #569856

# Submission time Handle Problem Language Result Execution time Memory
569856 2022-05-28T01:24:12 Z Aurora2005 Lost in the cycle (IOI19_cycle) C++14
Compilation error
0 ms 0 KB
#include<bits/stdc++.h>
#include"cycle.h"
using namespace std;

void escape(long long int N){
  long long int l=0,r=N;
  while(r-l != 1 && (l != N-1 || r != 0)){
    long long int L = l;
    long long int R = r;
    if(L > R) R += N;
    long long int M = (L+R)/2;
    long long int d = N-N/2-M;
    if(d < 0) d += N;
    if(jump(d)){
      l = M;
    }
    else{
      r = M;
    }
  }
  jump(N-l);
}

Compilation message

/usr/bin/ld: /tmp/ccc8iGdK.o: in function `main':
grader.cpp:(.text.startup+0x146): undefined reference to `escape(int)'
collect2: error: ld returned 1 exit status