#include <iostream>
#include <fstream>
#include <assert.h>
#include <stdexcept>
const int sz = 100;
using namespace std;
int main()
{
int m;
while(cin>>m,!cin.eof())
{
if(cin.bad())
throw runtime_error("fa");
if(cin.fail())
{
cerr <<"try again";
cin.clear();
cin.ignore();//清除缓冲区
continue;
}
cout <<m<<" ";
}
return 0;
}
#include <fstream>
#include <assert.h>
#include <stdexcept>
const int sz = 100;
using namespace std;
int main()
{
int m;
while(cin>>m,!cin.eof())
{
if(cin.bad())
throw runtime_error("fa");
if(cin.fail())
{
cerr <<"try again";
cin.clear();
cin.ignore();//清除缓冲区
continue;
}
cout <<m<<" ";
}
return 0;
}