Borderou de evaluare (job #3216560)

Utilizator LuisArredondoLuis Angel Arredondo Uribe LuisArredondo Data 18 martie 2024 01:05:28
Problema Drumuri2 Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'void DFS(int)': main.cpp:30:20: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 30 | for (int i=0; i<v[k].size(); ++i) { | ~^~~~~~~~~~~~ main.cpp: In function 'void DFSt(int)': main.cpp:38:20: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 38 | for (int i=0; i<vt[k].size(); ++i) | ~^~~~~~~~~~~~~ main.cpp: In function 'void DF(int)': main.cpp:43:20: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 43 | for (int i=0; i<tare[k].size(); ++i) { | ~^~~~~~~~~~~~~~~ main.cpp: In function 'void sortaret()': main.cpp:68:24: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 68 | for (i=0; i<tare[nod].size(); ++i) { | ~^~~~~~~~~~~~~~~~~ main.cpp:50:11: warning: unused variable 'j' [-Wunused-variable] 50 | int i,j,nod, VV=0; | ^ main.cpp: In function 'int main()': main.cpp:103:20: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 103 | for (j=0; j<comp[i].size(); ++j) { | ~^~~~~~~~~~~~~~~ main.cpp:106:24: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 106 | for (o=0; o<v[nod].size(); ++o) { //verific vecinii | ~^~~~~~~~~~~~~~ main.cpp:127:24: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 127 | for (j=0; j<comp[i].size(); ++j) | ~^~~~~~~~~~~~~~~ In file included from /usr/include/c++/12.2.1/set:60, from main.cpp:6: /usr/include/c++/12.2.1/bits/stl_tree.h: In instantiation of 'static const _Key& std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::_S_key(_Const_Link_type) [with _Key = elem; _Val = elem; _KeyOfValue = std::_Identity<elem>; _Compare = cmp; _Alloc = std::allocator<elem>; _Const_Link_type = const std::_Rb_tree_node<elem>*]': /usr/include/c++/12.2.1/bits/stl_tree.h:2148:44: required from 'std::pair<std::_Rb_tree_node_base*, std::_Rb_tree_node_base*> std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::_M_get_insert_equal_pos(const key_type&) [with _Key = elem; _Val = elem; _KeyOfValue = std::_Identity<elem>; _Compare = cmp; _Alloc = std::allocator<elem>; key_type = elem]' /usr/include/c++/12.2.1/bits/stl_tree.h:2197:4: required from 'std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::iterator std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::_M_insert_equal(_Arg&&) [with _Arg = const elem&; _Key = elem; _Val = elem; _KeyOfValue = std::_Identity<elem>; _Compare = cmp; _Alloc = std::allocator<elem>; iterator = std::_Rb_tree<elem, elem, std::_Identity<elem>, cmp, std::allocator<elem> >::iterator]' /usr/include/c++/12.2.1/bits/stl_multiset.h:504:36: required from 'std::multiset<_Key, _Compare, _Alloc>::iterator std::multiset<_Key, _Compare, _Alloc>::insert(const value_type&) [with _Key = elem; _Compare = cmp; _Alloc = std::allocator<elem>; iterator = std::_Rb_tree<elem, elem, std::_Identity<elem>, cmp, std::allocator<elem> >::const_iterator; value_type = elem]' main.cpp:55:22: required from here /usr/include/c++/12.2.1/bits/stl_tree.h:770:15: error: static assertion failed: comparison object must be invocable as const 770 | is_invocable_v<const _Compare&, const _Key&, const _Key&>, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/12.2.1/bits/stl_tree.h:770:15: note: 'std::is_invocable_v<const cmp&, const elem&, const elem&>' evaluates to false Non zero exit status: 1

Ceva nu functioneaza?