/in/foo.cc: In function 'int newnode(int)':
/in/foo.cc:18:9: warning: operation on 'tot' may be undefined [-Wsequence-point]
val[++tot] = Hash[tot] = v * Pow[1]; size[tot] = 1; pri[tot] = rand();
^~~~~
/in/foo.cc: In function 'int main()':
/in/foo.cc:89:43: warning: iteration 100003 invokes undefined behavior [-Waggressive-loop-optimizations]
for(int i = 2; i <= maxn; ++i) Pow[i] = Pow[i - 1] * base;
~~~~~~~^~~~~~~~~~~~~~~~~~~
/in/foo.cc:89:22: note: within this loop
for(int i = 2; i <= maxn; ++i) Pow[i] = Pow[i - 1] * base;
~~^~~~~~~