i was trying to solve the edu segtree step 1 C problem but i fail on testcase 21 https://codeforces.me/edu/course/2/lesson/4/1/practice/contest/273169/submission/245570564 i am confident my code is working i still don't know what is the problem can anyone help please.
Link does not work
You know what else doesn’t work?
Hint: my code
Your phone ?
Why are you both always together?
auto edge = make_pair(nonrice,Toinfinity);
auto WHAT???
course you are edging each other
Try this: