Main.cc: In function ‘int main()’: Main.cc:11:19: error: invalid types ‘int [((int)fmax + 1)][float]’ for array subscript cnt[num[i]]++; ^