Problem ducktransport
User Tweoka
Submission Time 2026-06-25 14:07:38
Score 0
Max Time N/A
Max Memory N/A

Compile Error

ducktransport.cpp: In function ‘int main()’:
ducktransport.cpp:23:21: error: ‘N’ was not declared in this scope
23 | if (check(mid, N, D)) {
| ^
ducktransport.cpp:23:24: error: ‘D’ was not declared in this scope
23 | if (check(mid, N, D)) {
| ^
ducktransport.cpp:30:13: error: ‘N’ was not declared in this scope
30 | int walk = N - D; // the number of ducks that need to walk
| ^
ducktransport.cpp:30:17: error: ‘D’ was not declared in this scope
30 | int walk = N - D; // the number of ducks that need to walk
| ^
ducktransport.cpp: At global scope:
ducktransport.cpp:42:1: error: expected declaration before ‘}’ token
42 | }
| ^