/in/p3.cpp: In function 'int main(int, char**)':
/in/p3.cpp:60:22: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
for(i = 0; i < MAXPROGRAM; i++) spins[i] = "";
~~^~~~~~~~~~~~
/in/p3.cpp:82:21: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
if(spinsnum > MAXPROGRAM)
~~~~~~~~~^~~~~~~~~~~~
/in/p3.cpp:90:18: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
if(splinenum > MAXSPECIES)
~~~~~~~~~~^~~~~~~~~~~~
/in/p3.cpp:102:15: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
if(height > MAXHEIGHT || height <= 0)
~~~~~~~^~~~~~~~~~~
/in/p3.cpp:110:14: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
if(width > MAXWIDTH || width <= 0)
~~~~~~^~~~~~~~~~
/in/p3.cpp:173:22: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
for(j = 0; j < MAXPROGRAM; j++) spins[j] = "";
~~^~~~~~~~~~~~
/in/p3.cpp:198:17: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
if(wlinenum > MAXCREATURES)
~~~~~~~~~^~~~~~~~~~~~~~
/in/p3.cpp:242:63: error: narrowing conversion of 'height' from 'int' to 'unsigned int' inside { } [-Werror=narrowing]
grid_t grid = {height, width, squares[MAXHEIGHT][MAXWIDTH]};
^
/in/p3.cpp:242:63: error: narrowing conversion of 'width' from 'int' to 'unsigned int' inside { } [-Werror=narrowing]
/in/p3.cpp:243:87: error: could not convert 'numCreatures' from 'unsigned int' to 'std::__cxx11::string {aka std::__cxx11::basic_string<char>}'
world_t world = {numSpecies, sp[MAXSPECIES], numCreatures, crt[MAXCREATURES], grid};
^
/in/p3.cpp:243:87: error: cannot convert 'creature_t' to 'unsigned int' in initialization
/in/p3.cpp:243:87: error: cannot convert 'grid_t' to 'opcode_t' in initialization
/in/p3.cpp:203:10: error: unused variable 'Error13judge' [-Werror=unused-variable]
bool Error13judge = false;
^~~~~~~~~~~~
cc1plus: all warnings being treated as errors