fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. int a;
  6. while ( cin >> a ) {
  7. cout << a << '\n';
  8. }
  9. cout << "Finished";
  10. return 0;
  11. }
Success #stdin #stdout 0s 3300KB
stdin
1
2
3
stop
stdout
1
2
3
Finished