fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main()
  5. {
  6. string line;
  7. int num;
  8. while( getline(cin, line) && line != "$" )
  9. {
  10. cin>>num;
  11. }
  12. }
Success #stdin #stdout 0s 2984KB
stdin
ignored
1 ignored
5 ignored
2 ignored
3 ignored
$
stdout

Standard output is empty