Main.cc: In function 'int main()':
Main.cc:8:11: error: invalid types 'int[int]' for array subscript
cin>>n[k];
^
Main.cc:13:5: error: 't' was not declared in this scope
t=a[j];
^
Main.cc:14:9: error: expected ';' before 'a'
a[j]a[j-1];
^
Main.cc:14:8: warning: statement has no effect [-Wunused-value]
a[j]a[j-1];
^