Submission #984141

# Submission time Handle Problem Language Result Execution time Memory
984141 2024-05-16T10:41:11 Z ASGA_RedSea Koala Game (APIO17_koala) C++17
Compilation error
0 ms 0 KB
/**

                                    * بسم الله الرحمن الرحيم *

                ﴾ رَبِّ اشْرَحْ لِي صَدْرِي * وَيَسِّرْ لِي أَمْرِي * وَاحْلُلْ عُقْدَةً مِّن لِّسَانِي * يَفْقَهُوا قَوْلِي ﴿

*/

/// author : "ASGA"

#pragma GCC optimize("Ofast")
#include <bits/stdc++.h>

using namespace std;
using ll = long long;


int minValue(int n,int w){
    return 0;
}

int maxValue(int n,int w){
    return --n;
}

bool greaterValue(int n,int w){
    int b[n]{},r[n]{};
    b[0] = w - 1;
    playRound(b,r);
    return (r[0] != w);
}

void allValues(int n,int w,int p[]){
    for(int i = 0;i < n;i++)p[i] = i + 1;
}

Compilation message

koala.cpp: In function 'bool greaterValue(int, int)':
koala.cpp:29:5: error: 'playRound' was not declared in this scope
   29 |     playRound(b,r);
      |     ^~~~~~~~~