0_0_19312475_41.cpp:3:6: error: expected constructor, destructor, or type conversion before ';' token
^
0_0_19312475_41.cpp:3:12: error: expected constructor, destructor, or type conversion before ';' token
^
0_0_19312475_41.cpp:4:6: error: expected nested-name-specifier before '&' token
using namespace std;
^
0_0_19312475_41.cpp:4:21: error: expected identifier before '&' token
using namespace std;
^
0_0_19312475_41.cpp:4:26: error: expected constructor, destructor, or type conversion before ';' token
using namespace std;
^
0_0_19312475_41.cpp:4:27: error: 'std' does not name a type
using namespace std;
^
0_0_19312475_41.cpp:4:36: error: expected constructor, destructor, or type conversion before ';' token
using namespace std;
^
0_0_19312475_41.cpp:4:42: error: expected constructor, destructor, or type conversion before ';' token
using namespace std;
^
0_0_19312475_41.cpp:5:7: error: 'nbsp' declared as reference but not initialized
const int N=100005;
^
0_0_19312475_41.cpp:5:16: error: conflicting declaration 'int& nbsp'
const int N=100005;
^
0_0_19312475_41.cpp:5:7: note: previous declaration as 'const int& nbsp'
const int N=100005;
^
0_0_19312475_41.cpp:5:21: error: 'N' does not name a type
const int N=100005;
^
0_0_19312475_41.cpp:5:35: error: expected constructor, destructor, or type conversion before ';' token
const int N=100005;
^
0_0_19312475_41.cpp:5:41: error: expected constructor, destructor, or type conversion before ';' token
const int N=100005;
^
0_0_19312475_41.cpp:6:6: error: expected constructor, destructor, or type conversion before ';' token
^
0_0_19312475_41.cpp:6:12: error: expected constructor, destructor, or type conversion before ';' token
^
0_0_19312475_41.cpp:7:7: error: expected identifier before '&' token
struct node
^
0_0_19312475_41.cpp:7:12: error: invalid type in declaration before ';' token
struct node
^
0_0_19312475_41.cpp:7:12: error: conflicting declaration 'int& nbsp'
0_0_19312475_41.cpp:5:7: note: previous declaration as 'const int& nbsp'
const int N=100005;
^
0_0_19312475_41.cpp:7:13: error: 'node' does not name a type
struct node
^
0_0_19312475_41.cpp:7:28: error: expected constructor, destructor, or type conversion before ';' token
struct node
^
0_0_19312475_41.cpp:8:1: error: expected unqualified-id before '{' token
{
^
0_0_19312475_41.cpp:11:2: error: 'p' does not name a type
}p[N<<2];
^
0_0_19312475_41.cpp:11:15: error: expected constructor, destructor, or type conversion before ';' token
}p[N<<2];
^
0_0_19312475_41.cpp:11:21: error: expected constructor, destructor, or type conversion before ';' token
}p[N<<2];
^
0_0_19312475_41.cpp:12:6: error: expected constructor, destructor, or type conversion before ';' token
^
0_0_19312475_41.cpp:12:12: error: expected constructor, destructor, or type conversion before ';' token
^
0_0_19312475_41.cpp:13:6: error: cannot declare reference to 'void'
void init(int l,int r,int rt)//构造线段树
^
0_0_19312475_41.cpp:13:6: error: variable or field 'nbsp' declared void
0_0_19312475_41.cpp:13:24: error: expected ')' before ';' token
void init(int l,int r,int rt)//构造线段树
^
0_0_19312475_41.cpp:13:24: error: expected constructor, destructor, or type conversion before ';' token
0_0_19312475_41.cpp:13:25: error: 'l' does not name a type
void init(int l,int r,int rt)//构造线段树
^
0_0_19312475_41.cpp:13:36: error: 'r' does not name a type
void init(int l,int r,int rt)//构造线段树
^
0_0_19312475_41.cpp:13:47: error: 'rt' does not name a type
void init(int l,int r,int rt)//构造线段树
^
0_0_19312475_41.cpp:23:7: error: expected constructor, destructor, or type conversion before ';' token
}
^
0_0_19312475_41.cpp:23:13: error: expected constructor, destructor, or type conversion before ';' token
}
^
0_0_19312475_41.cpp:24:6: error: expected constructor, destructor, or type conversion before ';' token
^
0_0_19312475_41.cpp:24:12: error: expected constructor, destructor, or type conversion before ';' token
^
0_0_19312475_41.cpp:25:6: error: cannot declare reference to 'void'
void update(int l,int r,int rt)//更新线段树
^
0_0_19312475_41.cpp:25:6: error: variable or field 'nbsp' declared void
0_0_19312475_41.cpp:25:26: error: expected ')' before ';' token
void update(int l,int r,int rt)//更新线段树
^
0_0_19312475_41.cpp:25:26: error: expected constructor, destructor, or type conversion before ';' token
0_0_19312475_41.cpp:25:27: error: 'l' does not name a type
void update(int l,int r,int rt)//更新线段树
^
0_0_19312475_41.cpp:25:38: error: 'r' does not name a type
void update(int l,int r,int rt)//更新线段树
^
0_0_19312475_41.cpp:25:49: error: 'rt' does not name a type
void update(int l,int r,int rt)//更新线段树
^
0_0_19312475_41.cpp:42:7: error: expected constructor, destructor, or type conversion before ';' token
}
^
0_0_19312475_41.cpp:42:13: error: expected constructor, destructor, or type conversion before ';' token
}
^
0_0_19312475_41.cpp:43:6: error: expected constructor, destructor, or type conversion before ';' token
^
0_0_19312475_41.cpp:43:12: error: expected constructor, destructor, or type conversion before ';' token
^
0_0_19312475_41.cpp:44:5: error: conflicting declaration 'int& nbsp'
int query(int i,int rt)//查询线段树
^
0_0_19312475_41.cpp:5:7: note: previous declaration as 'const int& nbsp'
const int N=100005;
^
0_0_19312475_41.cpp:44:24: error: expected ')' before ';' token
int query(int i,int rt)//查询线段树
^
0_0_19312475_41.cpp:44:24: error: expected constructor, destructor, or type conversion before ';' token
0_0_19312475_41.cpp:44:25: error: 'i' does not name a type
int query(int i,int rt)//查询线段树
^
0_0_19312475_41.cpp:44:36: error: 'rt' does not name a type
int query(int i,int rt)//查询线段树
^
0_0_19312475_41.cpp:59:7: error: expected constructor, destructor, or type conversion before ';' token
}
^
0_0_19312475_41.cpp:59:13: error: expected constructor, destructor, or type conversion before ';' token
}
^
0_0_19312475_41.cpp:60:6: error: expected constructor, destructor, or type conversion before ';' token
^
0_0_19312475_41.cpp:60:12: error: expected constructor, destructor, or type conversion before ';' token
^
0_0_19312475_41.cpp:61:5: error: conflicting declaration 'int& nbsp'
int main()
^
0_0_19312475_41.cpp:5:7: note: previous declaration as 'const int& nbsp'
const int N=100005;
^
0_0_19312475_41.cpp:61:17: error: expected constructor, destructor, or type conversion before 'nbsp'
int main()
^
0_0_19312475_41.cpp:61:27: error: expected constructor, destructor, or type conversion before ';' token
int main()
^
0_0_19312475_41.cpp:62:1: error: expected unqualified-id before '{' token
{
^
|