0_0_25661521_9096.cpp: In member function 'long long int treap::find(long long int, long long int)':
0_0_25661521_9096.cpp:129:19: error: 'struct trnode' has no member named 'lch'
if (p==tr[tr[x].lch].sz+1) return x;
^
0_0_25661521_9096.cpp:130:18: error: 'struct trnode' has no member named 'lch'
if (p>tr[tr[x].lch].sz+1) return find(p-tr[tr[x].lch].sz-1,tr[x].rch);
^
0_0_25661521_9096.cpp:130:52: error: 'struct trnode' has no member named 'lch'
if (p>tr[tr[x].lch].sz+1) return find(p-tr[tr[x].lch].sz-1,tr[x].rch);
^
0_0_25661521_9096.cpp:130:68: error: 'struct trnode' has no member named 'rch'
if (p>tr[tr[x].lch].sz+1) return find(p-tr[tr[x].lch].sz-1,tr[x].rch);
^
0_0_25661521_9096.cpp:131:29: error: 'struct trnode' has no member named 'lch'
else return find(p,tr[x].lch);
^
0_0_25661521_9096.cpp: In function 'int main()':
0_0_25661521_9096.cpp:142:25: error: cannot convert 'treap' to 'void*' for argument '1' to 'void* memset(void*, int, size_t)'
memset(tr,0,sizeof(tr));
^
0_0_25661521_9096.cpp:147:3: error: expected '}' at end of input
{
^
0_0_25661521_9096.cpp:147:3: error: expected '}' at end of input
0_0_25661521_9096.cpp:147:3: error: expected '}' at end of input
|