Submission #1178645

#TimeUsernameProblemLanguageResultExecution timeMemory
1178645newbie__1Koala Game (APIO17_koala)C++17
Compilation error
0 ms0 KiB
#include<bits/stdc++.h>
#define ll long long
using namespace std;

ll c[100],r[100];



ll minValue(ll n,ll w){
    for(ll i=0;i<n;i++){
        c[i]=0;
        r[i]=0;
    }
    c[0]=1;
    playRound(c,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;
}

Compilation message (stderr)

koala.cpp: In function 'long long int minValue(long long int, long long int)':
koala.cpp:15:5: error: 'playRound' was not declared in this scope; did you mean 'lround'?
   15 |     playRound(c,r);
      |     ^~~~~~~~~
      |     lround