Main.cc: In function 'int main()':
Main.cc:12:14: error: invalid operands of types 'int' and 'double' to binary 'operator%'
if(n%2.0==0){
^
Main.cc:13:14: warning: statement has no effect [-Wunused-value]
o+n;
^
Main.cc:16:14: warning: statement has no effect [-Wunused-value]
j+n;
^