Submission #160432

#TimeUsernameProblemLanguageResultExecution timeMemory
160432impriKoala Game (APIO17_koala)C++14
Compilation error
0 ms0 KiB
#include<bits/stdc++.h> using namespace std; typedef long long ll; int minValue(int N,int W){ int b[100]; int r[100]; b[0]=1; playRound(b,r); for(int i=0;i<100;i++){ if(r[i]==0) return i; } } int maxValue(int N,int W){ return 0; } int greaterValue(int N,int W){ return 0; } void allValues(int N,int W,int *P){ }

Compilation message (stderr)

koala.cpp: In function 'int minValue(int, int)':
koala.cpp:8:1: error: 'playRound' was not declared in this scope
 playRound(b,r);
 ^~~~~~~~~
koala.cpp:8:1: note: suggested alternative: 'lround'
 playRound(b,r);
 ^~~~~~~~~
 lround
koala.cpp:16:1: warning: control reaches end of non-void function [-Wreturn-type]
 }
 ^