Ar pirminis?

Taškai: 0

Compile: FAIL

ar_pirminis.cpp: In function ‘bool ar_pirminis(double)’: ar_pirminis.cpp:7:10: error: invalid operands of types ‘double’ and ‘int’ to binary ‘operator%’ if(a%2==0) ^ ar_pirminis.cpp:14:14: error: invalid operands of types ‘double’ and ‘int’ to binary ‘operator%’ if(a%i==0) ^

nr.resulttimemessage