Problem ping
User yuhong
Submission Time 2023-12-26 10:44:43
Score 0
Max Time N/A
Max Memory N/A

Compile Error

ping.cpp: In function ‘int main()’:
ping.cpp:12:9: error: ‘S’ was not declared in this scope
12 | cin >> S >> P;
| ^
ping.cpp:12:14: error: ‘P’ was not declared in this scope
12 | cin >> S >> P;
| ^
ping.cpp:14:25: error: ‘err3’ was not declared in this scope
14 | if (ans != S) print_WA(err3);
| ^~~~
ping.cpp:14:16: error: ‘print_WA’ was not declared in this scope; did you mean ‘printf’?
14 | if (ans != S) print_WA(err3);
| ^~~~~~~~
| printf
ping.cpp:15:26: error: ‘cnt’ was not declared in this scope; did you mean ‘int’?
15 | cout << "Accepted: " << cnt << '\n' << flush;
| ^~~
| int