#include <iostream>using namespace std; int main() {int i;double d;cin >> d;i = d;if (i != d) cout << "error" << endl; }
3.0000000000000000000001
Standard output is empty
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!