0_0_38287522_4039.cpp: In function 'int main()': 0_0_38287522_4039.cpp:72:4: error: 'tmpi' was not declared in this scope tmpi[cnt] = tmp[cnt++] = newl[i]; ^