cave.cpp: In function 'void exploreCave(int)':
cave.cpp:12:104: error: found ':' in nested-name-specifier, expected '::'
12 | for(int m,v[n];l<r;)m=(l+r)>>1,v[n],fn(s,ok,n,l,m,v),k=tryCombination(v),f?(k^i?r=m:l=m+1):(k^i:l=m+1:r=m);
| ^
| ::
cave.cpp:12:103: error: 'i' is not a class, namespace, or enumeration
12 | for(int m,v[n];l<r;)m=(l+r)>>1,v[n],fn(s,ok,n,l,m,v),k=tryCombination(v),f?(k^i?r=m:l=m+1):(k^i:l=m+1:r=m);
| ^
cave.cpp:12:110: error: expected ')' before ':' token
12 | for(int m,v[n];l<r;)m=(l+r)>>1,v[n],fn(s,ok,n,l,m,v),k=tryCombination(v),f?(k^i?r=m:l=m+1):(k^i:l=m+1:r=m);
| ~ ^
| )