Borderou de evaluare (job #3379553)

Utilizator BrachisCalin Andrei Razvan Brachis Data 30 noiembrie 2026 22:45:01
Problema Ciclu Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'bool BellmanFord(double)': main.cpp:54:17: error: reference to 'hash' is ambiguous 54 | hash[i] = true; | ^~~~ In file included from /usr/include/c++/12.2.1/bits/stl_bvector.h:61, from /usr/include/c++/12.2.1/vector:65, from main.cpp:2: /usr/include/c++/12.2.1/bits/functional_hash.h:59:12: note: candidates are: 'template<class _Tp> struct std::hash' 59 | struct hash; | ^~~~ main.cpp:18:6: note: 'bool hash [1005]' 18 | bool hash[MAXN]; int Cnt[MAXN]; | ^~~~ main.cpp:69:38: error: reference to 'hash' is ambiguous 69 | if (!hash[f(it)]) { | ^~~~ /usr/include/c++/12.2.1/bits/functional_hash.h:59:12: note: candidates are: 'template<class _Tp> struct std::hash' 59 | struct hash; | ^~~~ main.cpp:18:6: note: 'bool hash [1005]' 18 | bool hash[MAXN]; int Cnt[MAXN]; | ^~~~ main.cpp:70:41: error: reference to 'hash' is ambiguous 70 | hash[f(it)] = true; | ^~~~ /usr/include/c++/12.2.1/bits/functional_hash.h:59:12: note: candidates are: 'template<class _Tp> struct std::hash' 59 | struct hash; | ^~~~ main.cpp:18:6: note: 'bool hash [1005]' 18 | bool hash[MAXN]; int Cnt[MAXN]; | ^~~~ main.cpp:74:17: error: reference to 'hash' is ambiguous 74 | hash[x] = false; | ^~~~ /usr/include/c++/12.2.1/bits/functional_hash.h:59:12: note: candidates are: 'template<class _Tp> struct std::hash' 59 | struct hash; | ^~~~ main.cpp:18:6: note: 'bool hash [1005]' 18 | bool hash[MAXN]; int Cnt[MAXN]; | ^~~~ main.cpp: In function 'int main()': main.cpp:95:36: error: expected '}' at end of input 95 | fprintf(fo, "%.2lf\n", lo); | ^ main.cpp:80:1: note: to match this '{' 80 | { | ^ Non zero exit status: 1

Ceva nu functioneaza?