Compile
Makefile
cgroup
cli.cpp
cli.hpp
map.cpp
map.hpp
output
project1.cpp
Makefile
make.sh
cp: cannot create regular file '/in/Makefile': Permission denied
make: Entering directory '/in'
g++ -std=c++17 -Wconversion -Wall -Werror -Wextra -pedantic -O3 -DNDEBUG -c project1.cpp
g++ -std=c++17 -Wconversion -Wall -Werror -Wextra -pedantic -O3 -DNDEBUG -c map.cpp
map.cpp: In function 'char door_to_button(char)':
map.cpp:87:14: error: conversion to 'char' from 'int' may alter its value [-Werror=conversion]
return c + 32;
~~^~~~
map.cpp: In function 'char button_to_id(char)':
map.cpp:104:14: error: conversion to 'char' from 'int' may alter its value [-Werror=conversion]
return c - 96;
~~^~~~
map.cpp: In function 'char id_to_button(char)':
map.cpp:111:14: error: conversion to 'char' from 'int' may alter its value [-Werror=conversion]
return c + 96;
~~^~~~
map.cpp: In function 'void output_map(const state&, const backtrack&, const map&, discovered&, unsigned int, unsigned int, unsigned int)':
map.cpp:376:25: error: conversion to 'char' from 'int' may alter its value [-Werror=conversion]
for (char l = layer + 1; (unsigned int)l <= num_colors; ++l) {
~~~~~~^~~
cc1plus: all warnings being treated as errors
Makefile:62: recipe for target 'map.o' failed
make: *** [map.o] Error 1
make: Leaving directory '/in'