Borderou de evaluare (job #2421421)
| Utilizator | Data | 15 mai 2019 07:48:24 | |
|---|---|---|---|
| Problema | Cel mai lung subsir comun | Status | done |
| Runda | Arhiva educationala | Compilator | cpp-64 | Vezi sursa |
| Scor | 0 | ||
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int main()':
main.cpp:38:3: error: reference to 'hash' is ambiguous
hash[b[i]].push_back(i);
^~~~
main.cpp:9:14: note: candidates are: std::vector<int> hash [260]
vector <int> hash[260];
^~~~
In file included from /usr/include/c++/6/bits/stl_bvector.h:1262:0,
from /usr/include/c++/6/vector:65,
from main.cpp:3:
/usr/include/c++/6/bits/functional_hash.h:58:12: note: template<class _Tp> struct std::hash
struct hash;
^~~~
main.cpp:42:8: error: reference to 'hash' is ambiguous
sort(hash[i].begin(),hash[i].end(),cmp());
^~~~
main.cpp:9:14: note: candidates are: std::vector<int> hash [260]
vector <int> hash[260];
^~~~
In file included from /usr/include/c++/6/bits/stl_bvector.h:1262:0,
from /usr/include/c++/6/vector:65,
from main.cpp:3:
/usr/include/c++/6/bits/functional_hash.h:58:12: note: template<class _Tp> struct std::hash
struct hash;
^~~~
main.cpp:42:24: error: reference to 'hash' is ambiguous
sort(hash[i].begin(),hash[i].end(),cmp());
^~~~
main.cpp:9:14: note: candidates are: std::vector<int> hash [260]
vector <int> hash[260];
^~~~
In file included from /usr/include/c++/6/bits/stl_bvector.h:1262:0,
from /usr/include/c++/6/vector:65,
from main.cpp:3:
/usr/include/c++/6/bits/functional_hash.h:58:12: note: template<class _Tp> struct std::hash
struct hash;
^~~~
main.cpp:45:10: error: reference to 'hash' is ambiguous
for(it=hash[a[i]].begin();it!=hash[a[i]].end();it++)
^~~~
main.cpp:9:14: note: candidates are: std::vector<int> hash [260]
vector <int> hash[260];
^~~~
In file included from /usr/include/c++/6/bits/stl_bvector.h:1262:0,
from /usr/include/c++/6/vector:65,
from main.cpp:3:
/usr/include/c++/6/bits/functional_hash.h:58:12: note: template<class _Tp> struct std::hash
struct hash;
^~~~
main.cpp:45:33: error: reference to 'hash' is ambiguous
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !
