Problem ping
User bensonlzl
Submission Time 2022-12-22 21:55:19
Score 0
Max Time N/A
Max Memory N/A

Compile Error

ping.cpp: In function ‘int main()’:
ping.cpp:6:2: error: ‘cout’ was not declared in this scope; did you mean ‘std::cout’?
6 | cout << "#include \"grader.cpp\"";
| ^~~~
| std::cout
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:61:18: note: ‘std::cout’ declared here
61 | extern ostream cout; /// Linked to standard output
| ^~~~
In file included from ping.cpp:7:
grader.cpp:11:23: error: a function-definition is not allowed here before ‘{’ token
11 | void print_WA(int msg){
| ^
grader.cpp:16:16: error: a function-definition is not allowed here before ‘{’ token
16 | int ping(int x){
| ^
grader.cpp:23:11: error: a function-definition is not allowed here before ‘{’ token
23 | int main(){
| ^