Main.cc: In function 'int main()':
Main.cc:13:10: error: expected unqualified-id before '=' token
int mxx,=0,gbb =0;
^
Main.cc:16:4: error: 'gbb' was not declared in this scope
gbb = i;
^
Main.cc:20:16: error: 'gbb' was not declared in this scope
sum = a[1]*(1+gbb);
^
Main.cc:22:3: error: 'sim' was not declared in this scope
sim += a[i]*i;
^
Main.cc:13:6: warning: unused variable 'mxx' [-Wunused-variable]
int mxx,=0,gbb =0;
^