fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. int i;
  6. double d;
  7. cin >> d;
  8. i = d;
  9. if (i != d)
  10. cout << "error" << endl;
  11.  
  12. }
Success #stdin #stdout 0s 4344KB
stdin
3.0000000000000000000001
stdout
Standard output is empty