Main.cc: In function 'int main()': Main.cc:11:4: error: 'b' was not declared in this scope a[b] = v; ^