0_0_30219086_6045.cpp: In function 'int main()': 0_0_30219086_6045.cpp:20:31: error: 'memset' was not declared in this scope memset(dp,0,sizeof(dp)); ^ 0_0_30219086_6045.cpp:25:23: error: 'sort' was not declared in this scope sort(a+1,a+n+1); ^