0_0_36614576_23987.cpp:11:26: error: 'acos' was not declared in this scope
const double PI=acos(-1.0);
^
0_0_36614576_23987.cpp: In member function 'void Aho::Trie::reset()':
0_0_36614576_23987.cpp:5:48: error: 'memset' was not declared in this scope
#define CLR(arr,val) memset(arr,val,sizeof(arr))
^
0_0_36614576_23987.cpp:22:13: note: in expansion of macro 'CLR'
CLR(nxt,0);
^
0_0_36614576_23987.cpp: In member function 'void Aho::insert(char*)':
0_0_36614576_23987.cpp:37:25: error: 'strlen' was not declared in this scope
int len=strlen(s);
^
0_0_36614576_23987.cpp: In member function 'void Aho::build()':
0_0_36614576_23987.cpp:55:9: error: 'queue' was not declared in this scope
queue<int>Q;
^
0_0_36614576_23987.cpp:55:15: error: expected primary-expression before 'int'
queue<int>Q;
^
0_0_36614576_23987.cpp:56:9: error: 'Q' was not declared in this scope
Q.push(0);
^
0_0_36614576_23987.cpp: In member function 'int Aho::solve(char*)':
0_0_36614576_23987.cpp:100:25: error: 'strlen' was not declared in this scope
int len=strlen(s);
^
0_0_36614576_23987.cpp: In function 'int main()':
0_0_36614576_23987.cpp:5:48: error: 'memset' was not declared in this scope
#define CLR(arr,val) memset(arr,val,sizeof(arr))
^
0_0_36614576_23987.cpp:133:9: note: in expansion of macro 'CLR'
CLR(tar,0);//就是这里要清空一下
^
0_0_36614576_23987.cpp:143:28: error: 'strlen' was not declared in this scope
int len=strlen(temp);
^
0_0_36614576_23987.cpp:166:28: error: 'reverse' was not declared in this scope
reverse(tar,tar+cnt);
^
|