Problem | nprime |
---|---|
User | MS |
Submission Time | 2023-08-28 22:14:13 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
nprime.cpp: In function ‘int main()’:
nprime.cpp:39:11: error: ‘cin’ was not declared in this scope; did you mean ‘std::cin’?
39 | int n;cin>>n;
| ^~~
| std::cin
In file included from nprime.cpp:1:
/usr/include/c++/9/iostream:60:18: note: ‘std::cin’ declared here
60 | extern istream cin; /// Linked to standard input
| ^~~
nprime.cpp:40:5: error: ‘cout’ was not declared in this scope; did you mean ‘std::cout’?
40 | cout<< nth_prime(n);
| ^~~~
| std::cout
In file included from nprime.cpp:1:
/usr/include/c++/9/iostream:61:18: note: ‘std::cout’ declared here
61 | extern ostream cout; /// Linked to standard output
| ^~~~