Problem | ping |
---|---|
User | yuhong |
Submission Time | 2023-12-26 10:17:48 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
ping.cpp: In function ‘int main()’:
ping.cpp:8:2: error: ‘ios_base’ has not been declared
8 | ios_base::sync_with_stdio(false);
| ^~~~~~~~
ping.cpp:9:2: error: ‘cin’ was not declared in this scope; did you mean ‘std::cin’?
9 | cin.tie(0);
| ^~~
| std::cin
In file included from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:75,
from ping.cpp:1:
/usr/include/c++/9/iostream:60:18: note: ‘std::cin’ declared here
60 | extern istream cin; /// Linked to standard input
| ^~~
ping.cpp:10:9: error: ‘S’ was not declared in this scope
10 | cin >> S >> P;
| ^
ping.cpp:10:14: error: ‘P’ was not declared in this scope
10 | cin >> S >> P;
| ^
ping.cpp:12:25: error: ‘err3’ was not declared in this scope
12 | if (ans != S) print_WA(err3);
| ^~~~
ping.cpp:12:16: e