0_0_18475905_28957.cpp:1:10: error: #include expects "FILENAME" or <FILENAME>
#include #include using namespace std;#define N 105struct elem { char name[25]; int tnum,xnum; char tname[N][25]; char xname[N][25];}stu[N];struct trie { int end; int count; trie *next[26];};trie *root;char add_str[N][25];char del_str[N][25];int len_add,len_del;int cmp(elem a,elem b){ return strcmp(a.name,b.name)next[ch[i]-'a']) { s=s-next[ch[i]-'a']; s-count=s-count+1; } else { t=newtrie(); s-next[ch[i]-'a']=t; s=t; s-count=1; } } s-end = 1;} int search(char *ch) { int i; trie *s=root; if(ch[0]==0) return 0; for(i=0;ch[i];i++) { if(s-next[ch[i]-'a']) s=s-next[ch[i]-'a']; else break; } if(ch[i]==0 && s-end == 1) return s-count; else return 0; } void Delete(char *ch) { int i; trie *s; s=root; for(i=0;ch[i];i++) { s=s-next[ch[i]-'a']; s-count=s-count-1; } s-end = 0;} int main(){ int n,m,k,i,j,ttt; char ch[25]; while (scanf("%d %d",&n,&m)!=EOF) { root = newtrie(); getchar(); for(i=0;i0) printf(" "); ttt++; printf("%s",stu[i].name); } } if(ttt==0) printf("None"); printf("\n"); } return 0;}解题报告转自:http://blog.csdn.net/xiaotaoqibao/article/details/5804827
^
|