| Problem | feedtheduck |
|---|---|
| User | vadar2525 |
| Submission Time | 2026-01-28 17:33:57 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
feedtheduck.cpp: In function ‘int main()’:
feedtheduck.cpp:15:3: error: ‘total’ was not declared in this scope
15 | total += i;
| ^~~~~
feedtheduck.cpp:18:21: error: ‘total’ was not declared in this scope
18 | for(int j = 0; j < total; j++){
| ^~~~~
feedtheduck.cpp:28:34: error: expected ‘}’ at end of input
28 | if(total < max and total >= k){
| ^
feedtheduck.cpp:28:34: error: expected ‘}’ at end of input
feedtheduck.cpp:23:7: note: to match this ‘{’
23 | else{
| ^
feedtheduck.cpp:28:34: error: expected ‘}’ at end of input
28 | if(total < max and total >= k){
| ^
feedtheduck.cpp:18:32: note: to match this ‘{’
18 | for(int j = 0; j < total; j++){
| ^
feedtheduck.cpp:28:34: error: expected ‘}’ at end of input
28 |