/in/p3.cpp: In function 'int main(int, char**)':
/in/p3.cpp:31:10: error: unused variable 'verbose' [-Werror=unused-variable]
bool verbose = (argc > 4 && (string(argv[4]) == "v" || string(argv[4]) == "verbose"));
^~~~~~~
cc1plus: all warnings being treated as errors
/in/simulation.cpp: In function 'bool initWorld(world_t&, const string&, const string&, const string&)':
/in/simulation.cpp:170:24: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
for (int i=0; i<world.numSpecies; i++){
~^~~~~~~~~~~~~~~~~
/in/simulation.cpp:174:24: error: suggest parentheses around assignment used as truth value [-Werror=parentheses]
else if (i = world.numSpecies-1){
~~^~~~~~~~~~~~~~~~~~~~
/in/simulation.cpp:184:23: error: suggest parentheses around assignment used as truth value [-Werror=parentheses]
else if (i=4){
~^~
/in/simulation.cpp:190:28: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
if (initial_column >= world.grid.width || initial_row >= world.grid.height || initial_column < 0 || initial_row < 0){
~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~
/in/simulation.cpp:190:63: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
if (initial_column >= world.grid.width || initial_row >= world.grid.height || initial_column < 0 || initial_row < 0){
~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~
/in/simulation.cpp:239:1: error: control reaches end of non-void function [-Werror=return-type]
}
^
cc1plus: all warnings being treated as errors