0_0_30267123_6990\Main.java:2: 错误: 非法字符: '#'
#include<iostream>
^
0_0_30267123_6990\Main.java:4: 错误: 非法字符: '#'
#include<string>
^
0_0_30267123_6990\Main.java:4: 错误: 需要class, interface或enum
#include<string>
^
0_0_30267123_6990\Main.java:6: 错误: 需要class, interface或enum
typedef struct pop list;
^
0_0_30267123_6990\Main.java:7: 错误: 需要class, interface或enum
struct pop
^
0_0_30267123_6990\Main.java:10: 错误: 需要class, interface或enum
int n; //单词结尾标记
^
0_0_30267123_6990\Main.java:11: 错误: 需要class, interface或enum
};
^
0_0_30267123_6990\Main.java:12: 错误: 需要class, interface或enum
link root=NULL; //建立根节点
^
0_0_30267123_6990\Main.java:13: 错误: 需要class, interface或enum
string in;
^
0_0_30267123_6990\Main.java:14: 错误: 需要class, interface或enum
int len; //储存输入单词
^
0_0_30267123_6990\Main.java:16: 错误: 需要class, interface或enum
int atin() //插入单词
^
0_0_30267123_6990\Main.java:19: 错误: 需要class, interface或enum
link index=root;
^
0_0_30267123_6990\Main.java:20: 错误: 需要class, interface或enum
for(int i=0;i<len;++i) //逐个字符扫描
^
0_0_30267123_6990\Main.java:20: 错误: 需要class, interface或enum
for(int i=0;i<len;++i) //逐个字符扫描
^
0_0_30267123_6990\Main.java:20: 错误: 需要class, interface或enum
for(int i=0;i<len;++i) //逐个字符扫描
^
0_0_30267123_6990\Main.java:23: 错误: 需要class, interface或enum
if(index->next[to]==NULL) //如果子链为空则新建结点
^
0_0_30267123_6990\Main.java:26: 错误: 需要class, interface或enum
index=index->next[to];
^
0_0_30267123_6990\Main.java:27: 错误: 需要class, interface或enum
index->n=0;;
^
0_0_30267123_6990\Main.java:28: 错误: 需要class, interface或enum
for(int j=0;j<=25;++j) //构造函数初始化
^
0_0_30267123_6990\Main.java:28: 错误: 需要class, interface或enum
for(int j=0;j<=25;++j) //构造函数初始化
^
0_0_30267123_6990\Main.java:28: 错误: 需要class, interface或enum
for(int j=0;j<=25;++j) //构造函数初始化
^
0_0_30267123_6990\Main.java:30: 错误: 需要class, interface或enum
continue;
^
0_0_30267123_6990\Main.java:31: 错误: 需要class, interface或enum
}
^
0_0_30267123_6990\Main.java:33: 错误: 需要class, interface或enum
}
^
0_0_30267123_6990\Main.java:35: 错误: 需要class, interface或enum
return 0;
^
0_0_30267123_6990\Main.java:36: 错误: 需要class, interface或enum
}
^
0_0_30267123_6990\Main.java:41: 错误: 需要class, interface或enum
for(int i=0;i<len;++i) //遍历字串到最后字母
^
0_0_30267123_6990\Main.java:41: 错误: 需要class, interface或enum
for(int i=0;i<len;++i) //遍历字串到最后字母
^
0_0_30267123_6990\Main.java:41: 错误: 需要class, interface或enum
for(int i=0;i<len;++i) //遍历字串到最后字母
^
0_0_30267123_6990\Main.java:45: 错误: 需要class, interface或enum
index=index->next[in[i]-'a']; //向下一层查找
^
0_0_30267123_6990\Main.java:46: 错误: 需要class, interface或enum
}
^
0_0_30267123_6990\Main.java:49: 错误: 需要class, interface或enum
return 0;
^
0_0_30267123_6990\Main.java:50: 错误: 需要class, interface或enum
}
^
0_0_30267123_6990\Main.java:55: 错误: 需要class, interface或enum
for(int i=0;i<len;++i) //遍历字串到最后字母
^
0_0_30267123_6990\Main.java:55: 错误: 需要class, interface或enum
for(int i=0;i<len;++i) //遍历字串到最后字母
^
0_0_30267123_6990\Main.java:55: 错误: 需要class, interface或enum
for(int i=0;i<len;++i) //遍历字串到最后字母
^
0_0_30267123_6990\Main.java:57: 错误: 需要class, interface或enum
index->n--; //不收回空间,直接改变单词标记结尾的值
^
0_0_30267123_6990\Main.java:58: 错误: 需要class, interface或enum
return 0;
^
0_0_30267123_6990\Main.java:59: 错误: 需要class, interface或enum
}
^
0_0_30267123_6990\Main.java:62: 错误: 需要class, interface或enum
int p; //储存输出
^
0_0_30267123_6990\Main.java:64: 错误: 需要class, interface或enum
int out(link index) //递归显示字母树中单词
^
0_0_30267123_6990\Main.java:68: 错误: 需要class, interface或enum
for(int i=1;i<=p;++i)
^
0_0_30267123_6990\Main.java:68: 错误: 需要class, interface或enum
for(int i=1;i<=p;++i)
^
0_0_30267123_6990\Main.java:70: 错误: 需要class, interface或enum
cout<<"\n";
^
0_0_30267123_6990\Main.java:71: 错误: 需要class, interface或enum
}
^
0_0_30267123_6990\Main.java:72: 错误: 需要class, interface或enum
for(int i=0;i<=25;++i)
^
0_0_30267123_6990\Main.java:72: 错误: 需要class, interface或enum
for(int i=0;i<=25;++i)
^
0_0_30267123_6990\Main.java:76: 错误: 需要class, interface或enum
out(index->next[i]);
^
0_0_30267123_6990\Main.java:77: 错误: 需要class, interface或enum
p--;
^
0_0_30267123_6990\Main.java:78: 错误: 需要class, interface或enum
}
^
0_0_30267123_6990\Main.java:80: 错误: 需要class, interface或enum
}
^
0_0_30267123_6990\Main.java:85: 错误: 需要class, interface或enum
len=in.size();
^
0_0_30267123_6990\Main.java:86: 错误: 需要class, interface或enum
for(int i=0;i<=len;++i)
^
0_0_30267123_6990\Main.java:86: 错误: 需要class, interface或enum
for(int i=0;i<=len;++i)
^
0_0_30267123_6990\Main.java:86: 错误: 需要class, interface或enum
for(int i=0;i<=len;++i)
^
0_0_30267123_6990\Main.java:89: 错误: 需要class, interface或enum
return 0;
^
0_0_30267123_6990\Main.java:90: 错误: 需要class, interface或enum
}
^
0_0_30267123_6990\Main.java:95: 错误: 需要class, interface或enum
root->n=0;
^
0_0_30267123_6990\Main.java:96: 错误: 需要class, interface或enum
for(int i=0;i<=25;++i) //构造函数初始化
^
0_0_30267123_6990\Main.java:96: 错误: 需要class, interface或enum
for(int i=0;i<=25;++i) //构造函数初始化
^
0_0_30267123_6990\Main.java:96: 错误: 需要class, interface或enum
for(int i=0;i<=25;++i) //构造函数初始化
^
0_0_30267123_6990\Main.java:98: 错误: 需要class, interface或enum
int work; //执行命令
^
0_0_30267123_6990\Main.java:99: 错误: 需要class, interface或enum
while(cin>>work)
^
0_0_30267123_6990\Main.java:104: 错误: 需要class, interface或enum
atin(); //插入单词
^
0_0_30267123_6990\Main.java:105: 错误: 需要class, interface或enum
}
^
0_0_30267123_6990\Main.java:109: 错误: 需要class, interface或enum
cout<<find()<<"\n"; //查找单词
^
0_0_30267123_6990\Main.java:110: 错误: 需要class, interface或enum
}
^
0_0_30267123_6990\Main.java:114: 错误: 需要class, interface或enum
dec(); //删除单词
^
0_0_30267123_6990\Main.java:115: 错误: 需要class, interface或enum
}
^
0_0_30267123_6990\Main.java:119: 错误: 需要class, interface或enum
out(root); //显示树结构
^
0_0_30267123_6990\Main.java:120: 错误: 需要class, interface或enum
}
^
0_0_30267123_6990\Main.java:123: 错误: 需要class, interface或enum
}
^
0_0_30267123_6990\Main.java:125: 错误: 非法字符: '#'
#include <iostream>
^
0_0_30267123_6990\Main.java:126: 错误: 非法字符: '#'
#include <algorithm>
^
0_0_30267123_6990\Main.java:127: 错误: 非法字符: '#'
#include <string.h>
^
0_0_30267123_6990\Main.java:128: 错误: 非法字符: '#'
#include <string>
^
0_0_30267123_6990\Main.java:129: 错误: 非法字符: '#'
#include <cmath>
^
0_0_30267123_6990\Main.java:130: 错误: 非法字符: '#'
#include <stdio.h>
^
0_0_30267123_6990\Main.java:131: 错误: 非法字符: '#'
#include <stdlib.h>
^
0_0_30267123_6990\Main.java:134: 错误: 需要class, interface或enum
const int maxn=10,maxL=100,mod=1000000009;
^
0_0_30267123_6990\Main.java:135: 错误: 需要class, interface或enum
int n,m,nL,cur,ans;
^
0_0_30267123_6990\Main.java:136: 错误: 需要class, interface或enum
int num[maxn],f[maxL][maxn*maxL][maxL];
^
0_0_30267123_6990\Main.java:137: 错误: 需要class, interface或enum
char ch[maxL];
^
0_0_30267123_6990\Main.java:138: 错误: 需要class, interface或enum
struct Node
^
0_0_30267123_6990\Main.java:141: 错误: 需要class, interface或enum
Node *fsto,*next[26];
^
0_0_30267123_6990\Main.java:142: 错误: 需要class, interface或enum
}tree[maxn*maxL],*que[maxn*maxL],*root;
^
0_0_30267123_6990\Main.java:144: 错误: 需要class, interface或enum
Node *NewNode()
^
0_0_30267123_6990\Main.java:147: 错误: 需要class, interface或enum
tree[cur].tail=0;
^
0_0_30267123_6990\Main.java:148: 错误: 需要class, interface或enum
tree[cur].son=0;
^
0_0_30267123_6990\Main.java:149: 错误: 需要class, interface或enum
tree[cur].fsto=NULL;
^
0_0_30267123_6990\Main.java:150: 错误: 需要class, interface或enum
for (int i=0;i<26;i++) tree[cur].next[i]=NULL;
^
0_0_30267123_6990\Main.java:150: 错误: 需要class, interface或enum
for (int i=0;i<26;i++) tree[cur].next[i]=NULL;
^
0_0_30267123_6990\Main.java:150: 错误: 需要class, interface或enum
|