Problem snacks
User ca
Submission Time 2026-02-06 18:58:49
Score 0
Max Time N/A
Max Memory N/A

Compile Error

snacks.cpp:5:3: error: invalid preprocessing directive #--
5 | # -------- Treap Node --------
| ^~
snacks.cpp:25:3: error: invalid preprocessing directive #split
25 | # split(t, key): returns (<= key, > key)
| ^~~~~
snacks.cpp:52:3: error: invalid preprocessing directive #--
52 | # -------- fast deterministic RNG for priorities --------
| ^~
snacks.cpp:78:3: error: invalid preprocessing directive #--
78 | # -------- main --------
| ^~
snacks.cpp:102:37: error: stray ‘#’ in program
102 | root = merge(B, C) # discard M completely
| ^
snacks.cpp:1:1: error: ‘import’ does not name a type
1 | import sys
| ^~~~~~
snacks.cpp:81:15: error: ‘q’ does not name a type
81 | n = next(it); q = next(it)
| ^
snacks.cpp:94:19: error: ‘r’ does not name a type
94 | l = next(it); r = next(it)