Borderou de evaluare (job #3167626)

Utilizator annna7Pecheanu Anna annna7 Data 10 noiembrie 2023 22:16:05
Problema Banuti Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'int dijkstra(int, std::vector<int>&)': main.cpp:15:30: error: 'INT_MAX' was not declared in this scope 15 | vector<int> distances(N, INT_MAX); | ^~~~~~~ main.cpp:7:1: note: 'INT_MAX' is defined in header '<climits>'; did you forget to '#include <climits>'? 6 | #include <unordered_set> +++ |+#include <climits> 7 | main.cpp: In function 'int main()': main.cpp:59:22: error: 'INT_MAX' was not declared in this scope 59 | int x, minimum = INT_MAX; | ^~~~~~~ main.cpp:59:22: note: 'INT_MAX' is defined in header '<climits>'; did you forget to '#include <climits>'? main.cpp:79:5: error: 'unordered_map' was not declared in this scope 79 | unordered_map<int, int> bank; | ^~~~~~~~~~~~~ main.cpp:7:1: note: 'std::unordered_map' is defined in header '<unordered_map>'; did you forget to '#include <unordered_map>'? 6 | #include <unordered_set> +++ |+#include <unordered_map> 7 | main.cpp:79:19: error: expected primary-expression before 'int' 79 | unordered_map<int, int> bank; | ^~~ main.cpp:81:13: error: 'bank' was not declared in this scope 81 | if (bank.find(v[i] % minimum) == bank.end()) { | ^~~~ main.cpp:89:21: error: 'bank' was not declared in this scope 89 | for (auto &el : bank) { | ^~~~ Non zero exit status: 1

Ceva nu functioneaza?