0_0_21811211_20128.cpp: In function 'int main()': 0_0_21811211_20128.cpp:23:38: error: 'memset' was not declared in this scope memset(len, 0, (n+1)*sizeof(len[0])); ^