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 1045. Funny Game

Show all messages Hide all messages

std::vector<bool> crashes at 6th test! Practician 26 Jan 2006 14:29
Due to memory requirements I used std::vector<bool> arrays for
storing node edges, but it chashes!
(function std::vector<bool>::operator[](int), to be exact)

Does anybody knows why?

P.S. If I use, f.e., std::bitset<> instead, I get strong AC.
Therefore, timus's std::vector<bool> has error, hasnt it?
I suppose you cool programer if you use STL... By the way,is  STL supported by timus C++ compiler?
Re: std::vector<bool> crashes at 6th test! Practician 27 Jan 2006 20:55
Are you funny? It is just convenient to use it instead of
doing some things yourself.

IMHO, timus must support STL as it is the part of C++
and it does.
STL is a kind of cheat imho (-) Dmitry 'Diman_YES' Kovalioff. Retired 27 Jan 2006 21:01
Using STL is a good style but not a cheat! Vladimir Yakovlev (USU) 28 Jan 2006 16:30