0_0_29562248_23669.cpp: In function 'int main()': 0_0_29562248_23669.cpp:103:55: error: 'memset' was not declared in this scope memset(has_value, 0, (N+2)*sizeof has_value[0]); ^