Problem evenorodd
User SheepHeads
Submission Time 2023-11-08 21:31:27
Score 0
Max Time N/A
Max Memory N/A

Compile Error

evenorodd.cpp: In function ‘int main()’:
evenorodd.cpp:5:2: error: ‘cin_tie’ was not declared in this scope
5 | cin_tie(0);
| ^~~~~~~
evenorodd.cpp:8:7: error: invalid operands of types ‘double’ and ‘int’ to binary ‘operator%’
8 | if (n%2 == 0){
| ~^~
| | |
| | int
| double