Quote:
97592151379235457
is too big for a 32-bit machine.
It is worth nothing cin provides some hint about, try:
#include <iostream>
using namespace std;
int main()
{
int a;
long b;
char c;
float d;
double e;
cout << "size_of long = " << sizeof(long) << endl;
cin >> a;
cout << boolalpha;
cout << cin.good() << endl;
cin >> b;
cout << cin.good() << endl;
cin >> c;
cout << cin.good() << endl;
cin >> d;
cout << cin.good() << endl;
cin >> e;
cout << cin.good() << endl;
cout << a << endl;
cout << b << endl;
cout << c << endl;
cout << d << endl;
cout << e << endl;
}