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

Compile Error

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