fork download
  1. #include <iostream>
  2.  
  3. int main()
  4. {
  5. float f = 1./0;
  6. std::cout << f << std::endl;
  7. float ff = 1.*f;
  8. std::cout << ff << std::endl;
  9. }
Success #stdin #stdout 0s 2828KB
stdin
Standard input is empty
stdout
inf
inf