Problem ping
User karenaureliaho
Submission Time 2026-07-01 08:33:04
Score 0
Max Time N/A
Max Memory N/A

Compile Error

ping.cpp:4:10: error: ‘x’ was not declared in this scope
4 | int ping(x);
| ^
ping.cpp: In function ‘int rabbit(int)’:
ping.cpp:9:5: error: ‘d1’ was not declared in this scope; did you mean ‘y1’?
9 | d1 = ping(initial);
| ^~
| y1
ping.cpp:9:22: error: ‘ping’ cannot be used as a function
9 | d1 = ping(initial);
| ^
ping.cpp:11:5: error: ‘d2’ was not declared in this scope
11 | d2 = ping(initial - 1);
| ^~
ping.cpp:11:26: error: ‘ping’ cannot be used as a function
11 | d2 = ping(initial - 1);
| ^