Borderou de evaluare (job #1428587)
Utilizator | Data | 4 mai 2015 19:47:14 | |
---|---|---|---|
Problema | String | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘int buildhash()’:
user.cpp:20:9: error: reference to ‘hash’ is ambiguous
hash[sol+put2[i]]=1;
^
user.cpp:9:19: note: candidates are: std::bitset<2000001u> hash
bitset <maxvalue> hash;
^
In file included from /usr/include/c++/4.8/bits/basic_string.h:3033:0,
from /usr/include/c++/4.8/string:52,
from /usr/include/c++/4.8/bitset:47,
from user.cpp:3:
/usr/include/c++/4.8/bits/functional_hash.h:58:12: note: template<class _Tp> struct std::hash
struct hash;
^
user.cpp:25:11: error: reference to ‘hash’ is ambiguous
hash[sol+put2[i]]=1;
^
user.cpp:9:19: note: candidates are: std::bitset<2000001u> hash
bitset <maxvalue> hash;
^
In file included from /usr/include/c++/4.8/bits/basic_string.h:3033:0,
from /usr/include/c++/4.8/string:52,
from /usr/include/c++/4.8/bitset:47,
from user.cpp:3:
/usr/include/c++/4.8/bits/functional_hash.h:58:12: note: template<class _Tp> struct std::hash
struct hash;
^
user.cpp:28:1: warning: no return statement in function returning non-void [-Wreturn-type]
}
^
user.cpp: In function ‘int main()’:
user.cpp:38:9: error: reference to ‘hash’ is ambiguous
if (hash[i]==0) break;
^
user.cpp:9:19: note: candidates are: std::bitset<2000001u> hash
bitset <maxvalue> hash;
^
In file included from /usr/include/c++/4.8/bits/basic_string.h:3033:0,
from /usr/include/c++/4.8/string:52,
from /usr/include/c++/4.8/bitset:47,
from user.cpp:3:
/usr/include/c++/4.8/bits/functional_hash.h:58:12: note: template<class _Tp> struct std::hash
struct hash;
^
user.cpp:30:31: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("string.in","r",stdin);
^
user.cpp:31:33: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("string.out","w",stdout);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !