Submission #1260201

#TimeUsernameProblemLanguageResultExecution timeMemory
1260201ebrambillKoala Game (APIO17_koala)C++17
Compilation error
0 ms0 KiB
//In the name of GOD #include <bits/stdc++.h> #include "koala.h" using namespace std; const int maxN=1e3; int B[maxN], R[maxN]; int minValue(int n, int w){ for (int i=0; i<n; i++) B[i]=!i; playRound(B, R); for (int i=0; i<n; i++){ if(R[i]<=B[i]) return i; } return 0; } int maxValue(int n, int w){ return 0; } bool greaterValue(int n, int w){ for (int i=0; i<n; i++) B[i]=(i<=1); playRound(B, R); return B[0]<=R[0]; } void allValues(int n, int w, int *p){ if(n==w){ } else{ } }

Compilation message (stderr)

koala.cpp:23:6: error: ambiguating new declaration of 'bool greaterValue(int, int)'
   23 | bool greaterValue(int n, int w){
      |      ^~~~~~~~~~~~
In file included from koala.cpp:4:
koala.h:8:5: note: old declaration 'int greaterValue(int, int)'
    8 | int greaterValue(int N, int W);
      |     ^~~~~~~~~~~~