Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <cstdlib>
- #include <time.h>
- #define mp make_pair
- using namespace std;
- typedef long long ll;
- typedef unsigned long long ull;
- typedef long double ld;
- class Treap
- {
- public:
- ll x, y, s;
- Treap *L, *R;
- Treap(ll x1)
- {
- x = x1;
- y = rand();
- L = 0;
- R = L;
- s = 1;
- }
- };
- int main()
- {
- srand(time(NULL));
- Treap *t = 0;
- Treap(3);
- cout << t->print() << endl;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement