Problem evenorodd
User Alexis10
Submission Time 2023-11-08 11:17:59
Score 0
Max Time N/A
Max Memory N/A

Compile Error

evenorodd.cpp: In function ‘int main()’:
evenorodd.cpp:6:4: error: ‘cin’ was not declared in this scope
6 | cin >> a;
| ^~~
evenorodd.cpp:2:1: note: ‘std::cin’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’?
1 | #include <stdio.h>
+++ |+#include <iostream>
2 | using namespace std;
evenorodd.cpp:7:12: error: expected primary-expression before ‘int’
7 | if (a/2=int) {
| ^~~
evenorodd.cpp:7:12: error: expected ‘)’ before ‘int’
7 | if (a/2=int) {
| ~ ^~~
| )
evenorodd.cpp:8:8: error: ‘cout’ was not declared in this scope
8 | cout << "Even"
| ^~~~
evenorodd.cpp:8:8: note: ‘std::cout’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’?
evenorodd.cpp:11:8: error: ‘cout’ was not declared in this scope
11 | cout <