Codeforces will be possibly unavailable in the period between Sep. 19, 19:00 (UTC) and Sep. 19, 21:00 (UTC) because of maintenance. ×

### Garvit_2013's blog

By Garvit_2013, history, 7 weeks ago,

Please help me I am trying to find it since last night and I am not able till now .

• +1

 » 7 weeks ago, # |   0 ur code is kinda messy for me idk why
•  » » 7 weeks ago, # ^ |   0 Is Process function is messy?
 » 7 weeks ago, # | ← Rev. 3 →   0 Use vector> adj(n+1)
•  » » 7 weeks ago, # ^ |   0 https://codeforces.com/contest/1549/submission/124678638I have changed but nothing happened.
 » 7 weeks ago, # |   0 When you do adj[i].erase(*itr); the iterator gets erased. So try changing the order in which you perform deletion. adj[*itr].erase(i); adj[i].erase(*itr); 
•  » » 7 weeks ago, # ^ |   0 I have change like this :int l=(*itr);adj[i].erase(l);adj[l].erase(i); but it is again runtime error.
•  » » 7 weeks ago, # ^ |   0 Thanks but I also change following:set s;s=adj[i]; if(i s; s=adj[i]; for(itr=s.begin();itr!=s.end();itr++) { int l=(*itr); adj[i].erase(l); adj[l].erase(i); } c++; flag=true; }