0_0_13807626_24304.cpp:1:9: error: #include expects "FILENAME" or <FILENAME>
#include
^
0_0_13807626_24304.cpp:2:9: error: #include expects "FILENAME" or <FILENAME>
#include
^
0_0_13807626_24304.cpp:3:9: error: #include expects "FILENAME" or <FILENAME>
#include
^
0_0_13807626_24304.cpp:4:9: error: #include expects "FILENAME" or <FILENAME>
#include
^
0_0_13807626_24304.cpp: In member function 'void Tree::update(int, int, int, int)':
0_0_13807626_24304.cpp:22:13: error: 'y1' was not declared in this scope
int mid=x+y1;
^
0_0_13807626_24304.cpp:32:21: error: invalid operands of types 'Tree*' and 'void' to binary 'operator-'
ls-add(x,mid,mark);
^
0_0_13807626_24304.cpp:33:23: error: invalid operands of types 'Tree*' and 'void' to binary 'operator-'
rs-add(mid+1,y,mark);
^
0_0_13807626_24304.cpp:36:23: error: 'rupdate' was not declared in this scope
if(rupdate(x,mid,l,r);
^
0_0_13807626_24304.cpp:36:24: error: expected ')' before ';' token
if(rupdate(x,mid,l,r);
^
0_0_13807626_24304.cpp:37:11: error: 'lmid' was not declared in this scope
else if(lmid) rs-update(mid+1,y,l,r);
^
0_0_13807626_24304.cpp:37:38: error: invalid operands of types 'Tree*' and 'void' to binary 'operator-'
else if(lmid) rs-update(mid+1,y,l,r);
^
0_0_13807626_24304.cpp:38:29: error: invalid operands of types 'Tree*' and 'void' to binary 'operator-'
else ls-update(x,mid,l,mid),rs-update(mid+1,y,mid+1,r);
^
0_0_13807626_24304.cpp:38:56: error: invalid operands of types 'Tree*' and 'void' to binary 'operator-'
else ls-update(x,mid,l,mid),rs-update(mid+1,y,mid+1,r);
^
0_0_13807626_24304.cpp:39:14: error: invalid operands of types 'Tree*' and 'Tree*' to binary 'operator+'
num=ls-num+rs-num;
^
0_0_13807626_24304.cpp: In member function 'unsigned int Tree::getans(int, int, int, int)':
0_0_13807626_24304.cpp:43:13: error: 'y1' was not declared in this scope
int mid=x+y1;
^
0_0_13807626_24304.cpp:52:21: error: invalid operands of types 'Tree*' and 'void' to binary 'operator-'
ls-add(x,mid,mark);
^
0_0_13807626_24304.cpp:53:23: error: invalid operands of types 'Tree*' and 'void' to binary 'operator-'
rs-add(mid+1,y,mark);
^
0_0_13807626_24304.cpp:56:23: error: 'rgetans' was not declared in this scope
if(rgetans(x,mid,l,r);
^
0_0_13807626_24304.cpp:56:24: error: expected ')' before ';' token
if(rgetans(x,mid,l,r);
^
0_0_13807626_24304.cpp:57:6: error: 'lmid' was not declared in this scope
if(lmid) return rs-getans(mid+1,y,l,r);
^
0_0_13807626_24304.cpp:57:21: error: invalid conversion from 'Tree*' to 'unsigned int' [-fpermissive]
if(lmid) return rs-getans(mid+1,y,l,r);
^
0_0_13807626_24304.cpp:58:35: error: invalid operands of types 'Tree*' and 'Tree*' to binary 'operator+'
return ls-getans(x,mid,l,mid) + rs-getans(mid+1,y,mid+1,r);
^
0_0_13807626_24304.cpp: At global scope:
0_0_13807626_24304.cpp:62:14: error: stray ',' at end of member declaration
abcd *ls,*rs,;
^
0_0_13807626_24304.cpp: In member function 'void abcd::update(int, int, int, int, int)':
0_0_13807626_24304.cpp:71:13: error: 'y1' was not declared in this scope
int mid=x+y1;
^
0_0_13807626_24304.cpp:72:22: error: no matching function for call to 'abcd::update(int, int&, int&, int&)'
tree-update(1,n,l,r);
^
0_0_13807626_24304.cpp:72:22: note: candidate is:
0_0_13807626_24304.cpp:69:7: note: void abcd::update(int, int, int, int, int)
void update(int x,int y,int l,int r,int val)
^
0_0_13807626_24304.cpp:69:7: note: candidate expects 5 arguments, 4 provided
0_0_13807626_24304.cpp:78:4: error: expected ')' before 'ls'
ls-update(x,mid,l,r,val);
^
0_0_13807626_24304.cpp:80:29: error: invalid operands of types 'abcd*' and 'void' to binary 'operator-'
rs-update(mid+1,y,l,r,val);
^
0_0_13807626_24304.cpp: In member function 'int abcd::getans(int, int, int, int, int)':
0_0_13807626_24304.cpp:84:13: error: 'y1' was not declared in this scope
int mid=x+y1;
^
0_0_13807626_24304.cpp:89:16: error: invalid operands of types 'abcd*' and 'Tree*' to binary 'operator-'
int r_sum=rs-tree-getans(1,n,l,r);
^
0_0_13807626_24304.cpp:89:35: error: no matching function for call to 'abcd::getans(int, int&, int&, int&)'
int r_sum=rs-tree-getans(1,n,l,r);
^
0_0_13807626_24304.cpp:89:35: note: candidate is:
0_0_13807626_24304.cpp:82:6: note: int abcd::getans(int, int, int, int, int)
int getans(int x,int y,int l,int r,int k)
^
0_0_13807626_24304.cpp:82:6: note: candidate expects 5 arguments, 4 provided
0_0_13807626_24304.cpp:90:6: error: 'kr_sum' was not declared in this scope
if(kr_sum)
^
0_0_13807626_24304.cpp:91:13: error: invalid conversion from 'abcd*' to 'int' [-fpermissive]
return ls-getans(x,mid,l,r,k-r_sum);
^
0_0_13807626_24304.cpp:93:13: error: invalid conversion from 'abcd*' to 'int' [-fpermissive]
return rs-getans(mid+1,y,l,r,k);
^
0_0_13807626_24304.cpp: In function 'int main()':
0_0_13807626_24304.cpp:102:2: error: 'cinnm' was not declared in this scope
cinnm;
^
0_0_13807626_24304.cpp:104:2: error: expected ';' before '{' token
{
^
0_0_13807626_24304.cpp:104:2: error: expected primary-expression before '{' token
0_0_13807626_24304.cpp:104:2: error: expected ')' before '{' token
0_0_13807626_24304.cpp:105:31: error: 'scanf' was not declared in this scope
scanf("%d%d%d%d",&p,&x,&y,&z);
^
0_0_13807626_24304.cpp:109:42: error: 'printf' was not declared in this scope
printf("%d\n", root.getans(1,n,x,y,z) );
^
|