Problem ping
User kesleryak
Submission Time 2024-05-07 17:05:02
Score 0
Max Time N/A
Max Memory N/A

Compile Error

ping.cpp: In function ‘int ping(int)’:
ping.cpp:5:2: error: ‘cnt’ was not declared in this scope; did you mean ‘int’?
5 | cnt++;
| ^~~
| int
ping.cpp:6:12: error: ‘P’ was not declared in this scope
6 | if (cnt > P) print_WA(err1);
| ^
ping.cpp:6:24: error: ‘err1’ was not declared in this scope
6 | if (cnt > P) print_WA(err1);
| ^~~~
ping.cpp:6:15: error: ‘print_WA’ was not declared in this scope; did you mean ‘printf’?
6 | if (cnt > P) print_WA(err1);
| ^~~~~~~~
| printf
ping.cpp:7:19: error: ‘BIL’ was not declared in this scope
7 | if (1 > x || x > BIL) print_WA(err2);
| ^~~
ping.cpp:7:33: error: ‘err2’ was not declared in this scope
7 | if (1 > x || x > BIL) print_WA(err2);
| ^~~~
ping.cpp:7:24: error: ‘print_WA’