Problem feedtheduck
User PerihelionfromAphelion
Submission Time 2026-08-03 14:13:39
Score 0
Max Time N/A
Max Memory N/A

Compile Error

feedtheduck.cpp: In function ‘int32_t main()’:
feedtheduck.cpp:28:7: error: ‘i’ was not declared in this scope
28 | for (i = 0; i < n; i++) {
| ^
feedtheduck.cpp:33:16: error: too few arguments to function ‘bool possible(long long int, const std::vector<long long int>&, long long int)’
33 | if (possible())
| ^
feedtheduck.cpp:6:6: note: declared here
6 | bool possible (int x, const vector<int> &a, int k) {
| ^~~~~~~~
feedtheduck.cpp:34:2: error: expected primary-expression before ‘}’ token
34 | }
| ^