Main.cc: In function 'int main()': Main.cc:12:18: error: invalid types 'int [n][]' for array subscript if(a[i]>a[index]) ^