Problem | prime |
---|---|
User | Javier123 |
Submission Time | 2023-02-13 16:24:24 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
prime.cpp: In function ‘int main()’:
prime.cpp:5:2: error: ‘cin’ was not declared in this scope; did you mean ‘std::cin’?
5 | cin << n;
| ^~~
| std::cin
In file included from prime.cpp:1:
/usr/include/c++/9/iostream:60:18: note: ‘std::cin’ declared here
60 | extern istream cin; /// Linked to standard input
| ^~~
prime.cpp:6:25: error: a function-definition is not allowed here before ‘{’ token
6 | bool isPrime(int n) {
| ^
prime.cpp:15:1: error: expected ‘}’ at end of input
15 | }
| ^
prime.cpp:3:12: note: to match this ‘{’
3 | int main() {
| ^