Borderou de evaluare (job #2729270)

Utilizator ionicaion ionica Data 24 martie 2021 15:27:39
Problema Radio2 Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp:15:1: error: reference to 'unordered_map' is ambiguous unordered_map <int, vector <int> > H; ^~~~~~~~~~~~~ In file included from /usr/include/c++/6/tr1/unordered_map:42:0, from main.cpp:2: /usr/include/c++/6/tr1/unordered_map.h:180:11: note: candidates are: template<class _Key, class _Tp, class _Hash, class _Pred, class _Alloc> class std::tr1::unordered_map class unordered_map ^~~~~~~~~~~~~ In file included from /usr/include/c++/6/unordered_map:48:0, from /usr/include/x86_64-linux-gnu/c++/6/bits/stdc++.h:117, from main.cpp:3: /usr/include/c++/6/bits/unordered_map.h:98:11: note: template<class _Key, class _Tp, class _Hash, class _Pred, class _Alloc> class std::unordered_map class unordered_map ^~~~~~~~~~~~~ main.cpp: In function 'void buildHash(int)': main.cpp:29:5: error: 'H' was not declared in this scope H[x].push_back(1);///unde incepe secventa ^ main.cpp: In function 'int main()': main.cpp:65:13: warning: suggest parentheses around '+' inside '>>' [-Wparentheses] fin >> A+1; ~^~ main.cpp:76:17: warning: suggest parentheses around '+' inside '>>' [-Wparentheses] fin >> B+1; ~^~ main.cpp:90:17: error: 'H' was not declared in this scope if (H.find(x) != H.end())///l-am gasit ^ Non zero exit status: 1

Ceva nu functioneaza?