View Code of Problem 110

#include <iostream>
using namespace std;
int main(void){

	while(cin>>a>>b){

		cout<<a+b<<endl;
	}
	return 0;
}
/*
Main.cc: In function 'int main()':
Main.cc:5:13: error: 'a' was not declared in this scope
  while(cin>>a>>b){
             ^
Main.cc:5:16: error: 'b' was not declared in this scope
  while(cin>>a>>b){
                ^
*/

Double click to view unformatted code.


Back to problem 110