Submission #1260053

#TimeUsernameProblemLanguageResultExecution timeMemory
1260053Seyyed_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); vectir <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) { } int greaterValue(int n, int w) { } void allValues(int n, int w, int *p) { }

Compilation message (stderr)

koala.cpp: In function 'int minValue(int, int)':
koala.cpp:10:9: error: 'vectir' was not declared in this scope
   10 |         vectir <int> r(n, 0);
      |         ^~~~~~
koala.cpp:10:17: error: expected primary-expression before 'int'
   10 |         vectir <int> r(n, 0);
      |                 ^~~
koala.cpp:12:22: error: 'r' was not declared in this scope
   12 |         playRound(b, r);
      |                      ^
koala.cpp:12:9: error: 'playRound' was not declared in this scope; did you mean 'lround'?
   12 |         playRound(b, r);
      |         ^~~~~~~~~
      |         lround
koala.cpp: In function 'int maxValue(int, int)':
koala.cpp:23:1: warning: no return statement in function returning non-void [-Wreturn-type]
   23 | }
      | ^
koala.cpp: In function 'int greaterValue(int, int)':
koala.cpp:28:1: warning: no return statement in function returning non-void [-Wreturn-type]
   28 | }
      | ^
koala.cpp: In function 'int minValue(int, int)':
koala.cpp:18:1: warning: control reaches end of non-void function [-Wreturn-type]
   18 | }
      | ^