Borderou de evaluare (job #3220426)

Utilizator DumitrescuADumitrescuA DumitrescuA Data 3 aprilie 2024 16:27:17
Problema Poze Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'int works(int)': main.cpp:22:16: error: reference to 'hash' is ambiguous 22 | memset(hash, 0, sizeof(hash)); | ^~~~ In file included from /usr/include/c++/12.2.1/string_view:43, from /usr/include/c++/12.2.1/bits/basic_string.h:47, from /usr/include/c++/12.2.1/string:53, 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:17:4: note: 'long long unsigned int hash [310][310]' 17 | ui hash[maxn][maxn]; | ^~~~ main.cpp:22:32: error: reference to 'hash' is ambiguous 22 | memset(hash, 0, sizeof(hash)); | ^~~~ /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:17:4: note: 'long long unsigned int hash [310][310]' 17 | ui hash[maxn][maxn]; | ^~~~ main.cpp:22:9: error: 'memset' was not declared in this scope 22 | memset(hash, 0, sizeof(hash)); | ^~~~~~ main.cpp:4:1: note: 'memset' is defined in header '<cstring>'; did you forget to '#include <cstring>'? 3 | #include <algorithm> +++ |+#include <cstring> 4 | main.cpp:33:25: error: reference to 'hash' is ambiguous 33 | hash[i][l] = hash[i][l] + 1LL * y * a[i][j]; | ^~~~ /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:17:4: note: 'long long unsigned int hash [310][310]' 17 | ui hash[maxn][maxn]; | ^~~~ main.cpp:33:38: error: reference to 'hash' is ambiguous 33 | hash[i][l] = hash[i][l] + 1LL * y * a[i][j]; | ^~~~ /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:17:4: note: 'long long unsigned int hash [310][310]' 17 | ui hash[maxn][maxn]; | ^~~~ main.cpp:38:25: error: reference to 'hash' is ambiguous 38 | hash[i][j] = hash[i][j-1] - 1LL * y * a[i][j-l]; Non zero exit status: 1

Ceva nu functioneaza?