/in/simulation.cpp: In function 'bool readWorld(world_t&, const string&)':
/in/simulation.cpp:165:28: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
if (row < 0 || row >= world.grid.height ||
~~~~^~~~~~~~~~~~~~~~~~~~
/in/simulation.cpp:166:34: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
column < 0 || column >= world.grid.width) {
~~~~~~~^~~~~~~~~~~~~~~~~~~
/in/simulation.cpp: In function 'bool ifWall(const creature_t&, const grid_t&)':
/in/simulation.cpp:339:62: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
|| adjacentPoint(creature.location,creature.direction).r >= grid.height
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~
/in/simulation.cpp:341:62: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
|| adjacentPoint(creature.location,creature.direction).c >= grid.width;
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~
/in/simulation.cpp: In function 'void printGrid(const grid_t&)':
/in/simulation.cpp:384:23: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
for (int i = 0; i < grid.height; i++) {
~~^~~~~~~~~~~~~
/in/simulation.cpp:385:27: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
for (int j = 0; j < grid.width; j++) {
~~^~~~~~~~~~~~
/in/simulation.cpp: In function 'void emptyWorld(world_t&)':
/in/simulation.cpp:399:23: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
for (int i = 0; i < MAXSPECIES; i++) {
~~^~~~~~~~~~~~
/in/simulation.cpp:403:23: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
for (int i = 0; i < MAXCREATURES; i++) {
~~^~~~~~~~~~~~~~
/in/simulation.cpp: In function 'void emptySpecies(species_t&)':
/in/simulation.cpp:412:23: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
for (int i = 0; i < MAXPROGRAM; i++) {
~~^~~~~~~~~~~~
/in/simulation.cpp: In function 'void emptyGrid(grid_t&)':
/in/simulation.cpp:429:23: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
for (int i = 0; i < MAXHEIGHT; i++) {
~~^~~~~~~~~~~
/in/simulation.cpp:430:27: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
for (int j = 0; j < MAXWIDTH; j++) {
~~^~~~~~~~~~
cc1plus: all warnings being treated as errors