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

std::vector<bool> crashes at 6th test!
Posted by 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?
Re: std::vector<bool> crashes at 6th test!
Posted by Sid 26 Jan 2006 21:28
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!
Posted by 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 (-)
Posted by Dmitry 'Diman_YES' Kovalioff 27 Jan 2006 21:01
Using STL is a good style but not a cheat!
Posted by Vladimir Yakovlev (USU) 28 Jan 2006 16:30