Code link :https://codeforces.com/contest/1549/submission/124673267
Please help me I am trying to find it since last night and I am not able till now .
Thanks in advance.
Code link :https://codeforces.com/contest/1549/submission/124673267
Please help me I am trying to find it since last night and I am not able till now .
Thanks in advance.
When you do adj[i].erase(*itr); the iterator gets erased. So try changing the order in which you perform deletion.