[ create a new paste ] login | about

Link: http://codepad.org/QldWZtgb    [ raw code | output | fork ]

C++, pasted on Feb 14:
1
2
3
4
5
6
7
8
9
10
11
#include<iostream>
using namespace std;
int main()
{
    int a,b,c;
    cin>>a;
    cin>>b;
    c=a+b;
    cout<<c;
    return ; 
}


Output:
1
2
3
In function 'int main()':
Line 10: error: return-statement with no value, in function returning 'int'
compilation terminated due to -Wfatal-errors.


Create a new paste based on this one


Comments: