Problem evenorodd
User iso6ky
Submission Time 2024-05-15 10:17:54
Score 0
Max Time N/A
Max Memory N/A

Compile Error

evenorodd.cpp:4:6: error: expected unqualified-id before ‘int’
4 | std::int number;
| ^~~
evenorodd.cpp:5:6: error: ‘cin’ in namespace ‘std’ does not name a type
5 | std::cin >> number;
| ^~~
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:7:1: error: expected unqualified-id before ‘if’
7 | if (number % 2 == 0){
| ^~
evenorodd.cpp:10:1: error: expected unqualified-id before ‘else’
10 | else {
| ^~~~