Borderou de evaluare (job #3268051)

Utilizator catalinmarincatalinmarin catalinmarin Data 13 ianuarie 2025 16:17:07
Problema Piese3 Status done
Runda Arhiva ICPC Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'void solve()': main.cpp:36:5: error: 'unordered_map' was not declared in this scope 36 | unordered_map<unsigned short, vector<unsigned short>> coduri; | ^~~~~~~~~~~~~ main.cpp:5:1: note: 'std::unordered_map' is defined in header '<unordered_map>'; did you forget to '#include <unordered_map>'? 4 | #include <vector> +++ |+#include <unordered_map> 5 | using namespace std; main.cpp:36:19: error: expected primary-expression before 'unsigned' 36 | unordered_map<unsigned short, vector<unsigned short>> coduri; | ^~~~~~~~ main.cpp:46:13: error: 'coduri' was not declared in this scope 46 | coduri[cod].push_back(i); | ^~~~~~ main.cpp:56:60: error: 'coduri' was not declared in this scope 56 | for (pair<unsigned short, vector<unsigned short>> cod: coduri){ | ^~~~~~ main.cpp:63:27: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<short unsigned int>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 63 | for (int j = 1; j < cod.second.size(); j++){ | ~~^~~~~~~~~~~~~~~~~~~ main.cpp:38:26: warning: unused variable 'max_code' [-Wunused-variable] 38 | unsigned short n, c, max_code = 0; | ^~~~~~~~ Non zero exit status: 1

Ceva nu functioneaza?