Main.cc: In function ‘int main()’: Main.cc:19:14: error: invalid types ‘int[int]’ for array subscript a1[i]=a[i+1]; ^