Submission #1260054

#TimeUsernameProblemLanguageResultExecution timeMemory
1260054Seyyed_Mojtaba_MortazaviKoala Game (APIO17_koala)C++20
Compilation error
0 ms0 KiB
#include <bits/stdc++.h> using namespace std; const int MAXN = 5e5 + 10; int minValue(int n, int w) { vector <int> b(n, 0); vector <int> r(n, 0); b[0] = 1; playRound(b, r); for (int i = 0; i < n; i++) { if (b[i] >= r[i]) 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:12:9: error: 'playRound' was not declared in this scope; did you mean 'lround'?
   12 |         playRound(b, r);
      |         ^~~~~~~~~
      |         lround
koala.cpp:18:1: warning: control reaches end of non-void function [-Wreturn-type]
   18 | }
      | ^