Main.cc: In function 'int main()': Main.cc:9:2: error: 'sum1' was not declared in this scope sum1+=a*b; ^