Submission #1178639

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

ll minValue(ll n,ll w){
    vector<ll>c(n,0),r(n);
    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:8:5: error: 'playRound' was not declared in this scope; did you mean 'lround'?
    8 |     playRound(c,r);
      |     ^~~~~~~~~
      |     lround