Borderou de evaluare (job #2953863)
Utilizator | Data | 12 decembrie 2022 13:20:57 | |
---|---|---|---|
Problema | Dragoni | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'void dijkstra(int)':
main.cpp:50:45: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'struct std::pair<int, int>' with no trivial copy-assignment; use assignment instead [-Wclass-memaccess]
50 | memset(dragon_max, 0, sizeof(dragon_max));
| ^
In file included from /usr/include/c++/10/bits/stl_algobase.h:64,
from /usr/include/c++/10/bits/char_traits.h:39,
from /usr/include/c++/10/ios:40,
from /usr/include/c++/10/istream:38,
from /usr/include/c++/10/sstream:38,
from /usr/include/c++/10/complex:45,
from /usr/include/c++/10/ccomplex:39,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:54,
from main.cpp:1:
/usr/include/c++/10/bits/stl_pair.h:211:12: note: 'struct std::pair<int, int>' declared here
211 | struct pair
| ^~~~
main.cpp:54:39: error: 'dragom_max' was not declared in this scope; did you mean 'dragon_max'?
54 | dragon_max[1].first = dragoni[1], dragom_max[1].second = 1;
| ^~~~~~~~~~
| dragon_max
main.cpp:57:31: error: 'const value_type' {aka 'const struct compare'} has no member named 'node'; did you mean 'nod'?
57 | int f_node = pq.top().node;
| ^~~~
| nod
main.cpp:69:39: error: no match for 'operator>' (operand types are 'std::pair<int, int>' and 'int')
69 | if(dragon_max[f_node] > dragoni[new_node])
| ~~~~~~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~~~~
| | |
| std::pair<int, int> int
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:69:57: note: 'std::pair<int, int>' is not derived from 'const std::__cxx11::sub_match<_BiIter>'
69 | if(dragon_max[f_node] > dragoni[new_node])
| ^
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:69:57: note: 'std::pair<int, int>' is not derived from 'std::__cxx11::__sub_match_string<_Bi_iter, _Ch_traits, _Ch_alloc>'
69 | if(dragon_max[f_node] > dragoni[new_node])
| ^
In file included from /usr/include/c++/10/regex:62,
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !