Main.cc: In function 'int main()': Main.cc:10:10: error: invalid types 'int[int]' for array subscript sn[ s[i] ] ++; ^