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; }
1 2
Line 9: error: ISO C++ forbids declaration of 'sub1' with no type compilation terminated due to -Wfatal-errors.