Borderou de evaluare (job #1195614)

Utilizator sloanMark Sloan sloan Data 8 iunie 2014 10:13:37
Problema Potriveala Status done
Runda Algoritmiada 2014 - Runda 3, Clasele 11-12 Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In function ‘unsigned int get(int, int, int)’: user.cpp:45:12: error: reference to ‘hash’ is ambiguous return hash[i][j] - hash[i][j + len] * pw[len]; ^ user.cpp:42:10: note: candidates are: unsigned int hash [22][250010] unsigned hash[22][250010], pw[250010]; ^ In file included from /usr/include/c++/4.8/bits/stl_bvector.h:1134:0, from /usr/include/c++/4.8/vector:65, from user.cpp:1: /usr/include/c++/4.8/bits/functional_hash.h:58:12: note: template<class _Tp> struct std::hash struct hash; ^ user.cpp:45:25: error: reference to ‘hash’ is ambiguous return hash[i][j] - hash[i][j + len] * pw[len]; ^ user.cpp:42:10: note: candidates are: unsigned int hash [22][250010] unsigned hash[22][250010], pw[250010]; ^ In file included from /usr/include/c++/4.8/bits/stl_bvector.h:1134:0, from /usr/include/c++/4.8/vector:65, from user.cpp:1: /usr/include/c++/4.8/bits/functional_hash.h:58:12: note: template<class _Tp> struct std::hash struct hash; ^ user.cpp: In function ‘bool possible(int)’: user.cpp:60:24: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] REP(j, 2, tmp[0]) ^ user.cpp:20:42: note: in definition of macro ‘REP’ #define REP(i, a, b) for(int i = a; i <= b; ++i) ^ user.cpp: In function ‘int main()’: user.cpp:100:13: error: reference to ‘hash’ is ambiguous hash[i][M[i] + 1] = 0; ^ user.cpp:42:10: note: candidates are: unsigned int hash [22][250010] unsigned hash[22][250010], pw[250010]; ^ In file included from /usr/include/c++/4.8/bits/stl_bvector.h:1134:0, from /usr/include/c++/4.8/vector:65, from user.cpp:1: /usr/include/c++/4.8/bits/functional_hash.h:58:12: note: template<class _Tp> struct std::hash struct hash; ^ user.cpp:102:17: error: reference to ‘hash’ is ambiguous hash[i][j] = x[i][j] + B * hash[i][j + 1]; ^ user.cpp:42:10: note: candidates are: unsigned int hash [22][250010] unsigned hash[22][250010], pw[250010];

Ceva nu functioneaza?