Borderou de evaluare (job #3234806)

Utilizator MirceaDonciuLicentaLicenta Mircea Donciu MirceaDonciuLicenta Data 11 iunie 2024 19:33:44
Problema Aiacusarpe Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In member function 'bool Position::operator<(const Position&) const': main.cpp:11:16: error: 'tie' was not declared in this scope 11 | return tie(x, y) < tie(other.x, other.y); | ^~~ main.cpp:5:1: note: 'std::tie' is defined in header '<tuple>'; did you forget to '#include <tuple>'? 4 | #include <set> +++ |+#include <tuple> 5 | main.cpp: In function 'int main()': main.cpp:25:5: error: 'map' was not declared in this scope 25 | map<char, int> moveMap = {{'N', 0}, {'E', 1}, {'S', 2}, {'V', 3}}; | ^~~ main.cpp:5:1: note: 'std::map' is defined in header '<map>'; did you forget to '#include <map>'? 4 | #include <set> +++ |+#include <map> 5 | main.cpp:25:9: error: expected primary-expression before 'char' 25 | map<char, int> moveMap = {{'N', 0}, {'E', 1}, {'S', 2}, {'V', 3}}; | ^~~~ main.cpp:36:25: error: 'moveMap' was not declared in this scope; did you mean 'moves'? 36 | int direction = moveMap[moves[i]]; | ^~~~~~~ | moves main.cpp:58:43: warning: comparison of integer expressions of different signedness: 'std::vector<Position>::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare] 58 | if (i < T - 1 && snakeBody.size() > score) { | ~~~~~~~~~~~~~~~~~^~~~~~~ Non zero exit status: 1

Ceva nu functioneaza?