Main.cc: In function 'int main()': Main.cc:12:13: error: 'c' was not declared in this scope a[x - 1] = c; ^