Borderou de evaluare (job #3190294)

Utilizator AnastasiaStefanescuAnastasia Stefanescu AnastasiaStefanescu Data 7 ianuarie 2024 14:46:39
Problema Negot Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp:19:8: error: 'unordered_map' was not declared in this scope 19 | vector<unordered_map<int, int>> capacitate; | ^~~~~~~~~~~~~ main.cpp:9:1: note: 'std::unordered_map' is defined in header '<unordered_map>'; did you forget to '#include <unordered_map>'? 8 | #include <map> +++ |+#include <unordered_map> 9 | using namespace std; main.cpp:19:30: error: template argument 1 is invalid 19 | vector<unordered_map<int, int>> capacitate; | ^~ main.cpp:19:30: error: template argument 2 is invalid main.cpp:20:8: error: 'unordered_map' was not declared in this scope 20 | vector<unordered_map<int, int>> flux; | ^~~~~~~~~~~~~ main.cpp:20:8: note: 'std::unordered_map' is defined in header '<unordered_map>'; did you forget to '#include <unordered_map>'? main.cpp:20:30: error: template argument 1 is invalid 20 | vector<unordered_map<int, int>> flux; | ^~ main.cpp:20:30: error: template argument 2 is invalid main.cpp: In function 'int exista_drum_crestere()': main.cpp:47:26: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 47 | for (int i = 0; i< graf[nod].size(); i++) | ~^~~~~~~~~~~~~~~~~~ main.cpp:51:42: error: invalid types 'int[int]' for array subscript 51 | if (viz[nod2] == 0 && flux[nod][nod2] < capacitate[nod][nod2]) | ^ main.cpp:51:66: error: invalid types 'int[int]' for array subscript 51 | if (viz[nod2] == 0 && flux[nod][nod2] < capacitate[nod][nod2]) | ^ main.cpp:41:9: warning: unused variable 'gasit' [-Wunused-variable] 41 | int gasit = 0; | ^~~~~ main.cpp: In function 'void pt_fiec_nod(int)': main.cpp:72:26: error: invalid types 'int[int]' for array subscript 72 | if(capacitate[prev][nod] - flux[prev][nod]< min_drum) | ^ main.cpp:72:44: error: invalid types 'int[int]' for array subscript 72 | if(capacitate[prev][nod] - flux[prev][nod]< min_drum) | ^ main.cpp:73:38: error: invalid types 'int[int]' for array subscript 73 | min_drum = capacitate[prev][nod] - flux[prev][nod]; | ^ main.cpp:73:56: error: invalid types 'int[int]' for array subscript 73 | min_drum = capacitate[prev][nod] - flux[prev][nod]; | ^ main.cpp:81:17: error: invalid types 'int[int]' for array subscript 81 | flux[nod][prev] -= min_drum; | ^ main.cpp:82:17: error: invalid types 'int[int]' for array subscript 82 | flux[prev][nod] += min_drum; Non zero exit status: 1

Ceva nu functioneaza?