fork download
  1. #include <iostream>
  2. #include <vector>
  3.  
  4. using namespace std;
  5.  
  6. template<typename T>
  7. void test(const T &x)
  8. {
  9. cout << (x < x) << (x <= x) << (x > x) << (x >= x) << (x == x) << endl;
  10. }
  11.  
  12. int main()
  13. {
  14. double z = 0.0;
  15. vector<double> x = {z/z};
  16. test(x[0]);
  17. test(x);
  18. }
  19.  
  20.  
Success #stdin #stdout 0s 3028KB
stdin
Standard input is empty
stdout
00000
01010