| Problem | kangaroohunt |
|---|---|
| User | chickengoat |
| Submission Time | 2025-12-29 16:01:11 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
kangaroohunt.cpp: In function ‘void kangaroo(int, int)’:
kangaroohunt.cpp:6:16: error: too many arguments to function ‘int rand()’
6 | int xxx=rand(2)
| ^
In file included from /usr/include/c++/9/bits/std_abs.h:38,
from /usr/include/c++/9/cmath:47,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:41,
from kangaroohunt.cpp:1:
/usr/include/stdlib.h:453:12: note: declared here
453 | extern int rand (void) __THROW;
| ^~~~
kangaroohunt.cpp:7:2: error: expected ‘,’ or ‘;’ before ‘int’
7 | int tally=1;
| ^~~
kangaroohunt.cpp:9:9: error: ‘tally’ was not declared in this scope
9 | while (tally*2<=N) {
| ^~~~~