fork download
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. int a,b;
  6.  
  7. int main()
  8. {
  9. while (cin>>a>>b;)
  10. cout<<a+b<<endl;
  11. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
2 3
4 5
compilation info
prog.cpp: In function ‘int main()’:
prog.cpp:9:18: error: expected ‘)’ before ‘;’ token
  while (cin>>a>>b;)
                  ^
prog.cpp:9:19: error: expected primary-expression before ‘)’ token
  while (cin>>a>>b;)
                   ^
stdout
Standard output is empty