Borderou de evaluare (job #1629621)
Utilizator | Data | 4 martie 2016 17:05:00 | |
---|---|---|---|
Problema | Poze | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘void mk_suffix_array(int, int, std::vector<std::vector<std::array<int, 10u> > >&)’:
user.cpp:35:39: error: no matching function for call to ‘radix_sort(std::vector<std::pair<int, int> >::iterator, std::vector<std::pair<int, int> >::iterator, mk_suffix_array(int, int, std::vector<std::vector<std::array<int, 10u> > >&)::__lambda1)’
return ord[a.first][a.second][0]; });
^
user.cpp:35:39: note: candidate is:
user.cpp:12:6: note: template<class T, class F> void radix_sort(std::vector<_RealType>&, F)
void radix_sort(vector<T>& v, F f){
^
user.cpp:12:6: note: template argument deduction/substitution failed:
user.cpp:35:39: note: ‘std::vector<std::pair<int, int> >::iterator {aka __gnu_cxx::__normal_iterator<std::pair<int, int>*, std::vector<std::pair<int, int> > >}’ is not derived from ‘std::vector<_RealType>’
return ord[a.first][a.second][0]; });
^
user.cpp: In lambda function:
user.cpp:40:34: error: ‘b’ was not declared in this scope
return a.first - step < 0 || b.first < 0; };
^
user.cpp: In function ‘void mk_suffix_array(int, int, std::vector<std::vector<std::array<int, 10u> > >&)’:
user.cpp:40:48: error: expected ‘)’ before ‘;’ token
return a.first - step < 0 || b.first < 0; };
^
user.cpp: In lambda function:
user.cpp:42:37: error: ‘b’ was not declared in this scope
return make_pair(a.first - step, b.first - step); };
^
user.cpp: In function ‘void mk_suffix_array(int, int, std::vector<std::vector<std::array<int, 10u> > >&)’:
user.cpp:42:55: error: expected ‘)’ before ‘;’ token
return make_pair(a.first - step, b.first - step); };
^
user.cpp:59:39: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i = 1, val = 0; i < sa.size(); ++i){
^
user.cpp: In function ‘int max_nr_same(int, int, const std::vector<std::vector<std::array<int, 10u> > >&, int)’:
user.cpp:95:38: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i = 1, val = 1; i < sa.size(); ++i){
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !