Hello,
I believe there is a nasty bug in SPOJ engine. Please check the details about the problem which I posted in C++ forum.
Problem:viewtopic.php?f=41&t=12058&p=38679#p38679
Unfortunately, I have no idea what to check further, nor I can see any help on the C++ forum, so I posted a "wish" for any debug facility.
Wishlist:viewtopic.php?f=53&t=12059#p38680
Best wishes!
I don't think it's a problem with STL or the compiler. And even if it is, you should report the bug to C++ developers.Anyway, I'm moving this thread to the archive.