Borderou de evaluare (job #1057156)
Utilizator | Data | 14 decembrie 2013 14:24:49 | |
---|---|---|---|
Problema | Carte | Status | done |
Runda | ONIS 2014, Runda 1 | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘void addCuv(char*)’:
user.cpp:27:5: error: reference to ‘hash’ is ambiguous
hash[hash1].insert(hash2);
^
user.cpp:11:12: note: candidates are: std::set<short int> hash [66617]
set<short> hash[MOD1];
^
In file included from /usr/local/include/c++/4.8.0/bits/stl_bvector.h:1134:0,
from /usr/local/include/c++/4.8.0/vector:65,
from user.cpp:4:
/usr/local/include/c++/4.8.0/bits/functional_hash.h:58:12: note: template<class _Tp> struct std::hash
struct hash;
^
user.cpp: In function ‘void find(short int)’:
user.cpp:43:10: warning: statement has no effect [-Wunused-value]
for(i;i<l;++i)
^
user.cpp:48:10: warning: statement has no effect [-Wunused-value]
for(i;i<textL;++i)
^
user.cpp:50:33: error: reference to ‘hash’ is ambiguous
set<short>::iterator it=hash[hash1].find(hash2);
^
user.cpp:11:12: note: candidates are: std::set<short int> hash [66617]
set<short> hash[MOD1];
^
In file included from /usr/local/include/c++/4.8.0/bits/stl_bvector.h:1134:0,
from /usr/local/include/c++/4.8.0/vector:65,
from user.cpp:4:
/usr/local/include/c++/4.8.0/bits/functional_hash.h:58:12: note: template<class _Tp> struct std::hash
struct hash;
^
user.cpp:51:16: error: reference to ‘hash’ is ambiguous
if(it!=hash[hash1].end())cuvinte[i-1].push_back(l);
^
user.cpp:11:12: note: candidates are: std::set<short int> hash [66617]
set<short> hash[MOD1];
^
In file included from /usr/local/include/c++/4.8.0/bits/stl_bvector.h:1134:0,
from /usr/local/include/c++/4.8.0/vector:65,
from user.cpp:4:
/usr/local/include/c++/4.8.0/bits/functional_hash.h:58:12: note: template<class _Tp> struct std::hash
struct hash;
^
user.cpp:57:29: error: reference to ‘hash’ is ambiguous
set<short>::iterator it=hash[hash1].find(hash2);
^
user.cpp:11:12: note: candidates are: std::set<short int> hash [66617]
set<short> hash[MOD1];
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !