Borderou de evaluare (job #2802157)
Utilizator | Data | 17 noiembrie 2021 17:35:40 | |
---|---|---|---|
Problema | Algoritmul Bellman-Ford | Status | done |
Runda | Arhiva educationala | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In member function 'std::vector<int> Graful_meu::Dijkstra_Algorithm()':
main.cpp:445:13: warning: unused variable 'distanta_curent' [-Wunused-variable]
445 | int distanta_curent = min_heap.top().first;
| ^~~~~~~~~~~~~~~
main.cpp: In lambda function:
main.cpp:483:58: error: expected '{' before '>' token
483 | if(dist_minima[j] != INFINIT and [vecin] > dist_minima[j] + cost)
| ^
main.cpp: In member function 'std::vector<int> Graful_meu::Bellman_Ford_Algorithm()':
main.cpp:483:58: error: no match for 'operator>' (operand types are 'Graful_meu::Bellman_Ford_Algorithm()::<lambda()>' and '__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type' {aka 'int'})
483 | if(dist_minima[j] != INFINIT and [vecin] > dist_minima[j] + cost)
In file included from /usr/include/c++/10/regex:62,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:110,
from main.cpp:1:
/usr/include/c++/10/bits/regex.h:1108:5: note: candidate: 'template<class _BiIter> bool std::__cxx11::operator>(const std::__cxx11::sub_match<_BiIter>&, const std::__cxx11::sub_match<_BiIter>&)'
1108 | operator>(const sub_match<_BiIter>& __lhs, const sub_match<_BiIter>& __rhs)
| ^~~~~~~~
/usr/include/c++/10/bits/regex.h:1108:5: note: template argument deduction/substitution failed:
main.cpp:483:77: note: 'Graful_meu::Bellman_Ford_Algorithm()::<lambda()>' is not derived from 'const std::__cxx11::sub_match<_BiIter>'
483 | if(dist_minima[j] != INFINIT and [vecin] > dist_minima[j] + cost)
| ^~~~
In file included from /usr/include/c++/10/regex:62,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:110,
from main.cpp:1:
/usr/include/c++/10/bits/regex.h:1168:5: note: candidate: 'template<class _Bi_iter, class _Ch_traits, class _Ch_alloc> bool std::__cxx11::operator>(std::__cxx11::__sub_match_string<_Bi_iter, _Ch_traits, _Ch_alloc>&, const std::__cxx11::sub_match<_BiIter>&)'
1168 | operator>(const __sub_match_string<_Bi_iter, _Ch_traits, _Ch_alloc>& __lhs,
| ^~~~~~~~
/usr/include/c++/10/bits/regex.h:1168:5: note: template argument deduction/substitution failed:
main.cpp:483:77: note: 'Graful_meu::Bellman_Ford_Algorithm()::<lambda()>' is not derived from 'std::__cxx11::__sub_match_string<_Bi_iter, _Ch_traits, _Ch_alloc>'
483 | if(dist_minima[j] != INFINIT and [vecin] > dist_minima[j] + cost)
| ^~~~
In file included from /usr/include/c++/10/regex:62,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:110,
from main.cpp:1:
/usr/include/c++/10/bits/regex.h:1261:5: note: candidate: 'template<class _Bi_iter, class _Ch_traits, class _Ch_alloc> bool std::__cxx11::operator>(const std::__cxx11::sub_match<_BiIter>&, std::__cxx11::__sub_match_string<_Bi_iter, _Ch_traits, _Ch_alloc>&)'
1261 | operator>(const sub_match<_Bi_iter>& __lhs,
| ^~~~~~~~
/usr/include/c++/10/bits/regex.h:1261:5: note: template argument deduction/substitution failed:
main.cpp:483:77: note: 'Graful_meu::Bellman_Ford_Algorithm()::<lambda()>' is not derived from 'const std::__cxx11::sub_match<_BiIter>'
483 | if(dist_minima[j] != INFINIT and [vecin] > dist_minima[j] + cost)
| ^~~~
In file included from /usr/include/c++/10/regex:62,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:110,
from main.cpp:1:
/usr/include/c++/10/bits/regex.h:1335:5: note: candidate: 'template<class _Bi_iter> bool std::__cxx11::operator>(const typename std::iterator_traits<_Iter>::value_type*, const std::__cxx11::sub_match<_BiIter>&)'
1335 | operator>(typename iterator_traits<_Bi_iter>::value_type const* __lhs,
| ^~~~~~~~
/usr/include/c++/10/bits/regex.h:1335:5: note: template argument deduction/substitution failed:
main.cpp:483:77: note: mismatched types 'const std::__cxx11::sub_match<_BiIter>' and '__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type' {aka 'int'}
483 | if(dist_minima[j] != INFINIT and [vecin] > dist_minima[j] + cost)
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !