0_0_22982282_5249.cpp: In function 'void prim()': 0_0_22982282_5249.cpp:9:33: error: 'memset' was not declared in this scope memset(visit,0,sizeof(visit)); ^