Run id: 120674

Main.cc: In function 'int main()':
Main.cc:21:9: error: invalid types 'int[int]' for array subscript
   if(a[i]!=maxn)
         ^