Problem | evenorodd |
---|---|
User | LXYSGP |
Submission Time | 2024-07-13 16:49:55 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
evenorodd.cpp:4:6: error: ‘cin’ in namespace ‘std’ does not name a type
4 | std::cin >> a;
| ^~~
In file included from evenorodd.cpp:1:
/usr/include/c++/9/iostream:60:18: note: ‘std::cin’ declared here
60 | extern istream cin; /// Linked to standard input
| ^~~
evenorodd.cpp:5:1: error: expected unqualified-id before ‘if’
5 | if (a % 2 == 0) {
| ^~
evenorodd.cpp:7:2: error: expected unqualified-id before ‘else’
7 | }else{
| ^~~~