Problem kangaroohunt
User chickengoat
Submission Time 2025-12-29 15:57:09
Score 0
Max Time N/A
Max Memory N/A

Compile Error

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: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,
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 | e