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