0_0_21260628_30520.cpp:2:9: error: #include expects "FILENAME" or <FILENAME>
#include <cstdio>
^
0_0_21260628_30520.cpp:3:9: error: #include expects "FILENAME" or <FILENAME>
#include <cstring>
^
0_0_21260628_30520.cpp:4:9: error: #include expects "FILENAME" or <FILENAME>
#include <cmath>
^
0_0_21260628_30520.cpp:5:9: error: #include expects "FILENAME" or <FILENAME>
#include <vector>
^
0_0_21260628_30520.cpp:6:9: error: #include expects "FILENAME" or <FILENAME>
#include <iostream>
^
0_0_21260628_30520.cpp:7:9: error: #include expects "FILENAME" or <FILENAME>
#include <algorithm>
^
0_0_21260628_30520.cpp:8:6: error: expected nested-name-specifier before '&' token
using namespace std;
^
0_0_21260628_30520.cpp:8:21: error: expected identifier before '&' token
using namespace std;
^
0_0_21260628_30520.cpp:8:26: error: expected constructor, destructor, or type conversion before ';' token
using namespace std;
^
0_0_21260628_30520.cpp:8:27: error: 'std' does not name a type
using namespace std;
^
0_0_21260628_30520.cpp:8:36: error: expected constructor, destructor, or type conversion before ';' token
using namespace std;
^
0_0_21260628_30520.cpp:8:42: error: expected constructor, destructor, or type conversion before ';' token
using namespace std;
^
0_0_21260628_30520.cpp:9:7: error: 'nbsp' declared as reference but not initialized
const int maxn=40004;
^
0_0_21260628_30520.cpp:9:16: error: conflicting declaration 'int& nbsp'
const int maxn=40004;
^
0_0_21260628_30520.cpp:9:7: note: previous declaration as 'const int& nbsp'
const int maxn=40004;
^
0_0_21260628_30520.cpp:9:21: error: 'maxn' does not name a type
const int maxn=40004;
^
0_0_21260628_30520.cpp:9:37: error: expected constructor, destructor, or type conversion before ';' token
const int maxn=40004;
^
0_0_21260628_30520.cpp:9:43: error: expected constructor, destructor, or type conversion before ';' token
const int maxn=40004;
^
0_0_21260628_30520.cpp:10:7: error: expected identifier before '&' token
struct node{
^
0_0_21260628_30520.cpp:10:12: error: invalid type in declaration before ';' token
struct node{
^
0_0_21260628_30520.cpp:10:12: error: conflicting declaration 'int& nbsp'
0_0_21260628_30520.cpp:9:7: note: previous declaration as 'const int& nbsp'
const int maxn=40004;
^
0_0_21260628_30520.cpp:10:13: error: 'node' does not name a type
struct node{
^
0_0_21260628_30520.cpp:13:8: error: expected constructor, destructor, or type conversion before ';' token
};
^
0_0_21260628_30520.cpp:13:14: error: expected constructor, destructor, or type conversion before ';' token
};
^
0_0_21260628_30520.cpp:14:5: error: conflicting declaration 'int& nbsp'
int f[maxn],dis[maxn],n,ans[maxn],vis[maxn];
^
0_0_21260628_30520.cpp:9:7: note: previous declaration as 'const int& nbsp'
const int maxn=40004;
^
0_0_21260628_30520.cpp:14:10: error: 'f' does not name a type
int f[maxn],dis[maxn],n,ans[maxn],vis[maxn];
^
0_0_21260628_30520.cpp:14:55: error: expected constructor, destructor, or type conversion before ';' token
int f[maxn],dis[maxn],n,ans[maxn],vis[maxn];
^
0_0_21260628_30520.cpp:14:61: error: expected constructor, destructor, or type conversion before ';' token
int f[maxn],dis[maxn],n,ans[maxn],vis[maxn];
^
0_0_21260628_30520.cpp:19:1: error: 'vector' does not name a type
vector<node>e[maxn];//记录树
^
0_0_21260628_30520.cpp:20:1: error: 'vector' does not name a type
vector<node>q[maxn];//记录所求最短距离的两点
^
0_0_21260628_30520.cpp:21:5: error: conflicting declaration 'int& nbsp'
int find(int x)
^
0_0_21260628_30520.cpp:9:7: note: previous declaration as 'const int& nbsp'
const int maxn=40004;
^
0_0_21260628_30520.cpp:21:23: error: expected ')' before ';' token
int find(int x)
^
0_0_21260628_30520.cpp:21:23: error: expected constructor, destructor, or type conversion before ';' token
0_0_21260628_30520.cpp:21:24: error: 'x' does not name a type
int find(int x)
^
0_0_21260628_30520.cpp:21:37: error: expected constructor, destructor, or type conversion before ';' token
int find(int x)
^
0_0_21260628_30520.cpp:22:1: error: expected unqualified-id before '{' token
{
^
0_0_21260628_30520.cpp:25:7: error: expected constructor, destructor, or type conversion before ';' token
}
^
0_0_21260628_30520.cpp:25:13: error: expected constructor, destructor, or type conversion before ';' token
}
^
0_0_21260628_30520.cpp:26:6: error: cannot declare reference to 'void'
void lca(int u)
^
0_0_21260628_30520.cpp:26:6: error: variable or field 'nbsp' declared void
0_0_21260628_30520.cpp:26:23: error: expected ')' before ';' token
void lca(int u)
^
0_0_21260628_30520.cpp:26:23: error: expected constructor, destructor, or type conversion before ';' token
0_0_21260628_30520.cpp:26:24: error: 'u' does not name a type
void lca(int u)
^
0_0_21260628_30520.cpp:26:37: error: expected constructor, destructor, or type conversion before ';' token
void lca(int u)
^
0_0_21260628_30520.cpp:27:1: error: expected unqualified-id before '{' token
{
^
|