Problem evenorodd
User l
Submission Time 2025-06-16 16:35:15
Score 0
Max Time N/A
Max Memory N/A

Compile Error

evenorodd.cpp:3:19: error: ‘cin’ in namespace ‘std’ does not name a type
3 | using cout = std::cin;
| ^~~
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:4:18: error: ‘cout’ in namespace ‘std’ does not name a type
4 | using cin = std::cout;
| ^~~~
In file included from evenorodd.cpp:1:
/usr/include/c++/9/iostream:61:18: note: ‘std::cout’ declared here
61 | extern ostream cout; /// Linked to standard output
| ^~~~
evenorodd.cpp: In function ‘int main()’:
evenorodd.cpp:9:2: error: ‘cout’ was not declared in this scope; did you mean ‘std::cout’?
9 | cout >> x;
| ^~~~
| std::cout
In file included from evenorodd.cpp:1:
/usr/include/c++/9/iostream:61:18: note: ‘std::co