[ create a new paste ] login | about

Link: http://codepad.org/cT16LYjx    [ 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: 'total' has not been declared
compilation terminated due to -Wfatal-errors.


Create a new paste based on this one


Comments: