제출 #1178652

#제출 시각아이디문제언어결과실행 시간메모리
1178652newbie__1Koala Game (APIO17_koala)C++17
컴파일 에러
0 ms0 KiB
#include "koala.h"
#include<bits/stdc++.h>
#define ll int
using namespace std;

ll B[100],R[100];



ll minValue(ll n,ll w){
    for(ll i=0;i<n;i++){
        B[i]=0;
        R[i]=0;
    }
    B[0]=1;
    playRound(B,R);
    for(ll i=0;i<n;i++){
        if(R[i]==0){
            return i;
        }
    }

    return 0;
}

ll maxValue(ll n,ll w){
    // ind mx val
    return n;
}

ll greaterValue(ll n,ll w){
    // ind 0 || 1
    return n;
}

void allValues(ll n,ll w,vector<ll>& p){

    return;
}

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

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