| Problem | kangaroohunt |
|---|---|
| User | chickengoat |
| Submission Time | 2025-12-29 15:56:45 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
kangaroohunt.cpp: In function ‘void kangaroo(int, int)’:
kangaroohunt.cpp:8:16: error: too many arguments to function ‘int rand()’
8 | 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:9:2: error: expected ‘,’ or ‘;’ before ‘int’
9 | int tally=1;
| ^~~
kangaroohunt.cpp:11:9: error: ‘tally’ was not declared in this scope
11 | while (tally*2<=N) {
| ^~~~~
kangaroohunt.cpp:14:18: error: too many arguments to function ‘int rand()’
14 | int xxx=rand(2);
| ^
In file included from /usr/include/c++/9/bits/std_abs.h:38,