fork download
  1. #include <iostream>
  2.  
  3. float f = 1, g = -1, h = 1e-20;
  4.  
  5. int main ()
  6. {
  7. std::cout << (f+g)+h << "\n";
  8. std::cout << (f+h)+g << "\n";
  9. }
  10.  
Success #stdin #stdout 0s 4388KB
stdin
Standard input is empty
stdout
1e-20
0