0_0_13804940_20801.cpp:1:9: error: #include expects "FILENAME" or <FILENAME>
#include
^
0_0_13804940_20801.cpp:2:9: error: #include expects "FILENAME" or <FILENAME>
#include
^
0_0_13804940_20801.cpp:3:9: error: #include expects "FILENAME" or <FILENAME>
#include
^
0_0_13804940_20801.cpp:4:9: error: #include expects "FILENAME" or <FILENAME>
#include
^
0_0_13804940_20801.cpp: In member function 'void abcd::Push_Up()':
0_0_13804940_20801.cpp:36:8: error: no match for 'operator-' (operand types are 'abcd*' and 'line')
sum=ls-sum+num+rs-sum;
^
0_0_13804940_20801.cpp: In function 'void Zig(abcd*)':
0_0_13804940_20801.cpp:40:12: error: 'fa' was not declared in this scope
abcd *y=x-fa;
^
0_0_13804940_20801.cpp:41:4: error: 'ls' was not declared in this scope
y-ls=x-rs;
^
0_0_13804940_20801.cpp:41:9: error: 'rs' was not declared in this scope
y-ls=x-rs;
^
0_0_13804940_20801.cpp:50:12: error: 'Push_Up' was not declared in this scope
y-Push_Up();
^
0_0_13804940_20801.cpp: In function 'void Zag(abcd*)':
0_0_13804940_20801.cpp:54:12: error: 'fa' was not declared in this scope
abcd *y=x-fa;
^
0_0_13804940_20801.cpp:55:4: error: 'rs' was not declared in this scope
y-rs=x-ls;
^
0_0_13804940_20801.cpp:55:9: error: 'ls' was not declared in this scope
y-rs=x-ls;
^
0_0_13804940_20801.cpp:64:12: error: 'Push_Up' was not declared in this scope
y-Push_Up();
^
0_0_13804940_20801.cpp: In function 'void Splay(abcd*)':
0_0_13804940_20801.cpp:68:10: error: 'fa' was not declared in this scope
while(x-fa-ls==x||x-fa-rs==x)
^
0_0_13804940_20801.cpp:68:13: error: 'ls' was not declared in this scope
while(x-fa-ls==x||x-fa-rs==x)
^
0_0_13804940_20801.cpp:68:25: error: 'rs' was not declared in this scope
while(x-fa-ls==x||x-fa-rs==x)
^
0_0_13804940_20801.cpp:73:10: error: 'z' was not declared in this scope
if(y==z-ls)
^
0_0_13804940_20801.cpp:79:10: error: 'z' was not declared in this scope
if(y==z-rs)
^
0_0_13804940_20801.cpp:84:12: error: 'Push_Up' was not declared in this scope
x-Push_Up();
^
0_0_13804940_20801.cpp: In function 'void Access(abcd*)':
0_0_13804940_20801.cpp:92:5: error: 'rs' was not declared in this scope
x-rs=y;
^
0_0_13804940_20801.cpp:93:13: error: 'Push_Up' was not declared in this scope
x-Push_Up();
^
0_0_13804940_20801.cpp:95:7: error: 'fa' was not declared in this scope
x=x-fa;
^
0_0_13804940_20801.cpp: In function 'abcd* Find_Root(abcd*)':
0_0_13804940_20801.cpp:103:12: error: 'ls' was not declared in this scope
for(y=x;y-ls!=null;y=y-ls);
^
0_0_13804940_20801.cpp: In function 'int pairEXGCD(int, int)':
0_0_13804940_20801.cpp:109:29: error: 'make_pair' was not declared in this scope
if(!y) return make_pair(1,0);
^
0_0_13804940_20801.cpp:110:2: error: 'pairtemp' was not declared in this scope
pairtemp=EXGCD(y,x%y);
^
0_0_13804940_20801.cpp:110:22: error: 'EXGCD' was not declared in this scope
pairtemp=EXGCD(y,x%y);
^
0_0_13804940_20801.cpp:111:19: error: 'temp' was not declared in this scope
return make_pair(temp.second,temp.first-x/y*temp.second);
^
0_0_13804940_20801.cpp:111:57: error: 'make_pair' was not declared in this scope
return make_pair(temp.second,temp.first-x/y*temp.second);
^
0_0_13804940_20801.cpp: In function 'int Inverse(int)':
0_0_13804940_20801.cpp:115:26: error: 'EXGCD' was not declared in this scope
int temp=EXGCD((x+p)%p,p).first;
^
0_0_13804940_20801.cpp: In function 'void DFS(int)':
0_0_13804940_20801.cpp:123:11: error: 'sfa' was not declared in this scope
tree[x]-sfa=tree[fa[x]];
^
0_0_13804940_20801.cpp:126:10: error: invalid operands of types 'abcd*' and 'int [30300]' to binary 'operator-'
tree[x]-fa=tree[fa[x]];
^
0_0_13804940_20801.cpp: In function 'int Query(abcd*)':
0_0_13804940_20801.cpp:133:14: error: 'sfa' was not declared in this scope
Access(root-sfa);
^
0_0_13804940_20801.cpp:135:17: error: 'sum' was not declared in this scope
int k=root-sfa-sum.k;
^
0_0_13804940_20801.cpp: In function 'void Modify(abcd*, int, abcd*, int)':
0_0_13804940_20801.cpp:152:4: error: 'num' was not declared in this scope
x-num.k=k;
^
0_0_13804940_20801.cpp:154:12: error: 'Push_Up' was not declared in this scope
x-Push_Up();
^
0_0_13804940_20801.cpp:156:5: error: 'sfa' was not declared in this scope
x-sfa=null;
^
0_0_13804940_20801.cpp:161:5: error: 'ls' was not declared in this scope
x-ls-fa=null;
^
0_0_13804940_20801.cpp:164:21: error: 'sfa' was not declared in this scope
if(Find_Root(root-sfa)!=root)
^
0_0_13804940_20801.cpp:168:9: error: invalid operands of types 'abcd*' and 'int [30300]' to binary 'operator-'
root-fa=root-sfa;
^
0_0_13804940_20801.cpp:175:5: error: 'sfa' was not declared in this scope
x-sfa=f;
^
0_0_13804940_20801.cpp:177:5: error: invalid operands of types 'abcd*' and 'int [30300]' to binary 'operator-'
x-fa=f;
^
0_0_13804940_20801.cpp: In function 'int main()':
0_0_13804940_20801.cpp:183:2: error: 'cinn' was not declared in this scope
cinn;
^
0_0_13804940_20801.cpp:185:2: error: expected ';' before '{' token
{
^
0_0_13804940_20801.cpp:185:2: error: expected primary-expression before '{' token
0_0_13804940_20801.cpp:185:2: error: expected ')' before '{' token
0_0_13804940_20801.cpp:186:26: error: 'scanf' was not declared in this scope
scanf("%d%d%d",&k,&f,&b);
^
0_0_13804940_20801.cpp:191:3: error: expected ';' before 'if'
if(!v[i])
^
0_0_13804940_20801.cpp:191:3: error: expected primary-expression before 'if'
0_0_13804940_20801.cpp:191:3: error: expected ')' before 'if'
0_0_13804940_20801.cpp:193:2: error: 'cinm' was not declared in this scope
cinm;
^
0_0_13804940_20801.cpp:195:2: error: expected ';' before '{' token
{
^
0_0_13804940_20801.cpp:195:2: error: expected primary-expression before '{' token
0_0_13804940_20801.cpp:195:2: error: expected ')' before '{' token
0_0_13804940_20801.cpp:196:15: error: 'scanf' was not declared in this scope
scanf("%s",o);
^
0_0_13804940_20801.cpp:198:49: error: 'printf' was not declared in this scope
scanf("%d",&x),printf("%d\n", Query(tree[x]) );
^
|