Update ida.cpp

array init, set location changed