Submission #650669

# Submission time Handle Problem Language Result Execution time Memory
650669 2022-10-14T15:12:43 Z Pety Koala Game (APIO17_koala) C++14
Compilation error
0 ms 0 KB
#include <bits/stdc++.h>
#include "koala.h"

#define ll long long

using namespace std;

const int INF = 1e9;
const int MOD = 1e9 + 7;

int t, a[200002];
int q[100], R[100];

int minValue(int N, int W);
int maxValue(int N, int W);
void allValues(int N, int W, int* P);

int greaterValue(int n, int w) {
  int st = 1, dr = 7;
  while (st <= dr) {
    int mid = (st + dr) / 2;
    q[0] = q[1] = mid;
    playRound(q, R); 
    if (R[0] != R[1])
      return R[0] < R[1]; 
    if (!R[0])
      dr = mid - 1;
    else
      st = mid + 1;
  }
  return 0;
}


Compilation message

/usr/bin/ld: /tmp/ccLFX73w.o: in function `runGame(int)':
grader.cpp:(.text+0x157): undefined reference to `minValue(int, int)'
/usr/bin/ld: grader.cpp:(.text+0x191): undefined reference to `allValues(int, int, int*)'
/usr/bin/ld: grader.cpp:(.text+0x1d7): undefined reference to `maxValue(int, int)'
collect2: error: ld returned 1 exit status