ENG  RUSTimus Online Judge
Online Judge
Problems
Authors
Online contests
About Online Judge
Frequently asked questions
Site news
Webboard
Links
Problem set
Submit solution
Judge status
Guide
Register
Update your info
Authors ranklist
Current contest
Scheduled contests
Past contests
Rules
back to board

Discussion of Problem 1155. Troubleduons

strange crash
Posted by ProgBeat 25 Jun 2007 00:30
vector<pair<int,int> > add,rem;
....

my program crashed(acess v..) many times, but it got ac after i have commented this code! i suppose there is no data that can make this code crash...maybe there are some troubles in Intel C++ compiler ?

for(int i=int(add.size())-1;i>=0;--i)
____for(int j=int(rem.size())-1;j>=0;--j)
________if(add[i]==rem[j])
____________add.erase(add.begin()+i),
____________rem.erase(rem.begin()+j);


Edited by author 25.06.2007 16:34