fork download
  1. int main() {
  2. double d1 = 1.0;
  3. double d2 = 1.0;
  4. d1 % d2;
  5. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp: In function 'int main()':
prog.cpp:4:7: error: invalid operands of types 'double' and 'double' to binary 'operator%'
  d1 % d2;
       ^
stdout
Standard output is empty