Posts Tagged ‘C++’

Long Time No C

For quite some time I have been working on a simulator which we (me with the other awesome folks from http://robotix.in) would use to evaluate the submissions for our XAnts problem statement. I initially implemented the entire thing in pure Java (I know … What was I thinking?) but in the past few days have [...]

Read the rest of this entry »

A C++ STL Error Message

Here’s an interesting error I got while compiling C++ code during a TopCoder SRM.
LongStraightRoad.cc:43: error: no match for ‘operator==’ in ‘dist. std::map::find [with _Key = std::basic_string, _Tp = double, _Compare = std::less, _Alloc = std::allocator](((const std::basic_string&)((const std::basic_string*)(& dest)))) == std::map::end [with _Key = std::basic_string, _Tp = double, _Compare = std::less, _Alloc = std::allocator]
PS: As far [...]

Read the rest of this entry »