Guest User

board.cpp errors - CORRECTED - scrabble

a guest
May 11th, 2010
273
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 2.01 KB | None | 0 0
  1. 1>.\Board.cpp(42): error: expected a ")"
  2. 1>      for (temp.y = 'A'; temp.y < (65 + TOTAL_COLUMNS); ++temp.y)
  3. 1>                                        ^
  4. 1>
  5. 1>.\Board.cpp(42): error: expected a ";"
  6. 1>      for (temp.y = 'A'; temp.y < (65 + TOTAL_COLUMNS); ++temp.y)
  7. 1>                                                                ^
  8. 1>
  9. 1>.\Board.cpp(50): warning #12: parsing restarts here after previous syntax error
  10. 1>  }
  11. 1>  ^
  12. 1>
  13. 1>c:\Program Files\Microsoft Visual Studio 9.0\VC\include\functional(143): error: no operator "<" matches these operands
  14. 1>            operand types are: const Pos < const Pos
  15. 1>          return (_Left < _Right);
  16. 1>                        ^
  17. 1>          detected during:
  18. 1>            instantiation of "bool std::less<_Ty>::operator()(const _Ty &, const _Ty &) const [with _Ty=Pos]" at line 313 of "c:\Program Files\Microsoft Visual Studio 9.0\VC\include\xutility"
  19. 1>            instantiation of "bool __cdecl std::_Debug_lt_pred(_Pr, const _Ty1 &, const _Ty2 &, const __wchar_t *, unsigned int) [with _Pr=std::less<Pos>, _Ty1=Pos, _Ty2=Pos]" at line 1268 of "c:\Program Files\Microsoft Visual Studio 9.0\VC\include\xtree"
  20. 1>            instantiation of "std::_Tree_val<_Traits>::_Nodeptr std::_Tree<_Traits>::_Lbound(const _Traits::key_type &) const [with _Traits=std::_Tmap_traits<Pos, Cell, std::less<Pos>, std::allocator<std::pair<const Pos, Cell>>, false>]" at line 1004 of "c:\Program Files\Microsoft Visual Studio 9.0\VC\include\xtree"
  21. 1>            instantiation of "std::_Tree<_Traits>::iterator std::_Tree<_Traits>::lower_bound(const _Traits::key_type &) [with _Traits=std::_Tmap_traits<Pos, Cell, std::less<Pos>, std::allocator<std::pair<const Pos, Cell>>, false>]" at line 169 of "c:\Program Files\Microsoft Visual Studio 9.0\VC\include\map"
  22. 1>            instantiation of "_Ty &std::map<_Kty, _Ty, _Pr, _Alloc>::operator[](const _Kty &) [with _Kty=Pos, _Ty=Cell, _Pr=std::less<Pos>, _Alloc=std::allocator<std::pair<const Pos, Cell>>]" at line 21 of ".\Board.cpp"
  23. 1>
  24. 1>compilation aborted for .\Board.cpp (code 2)
Advertisement
Add Comment
Please, Sign In to add comment