View Code of Problem 1

int main(){
    int a,b;
    int c;
    cin>>a>>b;
    c=a+b;
    cout<<c;
    return  0;
}
/*
Main.cc: In function 'int main()':
Main.cc:5:5: error: 'cin' was not declared in this scope
     cin>>a>>b;
     ^~~
Main.cc:5:5: note: suggested alternative: 'main'
     cin>>a>>b;
     ^~~
     main
Main.cc:7:5: error: 'cout' was not declared in this scope
     cout<<c;
     ^~~~
*/

Double click to view unformatted code.


Back to problem 1