0_0_24746793_26352.cpp: In function 'int main()': 0_0_24746793_26352.cpp:125:16: error: 'dist' was not declared in this scope memset(dist,0,sizeof(dist)); ^