fork download
  1. int main()
  2. {
  3. int x = 1;
  4. x %= 1.;
  5. x %= (double)1.;
  6. return 0;
  7. }
  8.  
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.c: In function 'main':
prog.c:4:4: error: invalid operands to binary % (have 'int' and 'long double')
  x %= 1.;
    ^
prog.c:5:4: error: invalid operands to binary % (have 'int' and 'double')
  x %= (double)1.;
    ^
stdout
Standard output is empty