哪里出问题了吗?一直wait.
#include<bits/stdc++.h> using namespace std; int x; int main(){ while(1){ cin>>x; if(x==42)break; cout<<x<<endl; } return 0; }