Problem ping
User JoshJuice
Submission Time 2025-01-14 13:33:57
Score 0
Max Time N/A
Max Memory N/A

Compile Error

ping.cpp: In function ‘int ping(int)’:
ping.cpp:7:18: error: ‘print_WA’ was not declared in this scope; did you mean ‘printf’?
7 | if (cnt > P) print_WA("too many pings");
| ^~~~~~~~
| printf
ping.cpp:8:27: error: ‘print_WA’ was not declared in this scope; did you mean ‘printf’?
8 | if (x < 1 || x > BIL) print_WA("invalid ping");
| ^~~~~~~~
| printf
ping.cpp: In function ‘int main()’:
ping.cpp:37:5: error: ‘ios_base’ has not been declared
37 | ios_base::sync_with_stdio(false);
| ^~~~~~~~
ping.cpp:38:5: error: ‘cin’ was not declared in this scope; did you mean ‘std::cin’?
38 | cin.tie(0);
| ^~~
| std::cin
In file included from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:75,
from ping.h:1,
from ping.cpp:1:
/usr/in