Problem | evenorodd |
---|---|
User | SideQuesting |
Submission Time | 2025-06-16 16:14:09 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
evenorodd.cpp: In function ‘int main()’:
evenorodd.cpp:3:15: error: ‘a’ was not declared in this scope
3 | int number = a;
| ^
evenorodd.cpp:4:3: error: ‘cin’ was not declared in this scope; did you mean ‘std::cin’?
4 | cin >> a;
| ^~~
| std::cin
In file included from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:75,
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:15: error: lvalue required as left operand of assignment
5 | if (number%2=0) {string = "even"};
| ^
evenorodd.cpp:5:19: error: ‘string’ was not declared in this scope
5 | if (number%2=0) {string = "even"};
| ^~~~~~
evenorodd.cpp:5:19: note: suggested alternatives:
In file included from /usr/include/