Probable Mistakes • Should it really be a map or a multimap? • less than operator should impose a total ordering for the map to work. • Resolve all the compiler warnings. Pay attention to type cast conversions in STL size(). • A two dimensional array cannot be initialized by fill(). • The predicate passed to the set template must have a default constructor. • EP S ≥ 1e − 14 • Be careful about the range of arrays. [] is your enemy!
4
Chapter 2
Skeleton // S k e l e t o n . cpp #include #include #include #include #include #include #include #include #include #include #include #include #include #include