0_0_30085232_29045.cpp:4:18: error: expected unqualified-id before '=' token
typedef long long=ll;
^
0_0_30085232_29045.cpp:6:1: error: 'll' does not name a type
ll fa[maxn],si[maxn],f[maxn],g[maxn];
^
0_0_30085232_29045.cpp: In function 'void dfs(int)':
0_0_30085232_29045.cpp:10:2: error: 'si' was not declared in this scope
si[x]=1;//至少一个点,即它本身
^
0_0_30085232_29045.cpp:11:2: error: 'f' was not declared in this scope
f[x]=0;//初始化贡献为0
^
0_0_30085232_29045.cpp:13:11: error: 'fa' was not declared in this scope
if(i != fa[x])//若该节点是它的子节点
^
0_0_30085232_29045.cpp: At global scope:
0_0_30085232_29045.cpp:21:1: error: 'll' does not name a type
ll dfs(int x,int root,ll num)
^
0_0_30085232_29045.cpp: In function 'int main()':
0_0_30085232_29045.cpp:36:3: error: 'fa' was not declared in this scope
fa[i]=-1;
^
0_0_30085232_29045.cpp:44:2: error: 'fa' was not declared in this scope
fa[1]=1;//令1号节点为根节点
^
0_0_30085232_29045.cpp:46:2: error: 'll' was not declared in this scope
ll sonNum=si[1];//第一棵树的节点个数
^
0_0_30085232_29045.cpp:47:5: error: expected ';' before 'fSonNum'
ll fSonNum=n-sonNum;//另一棵树的节点个数
^
0_0_30085232_29045.cpp:53:4: error: 'route2' was not declared in this scope
route2=i;//记录该树的根节点
^
0_0_30085232_29045.cpp:58:16: error: 'fSonNum' was not declared in this scope
cout<<dfs(1,1,fSonNum)+dfs(root2,root2,sonNum)+sonNum*fSonNum<<endl;
^
0_0_30085232_29045.cpp:58:41: error: 'sonNum' was not declared in this scope
cout<<dfs(1,1,fSonNum)+dfs(root2,root2,sonNum)+sonNum*fSonNum<<endl;
^
|