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 1245. Pictures

C++ Compilation error
Posted by Hatred 12 Feb 2010 16:40
Looks like std::vector::rend() does not return const_reverse_iterator.
I have got CE on the line
for( std::vector< Spot >::const_reverse_iterator it = spots.rbegin(); it != spots.rend(); ++it )
but
for( std::vector< Spot >::/*const_*/reverse_iterator it = spots.rbegin(); it != spots.rend(); ++it )
was ok.