0_0_25043288_28942.cpp:203:2: error: stray '#' in program
}#include<stdio.h>
^
0_0_25043288_28942.cpp:203:3: error: 'include' does not name a type
}#include<stdio.h>
^
0_0_25043288_28942.cpp:210:9: error: redefinition of 'int SP::T'
int T, node;
^
0_0_25043288_28942.cpp:8:9: note: 'int SP::T' previously declared here
int T, node;
^
0_0_25043288_28942.cpp:210:12: error: redefinition of 'int SP::node'
int T, node;
^
0_0_25043288_28942.cpp:8:12: note: 'int SP::node' previously declared here
int T, node;
^
0_0_25043288_28942.cpp:211:12: error: redefinition of 'struct SP::Splay'
struct Splay
^
0_0_25043288_28942.cpp:9:12: error: previous definition of 'struct SP::Splay'
struct Splay
^
0_0_25043288_28942.cpp:221:14: error: invalid type in declaration before ';' token
}sp[MAXD];
^
0_0_25043288_28942.cpp:221:14: error: conflicting declaration 'int SP::sp [200010]'
0_0_25043288_28942.cpp:19:6: note: previous declaration as 'SP::Splay SP::sp [200010]'
}sp[MAXD];
^
0_0_25043288_28942.cpp: In function 'void SP::init()':
0_0_25043288_28942.cpp:222:10: error: redefinition of 'void SP::init()'
void init()
^
0_0_25043288_28942.cpp:20:10: note: 'void SP::init()' previously defined here
void init()
^
0_0_25043288_28942.cpp: At global scope:
0_0_25043288_28942.cpp:229:17: error: redefinition of 'void SP::Splay::update()'
inline void Splay::update()
^
0_0_25043288_28942.cpp:27:17: note: 'void SP::Splay::update()' previously defined here
inline void Splay::update()
^
0_0_25043288_28942.cpp:236:17: error: redefinition of 'void SP::Splay::zig(int)'
inline void Splay::zig(int x)
^
0_0_25043288_28942.cpp:34:17: note: 'void SP::Splay::zig(int)' previously defined here
inline void Splay::zig(int x)
^
0_0_25043288_28942.cpp:246:17: error: redefinition of 'void SP::Splay::zag(int)'
inline void Splay::zag(int x)
^
0_0_25043288_28942.cpp:44:17: note: 'void SP::Splay::zag(int)' previously defined here
inline void Splay::zag(int x)
^
0_0_25043288_28942.cpp:256:10: error: redefinition of 'void SP::Splay::splay(int, int)'
void Splay::splay(int x, int goal)
^
0_0_25043288_28942.cpp:54:10: note: 'void SP::Splay::splay(int, int)' previously defined here
void Splay::splay(int x, int goal)
^
0_0_25043288_28942.cpp: In function 'void SP::newnode(int&)':
0_0_25043288_28942.cpp:280:10: error: redefinition of 'void SP::newnode(int&)'
void newnode(int &cur)
^
0_0_25043288_28942.cpp:78:10: note: 'void SP::newnode(int&)' previously defined here
void newnode(int &cur)
^
0_0_25043288_28942.cpp: In function 'int SP::insert(int&, int, int)':
0_0_25043288_28942.cpp:285:9: error: redefinition of 'int SP::insert(int&, int, int)'
int insert(int &cur, int fa, int key)
^
0_0_25043288_28942.cpp:83:9: note: 'int SP::insert(int&, int, int)' previously defined here
int insert(int &cur, int fa, int key)
^
0_0_25043288_28942.cpp: In function 'int SP::find(int)':
0_0_25043288_28942.cpp:291:9: error: redefinition of 'int SP::find(int)'
int find(int k)
^
0_0_25043288_28942.cpp:89:9: note: 'int SP::find(int)' previously defined here
int find(int k)
^
0_0_25043288_28942.cpp: At global scope:
0_0_25043288_28942.cpp:305:5: error: redefinition of 'int N'
int N, D, min[4 * MAXD], loc[MAXD][2];
^
0_0_25043288_28942.cpp:103:5: note: 'int N' previously declared here
int N, D, min[4 * MAXD], loc[MAXD][2];
^
0_0_25043288_28942.cpp:305:8: error: redefinition of 'int D'
int N, D, min[4 * MAXD], loc[MAXD][2];
^
0_0_25043288_28942.cpp:103:8: note: 'int D' previously declared here
int N, D, min[4 * MAXD], loc[MAXD][2];
^
0_0_25043288_28942.cpp:305:23: error: redefinition of 'int min [800040]'
int N, D, min[4 * MAXD], loc[MAXD][2];
^
0_0_25043288_28942.cpp:103:11: note: 'int min [800040]' previously declared here
int N, D, min[4 * MAXD], loc[MAXD][2];
^
0_0_25043288_28942.cpp:305:37: error: redefinition of 'int loc [200010][2]'
int N, D, min[4 * MAXD], loc[MAXD][2];
^
0_0_25043288_28942.cpp:103:26: note: 'int loc [200010][2]' previously declared here
int N, D, min[4 * MAXD], loc[MAXD][2];
^
0_0_25043288_28942.cpp: In function 'void update(int)':
0_0_25043288_28942.cpp:306:6: error: redefinition of 'void update(int)'
void update(int i)
^
0_0_25043288_28942.cpp:104:6: note: 'void update(int)' previously defined here
void update(int i)
^
0_0_25043288_28942.cpp: In function 'void init()':
0_0_25043288_28942.cpp:310:6: error: redefinition of 'void init()'
void init()
^
0_0_25043288_28942.cpp:108:6: note: 'void init()' previously defined here
void init()
^
0_0_25043288_28942.cpp: In function 'int find()':
0_0_25043288_28942.cpp:317:5: error: redefinition of 'int find()'
int find()
^
0_0_25043288_28942.cpp:115:5: note: 'int find()' previously defined here
int find()
^
0_0_25043288_28942.cpp: In function 'void insert(int)':
0_0_25043288_28942.cpp:327:6: error: redefinition of 'void insert(int)'
void insert(int p)
^
0_0_25043288_28942.cpp:125:6: note: 'void insert(int)' previously defined here
void insert(int p)
^
0_0_25043288_28942.cpp: In function 'void remove(int)':
0_0_25043288_28942.cpp:364:6: error: redefinition of 'void remove(int)'
void remove(int i)
^
0_0_25043288_28942.cpp:162:6: note: 'void remove(int)' previously defined here
void remove(int i)
^
0_0_25043288_28942.cpp: In function 'void query(int)':
0_0_25043288_28942.cpp:377:6: error: redefinition of 'void query(int)'
void query(int i)
^
0_0_25043288_28942.cpp:175:6: note: 'void query(int)' previously defined here
void query(int i)
^
0_0_25043288_28942.cpp: In function 'void solve()':
0_0_25043288_28942.cpp:383:6: error: redefinition of 'void solve()'
void solve()
^
0_0_25043288_28942.cpp:181:6: note: 'void solve()' previously defined here
void solve()
^
0_0_25043288_28942.cpp: In function 'int main()':
0_0_25043288_28942.cpp:395:5: error: redefinition of 'int main()'
int main()
^
0_0_25043288_28942.cpp:193:5: note: 'int main()' previously defined here
int main()
^
|