>>180
char a[] = new char[5];
にすればおk