0_0_13599368_5639.cpp:2:6: error: expected nested-name-specifier before '&' token
using namespace std;
^
0_0_13599368_5639.cpp:2:21: error: expected identifier before '&' token
using namespace std;
^
0_0_13599368_5639.cpp:2:26: error: expected constructor, destructor, or type conversion before ';' token
using namespace std;
^
0_0_13599368_5639.cpp:2:27: error: 'std' does not name a type
using namespace std;
^
0_0_13599368_5639.cpp:6:8: error: redeclaration of 'int& <anonymous struct>::nbsp'
int l,r;
^
0_0_13599368_5639.cpp:6:2: note: previous declaration 'int& <anonymous struct>::nbsp'
int l,r;
^
0_0_13599368_5639.cpp:6:14: error: redeclaration of 'int& <anonymous struct>::nbsp'
int l,r;
^
0_0_13599368_5639.cpp:6:2: note: previous declaration 'int& <anonymous struct>::nbsp'
int l,r;
^
0_0_13599368_5639.cpp:6:20: error: redeclaration of 'int& <anonymous struct>::nbsp'
int l,r;
^
0_0_13599368_5639.cpp:6:2: note: previous declaration 'int& <anonymous struct>::nbsp'
int l,r;
^
0_0_13599368_5639.cpp:6:29: error: redeclaration of 'int& <anonymous struct>::nbsp'
int l,r;
^
0_0_13599368_5639.cpp:6:2: note: previous declaration 'int& <anonymous struct>::nbsp'
int l,r;
^
0_0_13599368_5639.cpp:6:34: error: 'l' does not name a type
int l,r;
^
0_0_13599368_5639.cpp:7:2: error: redeclaration of 'int& <anonymous struct>::nbsp'
int num;
^
0_0_13599368_5639.cpp:6:2: note: previous declaration 'int& <anonymous struct>::nbsp'
int l,r;
^
0_0_13599368_5639.cpp:7:8: error: redeclaration of 'int& <anonymous struct>::nbsp'
int num;
^
0_0_13599368_5639.cpp:6:2: note: previous declaration 'int& <anonymous struct>::nbsp'
int l,r;
^
0_0_13599368_5639.cpp:7:14: error: redeclaration of 'int& <anonymous struct>::nbsp'
int num;
^
0_0_13599368_5639.cpp:6:2: note: previous declaration 'int& <anonymous struct>::nbsp'
int l,r;
^
0_0_13599368_5639.cpp:7:20: error: redeclaration of 'int& <anonymous struct>::nbsp'
int num;
^
0_0_13599368_5639.cpp:6:2: note: previous declaration 'int& <anonymous struct>::nbsp'
int l,r;
^
0_0_13599368_5639.cpp:7:29: error: redeclaration of 'int& <anonymous struct>::nbsp'
int num;
^
0_0_13599368_5639.cpp:6:2: note: previous declaration 'int& <anonymous struct>::nbsp'
int l,r;
^
0_0_13599368_5639.cpp:7:34: error: 'num' does not name a type
int num;
^
0_0_13599368_5639.cpp:8:10: error: use of deleted function '<anonymous struct>::<constructor>()'
}tree[4*N];
^
0_0_13599368_5639.cpp:5:1: note: '<anonymous struct>::<constructor>()' is implicitly deleted because the default definition would be ill-formed:
{
^
0_0_13599368_5639.cpp:5:1: error: uninitialized reference member in 'struct<anonymous>'
0_0_13599368_5639.cpp:6:2: note: 'int& <anonymous struct>::nbsp' should be initialized
int l,r;
^
0_0_13599368_5639.cpp:9:6: error: cannot declare reference to 'void'
void creat(int i,int l,int r)
^
0_0_13599368_5639.cpp:9:6: error: variable or field 'nbsp' declared void
0_0_13599368_5639.cpp:9:25: error: expected ')' before ';' token
void creat(int i,int l,int r)
^
0_0_13599368_5639.cpp:9:25: error: expected constructor, destructor, or type conversion before ';' token
0_0_13599368_5639.cpp:9:26: error: 'i' does not name a type
void creat(int i,int l,int r)
^
0_0_13599368_5639.cpp:9:37: error: 'l' does not name a type
void creat(int i,int l,int r)
^
0_0_13599368_5639.cpp:9:48: error: 'r' does not name a type
void creat(int i,int l,int r)
^
0_0_13599368_5639.cpp:22:6: error: cannot declare reference to 'void'
void updata(int i,int k)
^
0_0_13599368_5639.cpp:22:6: error: variable or field 'nbsp' declared void
0_0_13599368_5639.cpp:22:26: error: expected ')' before ';' token
void updata(int i,int k)
^
0_0_13599368_5639.cpp:22:26: error: expected constructor, destructor, or type conversion before ';' token
0_0_13599368_5639.cpp:22:27: error: 'i' does not name a type
void updata(int i,int k)
^
0_0_13599368_5639.cpp:22:38: error: 'k' does not name a type
void updata(int i,int k)
^
0_0_13599368_5639.cpp:36:5: error: 'nbsp' declared as reference but not initialized
int getsum(int i,int k,int n)
^
0_0_13599368_5639.cpp:36:25: error: expected ')' before ';' token
int getsum(int i,int k,int n)
^
0_0_13599368_5639.cpp:36:25: error: expected constructor, destructor, or type conversion before ';' token
0_0_13599368_5639.cpp:36:26: error: 'i' does not name a type
int getsum(int i,int k,int n)
^
0_0_13599368_5639.cpp:36:37: error: 'k' does not name a type
int getsum(int i,int k,int n)
^
0_0_13599368_5639.cpp:36:48: error: 'n' does not name a type
int getsum(int i,int k,int n)
^
0_0_13599368_5639.cpp:53:5: error: redefinition of 'int& nbsp'
int main()
^
0_0_13599368_5639.cpp:36:5: note: 'int& nbsp' previously declared here
int getsum(int i,int k,int n)
^
0_0_13599368_5639.cpp: In function 'int main()':
0_0_13599368_5639.cpp:55:29: error: 'nbsp' declared as reference but not initialized
int n;
^
0_0_13599368_5639.cpp:55:34: error: 'n' was not declared in this scope
int n;
^
0_0_13599368_5639.cpp:58:53: error: 'nbsp' declared as reference but not initialized
int a[N];
^
0_0_13599368_5639.cpp:58:58: error: 'a' was not declared in this scope
int a[N];
^
0_0_13599368_5639.cpp:59:62: error: 'creat' was not declared in this scope
creat(1,0,n-1);
^
0_0_13599368_5639.cpp:60:53: error: redeclaration of 'int& nbsp'
int i;
^
0_0_13599368_5639.cpp:58:53: note: 'int& nbsp' previously declared here
int a[N];
^
0_0_13599368_5639.cpp:60:58: error: 'i' was not declared in this scope
int i;
^
0_0_13599368_5639.cpp:61:53: error: redeclaration of 'int& nbsp'
int ans=0;
^
0_0_13599368_5639.cpp:58:53: note: 'int& nbsp' previously declared here
int a[N];
^
0_0_13599368_5639.cpp:61:58: error: 'ans' was not declared in this scope
int ans=0;
^
0_0_13599368_5639.cpp:65:97: error: 'getsum' was not declared in this scope
ans+=getsum(1,a[i]+1,n-1);
^
0_0_13599368_5639.cpp:66:86: error: 'updata' was not declared in this scope
updata(1,a[i]);
^
0_0_13599368_5639.cpp:68:53: error: redeclaration of 'int& nbsp'
int minx=ans;
^
0_0_13599368_5639.cpp:58:53: note: 'int& nbsp' previously declared here
int a[N];
^
0_0_13599368_5639.cpp:68:58: error: 'minx' was not declared in this scope
int minx=ans;
|