Main.cc: In function 'int main()': Main.cc:11:4: error: 's' was not declared in this scope s=s+a[i]; ^ Main.cc:14:6: error: 's' was not declared in this scope b=s*1.0/5; ^