klasika.cpp: In function 'void add(long long int)':
klasika.cpp:29:20: warning: logical not is only applied to the left hand side of comparison [-Wlogical-not-parentheses]
29 | if(!t[v].to[c] != -1){
| ^~
klasika.cpp:29:8: note: add parentheses around left hand side expression to silence this warning
29 | if(!t[v].to[c] != -1){
| ^~~~~~~~~~~
| ( )
klasika.cpp:29:20: warning: comparison of constant '-1' with boolean expression is always true [-Wbool-compare]
29 | if(!t[v].to[c] != -1){
| ~~~~~~~~~~~~^~~~~
klasika.cpp: In function 'long long int solve(long long int, long long int, long long int, long long int)':
klasika.cpp:42:29: warning: suggest parentheses around comparison in operand of '&' [-Wparentheses]
42 | int mask = (k & (1 << tp) > 0 ? 0 : 1);
| ~~~~~~~~~~^~~
klasika.cpp: In function 'int32_t main()':
klasika.cpp:76:22: warning: unused variable 'add' [-Wunused-variable]
76 | int ans = 0, add = valxor[a];
| ^~~