Main.cc: In function 'int main()': Main.cc:6:8: error: 'a' was not declared in this scope int a[a+1]; ^ Main.cc:15:7: error: 't' was not declared in this scope a[x]=t; ^