Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Author

anonymous

over 4 years ago

Language

C++

Compiler

gcc 10.1.0

Options
Warnings
Don't Use Boost
C++2a
no pedantic

Author

anonymous

over 4 years ago

$ g++ prog.cc -Wall -Wextra -std=c++2a
prog.cc: In function 'int main()':
prog.cc:33:19: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::vector<MapBorder*> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   33 |     for(int i=0; i!=map.size(); i++)
      |                  ~^~~~~~~~~~~~
prog.cc:35:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<MapBorder*>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   35 |        for(int j=0; j!=map[i].size(); j++)
      |                     ~^~~~~~~~~~~~~~~
#X
Exit Code:
0