Problem feedtheduck
User MegaG
Submission Time 2025-10-26 10:39:04
Score 0
Max Time N/A
Max Memory N/A

Compile Error

feedtheduck.cpp: In function ‘int main()’:
feedtheduck.cpp:17:22: error: ‘N’ was not declared in this scope
17 | for (int i = 0; i < N; i++){
| ^
feedtheduck.cpp:20:12: error: ‘LM’ was not declared in this scope
20 | int ans = LM;
| ^~
feedtheduck.cpp:25:9: error: ‘current_sum’ was not declared in this scope
25 | current_sum += a[i];
| ^~~~~~~~~~~