Main.cc: In function 'int main()': Main.cc:12:2: error: expected ';' before 'a' a[x] = f; ^ Main.cc:12:10: warning: statement has no effect [-Wunused-value] a[x] = f; ^