K12教育赛事综合服务平台
聚乐之家官方网站
下载聚乐之家官方App
专注青少年竞赛题库网站
以下是完整的C++代码:
#include <iostream> using namespace std; int main() { int a = 0, b = 0; cin >> a >> b; if(cin.fail()) { cout << "input error"; } else { cout << a << " " << b; } return 0; }
input error
0 123
0 0
abc 123