Problem lazy_robot
User pseudocoder101
Submission Time 2025-08-20 16:12:07
Score 0
Max Time N/A
Max Memory N/A

Compile Error

lazy_robot.cpp: In function ‘int main()’:
lazy_robot.cpp:7:3: error: ‘cout’ was not declared in this scope; did you mean ‘std::cout’?
7 | cout<<"Even";
| ^~~~
| std::cout
In file included from lazy_robot.cpp:1:
/usr/include/c++/9/iostream:61:18: note: ‘std::cout’ declared here
61 | extern ostream cout; /// Linked to standard output
| ^~~~
lazy_robot.cpp:8:2: error: expected ‘}’ before ‘else’
8 | else{
| ^~~~
lazy_robot.cpp:6:12: note: to match this ‘{’
6 | if(a%2==0){
| ^
lazy_robot.cpp:9:3: error: ‘cout’ was not declared in this scope; did you mean ‘std::cout’?
9 | cout<<"Odd";
| ^~~~
| std::cout
In file included from lazy_robot.cpp:1:
/usr/include/c++/9/iostream:61:18: note: ‘std::cout’ declared here
61 | extern ostream cout; /// Linked to standard output
| ^~~~
lazy_rob