제출 #650665

#제출 시각아이디문제언어결과실행 시간메모리
650665Pety코알라 (APIO17_koala)C++14
컴파일 에러
0 ms0 KiB
#include <bits/stdc++.h>

#define ll long long

using namespace std;

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

int t, a[200002];

int greaterValue(int n, int w) {
  vector<int>q(n);
  int st = 1, dr = 7;
  while (st <= dr) {
    int mid = (st + dr) / 2;
    vector<int>R(n);
    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;
}

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

koala.cpp: In function 'int greaterValue(int, int)':
koala.cpp:19:5: error: 'playRound' was not declared in this scope
   19 |     playRound(q, R);
      |     ^~~~~~~~~