0_0_13813724_4248.cpp:1:10: error: #include expects "FILENAME" or <FILENAME>
#include
^
0_0_13813724_4248.cpp:2:10: error: #include expects "FILENAME" or <FILENAME>
#include
^
0_0_13813724_4248.cpp:3:10: error: #include expects "FILENAME" or <FILENAME>
#include
^
0_0_13813724_4248.cpp:4:10: error: #include expects "FILENAME" or <FILENAME>
#include
^
0_0_13813724_4248.cpp:5:10: error: #include expects "FILENAME" or <FILENAME>
#include
^
0_0_13813724_4248.cpp:13:9: error: 'istream' does not name a type
friend istream& operator (istream &_,Operation &o)
^
0_0_13813724_4248.cpp: In member function 'void Segtree::Build_Tree(int, int)':
0_0_13813724_4248.cpp:34:13: error: 'y1' was not declared in this scope
int mid=x+y1;
^
0_0_13813724_4248.cpp:38:36: error: invalid operands of types 'Segtree*' and 'void' to binary 'operator-'
(ls=new Segtree)-Build_Tree(x,mid);
^
0_0_13813724_4248.cpp:39:38: error: invalid operands of types 'Segtree*' and 'void' to binary 'operator-'
(rs=new Segtree)-Build_Tree(mid+1,y);
^
0_0_13813724_4248.cpp: In member function 'void Segtree::Push_Down(int, int)':
0_0_13813724_4248.cpp:52:13: error: 'y1' was not declared in this scope
int mid=x+y1;
^
0_0_13813724_4248.cpp:53:35: error: invalid operands of types 'Segtree*' and 'void' to binary 'operator-'
ls-Get_Mark(x,mid,times_mark,k,b);
^
0_0_13813724_4248.cpp:54:37: error: invalid operands of types 'Segtree*' and 'void' to binary 'operator-'
rs-Get_Mark(mid+1,y,times_mark,k,b);
^
0_0_13813724_4248.cpp: In member function 'int Segtree::Get_Ans(int, int, int)':
0_0_13813724_4248.cpp:59:13: error: 'y1' was not declared in this scope
int mid=x+y1;
^
0_0_13813724_4248.cpp:63:4: error: expected ')' before 'return'
return ls-Get_Ans(x,mid,pos);
^
0_0_13813724_4248.cpp:65:13: error: invalid conversion from 'Segtree*' to 'int' [-fpermissive]
return rs-Get_Ans(mid+1,y,pos);
^
0_0_13813724_4248.cpp: In member function 'void Segtree::Get_L(int, int)':
0_0_13813724_4248.cpp:69:13: error: 'y1' was not declared in this scope
int mid=x+y1;
^
0_0_13813724_4248.cpp:77:4: error: expected ')' before 'ls'
ls-Get_Mark(x,mid,0,0,L),rs-Get_L(mid+1,y);
^
0_0_13813724_4248.cpp:79:18: error: invalid operands of types 'Segtree*' and 'void' to binary 'operator-'
ls-Get_L(x,mid);
^
0_0_13813724_4248.cpp:80:13: error: invalid conversion from 'Segtree*' to 'long long int' [-fpermissive]
min_num=ls-min_num;
^
0_0_13813724_4248.cpp:81:13: error: invalid conversion from 'Segtree*' to 'long long int' [-fpermissive]
max_num=rs-max_num;
^
0_0_13813724_4248.cpp: In member function 'void Segtree::Get_R(int, int)':
0_0_13813724_4248.cpp:85:13: error: 'y1' was not declared in this scope
int mid=x+y1;
^
0_0_13813724_4248.cpp:92:9: error: 'max_numR' was not declared in this scope
if(ls-max_numR)
^
0_0_13813724_4248.cpp:93:29: error: invalid operands of types 'Segtree*' and 'void' to binary 'operator-'
rs-Get_Mark(mid+1,y,0,0,R),ls-Get_R(x,mid);
^
0_0_13813724_4248.cpp:93:45: error: invalid operands of types 'Segtree*' and 'void' to binary 'operator-'
rs-Get_Mark(mid+1,y,0,0,R),ls-Get_R(x,mid);
^
0_0_13813724_4248.cpp:95:20: error: invalid operands of types 'Segtree*' and 'void' to binary 'operator-'
rs-Get_R(mid+1,y);
^
0_0_13813724_4248.cpp:96:13: error: invalid conversion from 'Segtree*' to 'long long int' [-fpermissive]
min_num=ls-min_num;
^
0_0_13813724_4248.cpp:97:13: error: invalid conversion from 'Segtree*' to 'long long int' [-fpermissive]
max_num=rs-max_num;
^
0_0_13813724_4248.cpp: In function 'int main()':
0_0_13813724_4248.cpp:104:2: error: 'cinnLR' was not declared in this scope
cinnLR;
^
0_0_13813724_4248.cpp:106:3: error: expected ';' before 'cinoperations'
cinoperations[i];
^
0_0_13813724_4248.cpp:106:3: error: 'cinoperations' was not declared in this scope
0_0_13813724_4248.cpp:106:19: error: expected ')' before ';' token
cinoperations[i];
^
0_0_13813724_4248.cpp:107:2: error: 'cinm' was not declared in this scope
cinm;
^
0_0_13813724_4248.cpp:109:3: error: expected ';' before 'scanf'
scanf("%d",&q[i]),a[i]=q[i];
^
0_0_13813724_4248.cpp:109:19: error: 'scanf' was not declared in this scope
scanf("%d",&q[i]),a[i]=q[i];
^
0_0_13813724_4248.cpp:109:30: error: expected ')' before ';' token
scanf("%d",&q[i]),a[i]=q[i];
^
0_0_13813724_4248.cpp:110:16: error: 'sort' was not declared in this scope
sort(a+1,a+m+1);
^
0_0_13813724_4248.cpp:111:21: error: 'Build_Tree' was not declared in this scope
tree-Build_Tree(1,m);
^
0_0_13813724_4248.cpp:113:2: error: expected ';' before '{' token
{
^
0_0_13813724_4248.cpp:113:2: error: expected primary-expression before '{' token
0_0_13813724_4248.cpp:113:2: error: expected ')' before '{' token
0_0_13813724_4248.cpp:116:48: error: 'Get_Mark' was not declared in this scope
case 1:tree-Get_Mark(1,m,1,0,operations[i].x);break;
^
0_0_13813724_4248.cpp:121:11: error: 'min_num' was not declared in this scope
if(tree-min_num
^
0_0_13813724_4248.cpp:122:4: error: expected ')' before 'tree'
tree-Get_L(1,m);
^
0_0_13813724_4248.cpp:123:11: error: 'max_numR' was not declared in this scope
if(tree-max_numR)
^
0_0_13813724_4248.cpp:124:18: error: 'Get_R' was not declared in this scope
tree-Get_R(1,m);
^
0_0_13813724_4248.cpp:127:2: error: expected ';' before '{' token
{
^
0_0_13813724_4248.cpp:127:2: error: expected primary-expression before '{' token
0_0_13813724_4248.cpp:127:2: error: expected ')' before '{' token
0_0_13813724_4248.cpp:128:37: error: 'lower_bound' was not declared in this scope
int pos=lower_bound(a+1,a+m+1,q[i])-a;
^
0_0_13813724_4248.cpp:129:37: error: 'Get_Ans' was not declared in this scope
printf("%d\n",tree-Get_Ans(1,m,pos) );
^
0_0_13813724_4248.cpp:129:39: error: 'printf' was not declared in this scope
printf("%d\n",tree-Get_Ans(1,m,pos) );
^
|