[ create a new paste ] login | about

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

C++, pasted on Feb 23:
1
2
3
4
5
6
7
8
9
10
#include <iostream>
using namespace std;
class Total
{
    //cin>>sub1
    //cin>>sub2
    //cin>>sub3
    float sub1,sub2,sub3;
    Total::sub1+sub2+sub3;
}


Output:
1
2
Line 9: error: ISO C++ forbids declaration of 'sub1' with no type
compilation terminated due to -Wfatal-errors.


Create a new paste based on this one


Comments: