prog.cpp: In function 'fstream open_file(const string&)':
prog.cpp:13:26: error: use of deleted function 'fstream::fstream(const fstream&)'
return fstream(file_name);
^
prog.cpp:9:2: note: declared here
fstream(const fstream &) = delete;
^
prog.cpp: In function 'void load_map()':
prog.cpp:18:39: error: use of deleted function 'fstream::fstream(const fstream&)'
fstream file = open_file(file_name);
^
prog.cpp:9:2: note: declared here
fstream(const fstream &) = delete;
^