I have gleaned that parts of the STL can throw this, I was wondering if anyone had any more information. One of my programs is doing this:
map<string,int> foo;
loop10ktimes {
foo[somestring]=someint;
}
loop10ktimes {
someint=foo[somestring]; //string is known good key for map
}
and its throwing a SIGABRT at me. aside from the above the only things I am using are cin, cout, string, printf, and scanf, so I am pretty sure the problem is with the map. 10000 ints and short strings shouldnt be using up too much memory, right? any pointers would be helpful.
created
last reply
- 1
reply
- 822
views
- 2
users