Main.cc: In function 'int main()': Main.cc:6:7: error: 'i' was not declared in this scope a[0]=i/1000000; ^ Main.cc:14:20: error: 'k' was not declared in this scope for(int i=n; i