Borderou de evaluare (job #2581141)

Utilizator coronavirusCovid19 coronavirus Data 14 martie 2020 16:27:31
Problema Tester Status done
Runda corona_day2 Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: In file included from /usr/include/c++/6/map:61:0, from /usr/include/x86_64-linux-gnu/c++/6/bits/stdc++.h:81, from main.cpp:1: /usr/include/c++/6/bits/stl_map.h: In instantiation of 'std::map<_Key, _Tp, _Compare, _Alloc>::mapped_type& std::map<_Key, _Tp, _Compare, _Alloc>::operator[](const key_type&) [with _Key = std::pair<int, int>; _Tp = std::vector<std::pair<std::pair<int, int>, int> >; _Compare = pair_hash; _Alloc = std::allocator<std::pair<const std::pair<int, int>, std::vector<std::pair<std::pair<int, int>, int> > > >; std::map<_Key, _Tp, _Compare, _Alloc>::mapped_type = std::vector<std::pair<std::pair<int, int>, int> >; std::map<_Key, _Tp, _Compare, _Alloc>::key_type = std::pair<int, int>]': main.cpp:17:17: required from here /usr/include/c++/6/bits/stl_map.h:481:32: error: no match for call to '(std::map<std::pair<int, int>, std::vector<std::pair<std::pair<int, int>, int> >, pair_hash>::key_compare {aka pair_hash}) (const key_type&, const std::pair<int, int>&)' if (__i == end() || key_comp()(__k, (*__i).first)) ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ main.cpp:7:10: note: candidate: template<class T1, class T2> bool pair_hash::operator()(const std::pair<_T1, _T2>&) const bool operator () (const pair<T1, T2> &A) const{ ^~~~~~~~ main.cpp:7:10: note: template argument deduction/substitution failed: In file included from /usr/include/c++/6/map:61:0, from /usr/include/x86_64-linux-gnu/c++/6/bits/stdc++.h:81, from main.cpp:1: /usr/include/c++/6/bits/stl_map.h:481:32: note: candidate expects 1 argument, 2 provided if (__i == end() || key_comp()(__k, (*__i).first)) ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ /usr/include/c++/6/bits/stl_map.h: In instantiation of 'std::map<_Key, _Tp, _Compare, _Alloc>::mapped_type& std::map<_Key, _Tp, _Compare, _Alloc>::operator[](std::map<_Key, _Tp, _Compare, _Alloc>::key_type&&) [with _Key = std::pair<int, int>; _Tp = std::vector<std::pair<std::pair<int, int>, int> >; _Compare = pair_hash; _Alloc = std::allocator<std::pair<const std::pair<int, int>, std::vector<std::pair<std::pair<int, int>, int> > > >; std::map<_Key, _Tp, _Compare, _Alloc>::mapped_type = std::vector<std::pair<std::pair<int, int>, int> >; std::map<_Key, _Tp, _Compare, _Alloc>::key_type = std::pair<int, int>]': main.cpp:40:27: required from here /usr/include/c++/6/bits/stl_map.h:501:32: error: no match for call to '(std::map<std::pair<int, int>, std::vector<std::pair<std::pair<int, int>, int> >, pair_hash>::key_compare {aka pair_hash}) (std::map<std::pair<int, int>, std::vector<std::pair<std::pair<int, int>, int> >, pair_hash>::key_type&, const std::pair<int, int>&)' if (__i == end() || key_comp()(__k, (*__i).first)) ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ main.cpp:7:10: note: candidate: template<class T1, class T2> bool pair_hash::operator()(const std::pair<_T1, _T2>&) const bool operator () (const pair<T1, T2> &A) const{ ^~~~~~~~ main.cpp:7:10: note: template argument deduction/substitution failed: In file included from /usr/include/c++/6/map:61:0, from /usr/include/x86_64-linux-gnu/c++/6/bits/stdc++.h:81, from main.cpp:1: /usr/include/c++/6/bits/stl_map.h:501:32: note: candidate expects 1 argument, 2 provided if (__i == end() || key_comp()(__k, (*__i).first)) ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ /usr/include/c++/6/bits/stl_map.h: In instantiation of 'std::map<_Key, _Tp, _Compare, _Alloc>::mapped_type& std::map<_Key, _Tp, _Compare, _Alloc>::operator[](std::map<_Key, _Tp, _Compare, _Alloc>::key_type&&) [with _Key = std::pair<int, int>; _Tp = int; _Compare = pair_hash; _Alloc = std::allocator<std::pair<const std::pair<int, int>, int> >; std::map<_Key, _Tp, _Compare, _Alloc>::mapped_type = int; std::map<_Key, _Tp, _Compare, _Alloc>::key_type = std::pair<int, int>]': main.cpp:41:32: required from here /usr/include/c++/6/bits/stl_map.h:501:32: error: no match for call to '(std::map<std::pair<int, int>, int, pair_hash>::key_compare {aka pair_hash}) (std::map<std::pair<int, int>, int, pair_hash>::key_type&, const std::pair<int, int>&)' main.cpp:7:10: note: candidate: template<class T1, class T2> bool pair_hash::operator()(const std::pair<_T1, _T2>&) const bool operator () (const pair<T1, T2> &A) const{ ^~~~~~~~ main.cpp:7:10: note: template argument deduction/substitution failed: In file included from /usr/include/c++/6/map:61:0, from /usr/include/x86_64-linux-gnu/c++/6/bits/stdc++.h:81, from main.cpp:1: /usr/include/c++/6/bits/stl_map.h:501:32: note: candidate expects 1 argument, 2 provided if (__i == end() || key_comp()(__k, (*__i).first)) ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/6/map:60:0, from /usr/include/x86_64-linux-gnu/c++/6/bits/stdc++.h:81, from main.cpp:1: /usr/include/c++/6/bits/stl_tree.h: In instantiation of 'std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::iterator std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::_M_lower_bound(std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::_Link_type, std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::_Base_ptr, const _Key&) [with _Key = std::pair<int, int>; _Val = std::pair<const std::pair<int, int>, std::vector<std::pair<std::pair<int, int>, int> > >; _KeyOfValue = std::_Select1st<std::pair<const std::pair<int, int>, std::vector<std::pair<std::pair<int, int>, int> > > >; _Compare = pair_hash; _Alloc = std::allocator<std::pair<const std::pair<int, int>, std::vector<std::pair<std::pair<int, int>, int> > > >; std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::iterator = std::_Rb_tree_iterator<std::pair<const std::pair<int, int>, std::vector<std::pair<std::pair<int, int>, int> > > >; std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::_Link_type = std::_Rb_tree_node<std::pair<const std::pair<int, int>, std::vector<std::pair<std::pair<int, int>, int> > > >*; std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::_Base_ptr = std::_Rb_tree_node_base*]': Non zero exit status: 1

Ceva nu functioneaza?