foo.cc:6: warning: ignoring '#pragma GCC optmize' [-Wunknown-pragmas]
6 | #pragma GCC optmize("2,3,Ofast,inline")
|
foo.cc: In function 'long long int query(long long int, long long int, long long int)':
foo.cc:55:95: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
55 | for(int i=1;i<=n;i++)if(L[v]<=dfn[i]&&dfn[i]<=R[v]&&(anc[x][i]&&anc[i][lca]||anc[y][i]&&anc[i][lca]||anc[i][x]||anc[i][y]))sm1=(sm1+a[i])%mod;
| ~~~~~~~~~^~~~~~~~~~~~~
Found 50 testcases.
[Hydro](https://hydro.ac)提供评测服务