fork download
  1. #include <iostream>
  2. #include <limits>
  3. #include <cassert>
  4. using namespace std;
  5.  
  6. int main()
  7. {
  8. double a=numeric_limits<double>::quiet_NaN();
  9. double b=numeric_limits<double>::quiet_NaN();
  10. cout << (a < b);
  11. cout << (b < a);
  12. cout << (a == b);
  13. assert( (a < b) || (b < a) || (a == b) );
  14. return 0;
  15. }
Runtime error #stdin #stdout 0.01s 2812KB
stdin
Standard input is empty
stdout
000