| Problem | ducktransport |
|---|---|
| User | Tweoka |
| Submission Time | 2026-06-25 14:05:34 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
ducktransport.cpp: In function ‘int main()’:
ducktransport.cpp:6:34: error: a function-definition is not allowed here before ‘{’ token
6 | bool check(int K, int N, int D) {
| ^
ducktransport.cpp:22:21: error: ‘N’ was not declared in this scope
22 | if (check(mid, N, D)) {
| ^
ducktransport.cpp:22:24: error: ‘D’ was not declared in this scope
22 | if (check(mid, N, D)) {
| ^
ducktransport.cpp:22:10: error: ‘check’ was not declared in this scope
22 | if (check(mid, N, D)) {
| ^~~~~
ducktransport.cpp:29:13: error: ‘N’ was not declared in this scope
29 | int walk = N - D; // the number of ducks that need to walk
| ^
ducktransport.cpp:29:17: error: ‘D’ was not declared in this scope
29 | int walk = N - D; // the number of ducks that need to walk
| ^