Problem ping
User YSH2020
Submission Time 2023-05-29 10:48:32
Score 0
Max Time N/A
Max Memory N/A

Compile Error

ping.cpp: In function ‘int rabbit(int)’:
ping.cpp:7:3: error: ‘cout’ was not declared in this scope; did you mean ‘std::cout’?
7 | cout << setprecision(20); dist[i] = ping(pow(2, i));
| ^~~~
| std::cout
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/include/c++/9/iostream:61:18: note: ‘std::cout’ declared here
61 | extern ostream cout; /// Linked to standard output
| ^~~~
ping.cpp:7:11: error: ‘setprecision’ was not declared in this scope; did you mean ‘std::setprecision’?
7 | cout << setprecision(20); dist[i] = ping(pow(2, i));
| ^~~~~~~~~~~~
| std::setprecision
In file included from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:72,
from ping.h:1,
from ping.cpp:1:
/usr/include/c++/9/iomanip:195:3: