/in/foo.cc: In member function 'int Trie::newnode()':
/in/foo.cc:22:35: error: 'memset' was not declared in this scope
memset(ch[tot],0,sizeof(ch[tot]));
^
/in/foo.cc: In member function 'void Trie::insert(char*)':
/in/foo.cc:36:25: error: 'strlen' was not declared in this scope
int cur=0,len=strlen(s);
^
/in/foo.cc: In member function 'int AM::newnode()':
/in/foo.cc:49:35: error: 'memset' was not declared in this scope
memset(ch[tot],0,sizeof(ch[tot]));
^
/in/foo.cc: In member function 'void AM::build(char*, int*, int)':
/in/foo.cc:60:25: error: 'memset' was not declared in this scope
memset(to,0,sizeof(to));
^
/in/foo.cc:64:30: error: 'memcpy' was not declared in this scope
memcpy(ch[p],to,sizeof(to));
^
/in/foo.cc:67:29: error: 'memcpy' was not declared in this scope
memcpy(ch[0],to,sizeof(to));
^
/in/foo.cc: In function 'int main()':
/in/foo.cc:92:17: error: 'strlen' was not declared in this scope
int lt=strlen(T);
^