Main.cc: In function 'int main()':
Main.cc:7:24: error: 'memset' was not declared in this scope
memset(a,0,sizeof(a));
^
Main.cc:5:11: warning: unused variable 'first' [-Wunused-variable]
int n,k,first=1;
^