Main.cc: In function 'int main()': Main.cc:5:7: error: 'n' was not declared in this scope cin>>n; ^ Main.cc:12:8: error: 'i' was not declared in this scope tem=a[i]{ ^