Problem evenorodd
User jian
Submission Time 2023-09-07 01:18:29
Score 0
Max Time N/A
Max Memory N/A

Compile Error

evenorodd.cpp: In function ‘int main()’:
evenorodd.cpp:7:33: error: invalid operands of types ‘const char [5]’ and ‘<unresolved overloaded function type>’ to binary ‘operator<<’
7 | cout << n % 2 ? "Odd" : "Even" << endl;
| ~~~~~~~^~~~~~~