0_0_15728827_9974.cpp: In member function 'void HASH::build(char*)':
0_0_15728827_9974.cpp:11:21: error: 'strlen' was not declared in this scope
len=strlen(s);
^
0_0_15728827_9974.cpp: In function 'bool C(int)':
0_0_15728827_9974.cpp:39:23: error: 'sort' was not declared in this scope
sort(id,id+cnt,cmp);
^
0_0_15728827_9974.cpp:43:42: error: 'max' was not declared in this scope
if (sum>=m) idx=max(idx,id[i]);
^
0_0_15728827_9974.cpp: In function 'int main()':
0_0_15728827_9974.cpp:51:26: error: 'scanf' was not declared in this scope
while (~scanf("%d",&m)) {
^
0_0_15728827_9974.cpp:55:19: error: 'strlen' was not declared in this scope
n=strlen(s);
^
0_0_15728827_9974.cpp:57:33: error: 'printf' was not declared in this scope
printf("%d %d\n",n,0);
^
0_0_15728827_9974.cpp:61:28: error: 'printf' was not declared in this scope
printf("none\n");
^
0_0_15728827_9974.cpp:75:36: error: 'printf' was not declared in this scope
if (ans==0) printf("none\n");
^
0_0_15728827_9974.cpp:76:38: error: 'printf' was not declared in this scope
else printf("%d %d\n",ans,idx);
^
|