Main.cc: In function ‘int main()’: Main.cc:16:5: error: ‘k’ was not declared in this scope k=j; ^ Main.cc:19:5: error: ‘k’ was not declared in this scope s[k]+=a[i]; ^