0_0_31976440_25642.cpp:1:9: error: #include expects "FILENAME" or <FILENAME>
#include <iostream>
^
0_0_31976440_25642.cpp:2:9: error: #include expects "FILENAME" or <FILENAME>
#include <algorithm>
^
0_0_31976440_25642.cpp:3:9: error: #include expects "FILENAME" or <FILENAME>
#include <cstdio>
^
0_0_31976440_25642.cpp:4:9: error: #include expects "FILENAME" or <FILENAME>
#include <cstring>
^
0_0_31976440_25642.cpp:5:9: error: #include expects "FILENAME" or <FILENAME>
#include <cstdlib>
^
0_0_31976440_25642.cpp:6:9: error: #include expects "FILENAME" or <FILENAME>
#include <cmath>
^
0_0_31976440_25642.cpp:7:9: error: #include expects "FILENAME" or <FILENAME>
#include <ctime>
^
0_0_31976440_25642.cpp:8:9: error: #include expects "FILENAME" or <FILENAME>
#include <vector>
^
0_0_31976440_25642.cpp:9:9: error: #include expects "FILENAME" or <FILENAME>
#include <queue>
^
0_0_31976440_25642.cpp:10:9: error: #include expects "FILENAME" or <FILENAME>
#include <stack>
^
0_0_31976440_25642.cpp:11:9: error: #include expects "FILENAME" or <FILENAME>
#include <deque>
^
0_0_31976440_25642.cpp:12:9: error: #include expects "FILENAME" or <FILENAME>
#include <string>
^
0_0_31976440_25642.cpp:13:9: error: #include expects "FILENAME" or <FILENAME>
#include <map>
^
0_0_31976440_25642.cpp:14:9: error: #include expects "FILENAME" or <FILENAME>
#include <set>
^
0_0_31976440_25642.cpp:15:9: error: #include expects "FILENAME" or <FILENAME>
#include <list>
^
0_0_31976440_25642.cpp:17:8: error: macro names must be identifiers
#define INF 0x3f3f3f3f
^
0_0_31976440_25642.cpp:18:8: error: macro names must be identifiers
#define LL long long
^
0_0_31976440_25642.cpp:19:8: error: macro names must be identifiers
#define fi first
^
0_0_31976440_25642.cpp:20:8: error: macro names must be identifiers
#define se second
^
0_0_31976440_25642.cpp:21:8: error: macro names must be identifiers
#define mem(a,b) memset((a),(b),sizeof(a))
^
0_0_31976440_25642.cpp:16:6: error: expected nested-name-specifier before '&' token
using namespace std;
^
0_0_31976440_25642.cpp:16:21: error: expected identifier before '&' token
using namespace std;
^
0_0_31976440_25642.cpp:16:26: error: expected constructor, destructor, or type conversion before ';' token
using namespace std;
^
0_0_31976440_25642.cpp:16:27: error: 'std' does not name a type
using namespace std;
^
0_0_31976440_25642.cpp:22:6: error: expected constructor, destructor, or type conversion before ';' token
^
0_0_31976440_25642.cpp:23:7: error: 'nbsp' declared as reference but not initialized
const int MAXN=200000+3;
^
0_0_31976440_25642.cpp:23:16: error: conflicting declaration 'int& nbsp'
const int MAXN=200000+3;
^
0_0_31976440_25642.cpp:23:7: note: previous declaration as 'const int& nbsp'
const int MAXN=200000+3;
^
0_0_31976440_25642.cpp:23:21: error: 'MAXN' does not name a type
const int MAXN=200000+3;
^
0_0_31976440_25642.cpp:24:5: error: conflicting declaration 'int& nbsp'
int N, color[MAXN];
^
0_0_31976440_25642.cpp:23:7: note: previous declaration as 'const int& nbsp'
const int MAXN=200000+3;
^
0_0_31976440_25642.cpp:24:10: error: 'N' does not name a type
int N, color[MAXN];
^
0_0_31976440_25642.cpp:24:18: error: 'color' does not name a type
int N, color[MAXN];
^
0_0_31976440_25642.cpp:25:1: error: 'vector' does not name a type
vector<int> G[MAXN];
^
0_0_31976440_25642.cpp:25:18: error: 'G' does not name a type
vector<int> G[MAXN];
^
0_0_31976440_25642.cpp:26:1: error: 'LL' does not name a type
LL ans;
^
0_0_31976440_25642.cpp:26:9: error: 'ans' does not name a type
LL ans;
^
0_0_31976440_25642.cpp:27:5: error: conflicting declaration 'int& nbsp'
int top[MAXN];//此时颜色为i的联通块的上界
^
0_0_31976440_25642.cpp:23:7: note: previous declaration as 'const int& nbsp'
const int MAXN=200000+3;
^
0_0_31976440_25642.cpp:27:10: error: 'top' does not name a type
int top[MAXN];//此时颜色为i的联通块的上界
^
0_0_31976440_25642.cpp:28:5: error: conflicting declaration 'int& nbsp'
int not_in[MAXN];//以i为根节点的子树中,不在i所在的联通块中节点的个数
^
0_0_31976440_25642.cpp:23:7: note: previous declaration as 'const int& nbsp'
const int MAXN=200000+3;
^
0_0_31976440_25642.cpp:28:10: error: 'not_in' does not name a type
int not_in[MAXN];//以i为根节点的子树中,不在i所在的联通块中节点的个数
^
0_0_31976440_25642.cpp:29:5: error: conflicting declaration 'int& nbsp'
int not_in_root[MAXN];//以颜色i为分界线,不在根节点所在的联通块中的节点个数
^
0_0_31976440_25642.cpp:23:7: note: previous declaration as 'const int& nbsp'
const int MAXN=200000+3;
^
0_0_31976440_25642.cpp:29:10: error: 'not_in_root' does not name a type
int not_in_root[MAXN];//以颜色i为分界线,不在根节点所在的联通块中的节点个数
^
0_0_31976440_25642.cpp:30:6: error: expected constructor, destructor, or type conversion before ';' token
^
0_0_31976440_25642.cpp:31:6: error: cannot declare reference to 'void'
void init()//初始化
^
0_0_31976440_25642.cpp:31:6: error: variable or field 'nbsp' declared void
0_0_31976440_25642.cpp: In function 'int init()':
0_0_31976440_25642.cpp:33:33: error: 'nbsp' declared as reference but not initialized
for(int i=0;i<=N;++i)
^
0_0_31976440_25642.cpp:33:38: error: 'i' was not declared in this scope
for(int i=0;i<=N;++i)
^
0_0_31976440_25642.cpp:33:45: error: 'N' was not declared in this scope
for(int i=0;i<=N;++i)
^
0_0_31976440_25642.cpp:33:46: error: expected ')' before ';' token
for(int i=0;i<=N;++i)
^
0_0_31976440_25642.cpp:33:49: error: 'i' was not declared in this scope
for(int i=0;i<=N;++i)
^
0_0_31976440_25642.cpp:35:49: error: 'not_in_root' was not declared in this scope
not_in_root[i]=0;
^
0_0_31976440_25642.cpp:36:49: error: 'G' was not declared in this scope
G[i].clear();
^
0_0_31976440_25642.cpp: At global scope:
0_0_31976440_25642.cpp:39:6: error: expected constructor, destructor, or type conversion before ';' token
^
0_0_31976440_25642.cpp:40:8: error: 'nbsp' declared as an 'inline' variable
inline LL get_path_num(LL num)//得到一个大小为num的联通块中有多少条路径
^
0_0_31976440_25642.cpp:40:8: error: conflicting declaration 'int& nbsp'
0_0_31976440_25642.cpp:23:7: note: previous declaration as 'const int& nbsp'
const int MAXN=200000+3;
^
0_0_31976440_25642.cpp:40:13: error: 'LL' does not name a type
inline LL get_path_num(LL num)//得到一个大小为num的联通块中有多少条路径
^
0_0_31976440_25642.cpp:40:33: error: expected constructor, destructor, or type conversion before '(' token
inline LL get_path_num(LL num)//得到一个大小为num的联通块中有多少条路径
^
0_0_31976440_25642.cpp:40:42: error: 'num' does not name a type
inline LL get_path_num(LL num)//得到一个大小为num的联通块中有多少条路径
^
0_0_31976440_25642.cpp:44:6: error: expected constructor, destructor, or type conversion before ';' token
^
0_0_31976440_25642.cpp:45:5: error: conflicting declaration 'int& nbsp'
int dfs(int u, int fa)
^
0_0_31976440_25642.cpp:23:7: note: previous declaration as 'const int& nbsp'
const int MAXN=200000+3;
^
0_0_31976440_25642.cpp:45:22: error: expected ')' before ';' token
int dfs(int u, int fa)
^
0_0_31976440_25642.cpp:45:22: error: expected constructor, destructor, or type conversion before ';' token
0_0_31976440_25642.cpp:45:23: error: 'u' does not name a type
int dfs(int u, int fa)
^
0_0_31976440_25642.cpp:45:35: error: conflicting declaration 'int& nbsp'
int dfs(int u, int fa)
^
0_0_31976440_25642.cpp:23:7: note: previous declaration as 'const int& nbsp'
const int MAXN=200000+3;
^
0_0_31976440_25642.cpp:45:40: error: 'fa' does not name a type
int dfs(int u, int fa)
^
0_0_31976440_25642.cpp:64:6: error: expected const
|