Submission #984141

#TimeUsernameProblemLanguageResultExecution timeMemory
984141ASGA_RedSeaKoala Game (APIO17_koala)C++17
Compilation error
0 ms0 KiB
/** * بسم الله الرحمن الرحيم * ﴾ رَبِّ اشْرَحْ لِي صَدْرِي * وَيَسِّرْ لِي أَمْرِي * وَاحْلُلْ عُقْدَةً مِّن لِّسَانِي * يَفْقَهُوا قَوْلِي ﴿ */ /// 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 (stderr)

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