运行 ID 作者 题号 测评结果 分数 时间 内存 语言 代码长度 提交时间
645335 Y1614824396_fdsf 1072 - 排名 编译错误 0 0 MS 0 KB C++ 957 9天前
暂时无法获取本题测试点详情。

Main.cc: In function 'int main()':
Main.cc:28:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<std::__cxx11::basic_string<char>, std::vector<int> > >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
28 | for(int i=0;i<vec.size()-1;i++){
| ~^~~~~~~~~~~~~
In file included from /usr/include/c++/12.2.1/bits/stl_algobase.h:71,
from /usr/include/c++/12.2.1/string:50,
from /usr/include/c++/12.2.1/bits/locale_classes.h:40,
from /usr/include/c++/12.2.1/bits/ios_base.h:41,
from /usr/include/c++/12.2.1/ios:42,
from /usr/include/c++/12.2.1/istream:38,
from /usr/include/c++/12.2.1/sstream:38,
from /usr/include/c++/12.2.1/complex:45,
from /usr/include/c++/12.2.1/ccomplex:39,
from /usr/include/c++/12.2.1/x86_64-alpine-linux-musl/bits/stdc++.h:54,
from Main.cc:1:
/usr/include/c++/12.2.1/bits/predefined_ops.h: In instantiation of 'constexpr bool __gnu_cxx::__ops::_Iter_comp_iter<_Compare>::operator()(_Iterator1, _Iterator2) [with _Iterator1 = __gnu_cxx::__normal_iterator<std::pair<std::__cxx11::basic_string<char>, std::vector<int> >*, std::vector<std::pair<std::__cxx11::basic_string<char>, std::vector<int> > > >; _Iterator2 = __gnu_cxx::__normal_iterator<std::pair<std::__cxx11::basic_string<char>, std::vector<int> >*, std::vector<std::pair<std::__cxx11::basic_string<char>, std::vector<int> > > >; _Compare = bool (*)(const std::pair<char, std::vector<int> >&, const std::pair<char, std::vector<int> >&)]':
/usr/include/c++/12.2.1/bits/stl_algo.h:1809:14: required from 'void std::__insertion_sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator<pair<__cxx11::basic_string<char>, vector<int> >*, vector<pair<__cxx11::basic_string<char>, vector<int> > > >; _Compare = __gnu_cxx::__ops::_Iter_comp_iter<bool (*)(const pair<char, vector<int> >&, const pair<char, vector<int> >&)>]'
/usr/include/c++/12.2.1/bits/stl_algo.h:1849:25: required from 'void std::__final_insertion_sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator<pair<__cxx11::basic_string<char>, vector<int> >*, vector<pair<__cxx11::basic_string<char>, vector<int> > > >; _Compare = __gnu_cxx::__ops::_Iter_comp_iter<bool (*)(const pair<char, vector<int> >&, const pair<char, vector<int> >&)>]'
/usr/include/c++/12.2.1/bits/stl_algo.h:1940:31: required from 'void std::__sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator<pair<__cxx11::basic_string<char>, vector<int> >*, vector<pair<__cxx11::basic_string<char>, vector<int> > > >; _Compare = __gnu_cxx::__ops::_Iter_comp_iter<bool (*)(const pair<char, vector<int> >&, const pair<char, vector<int> >&)>]'
/usr/include/c++/12.2.1/bits/stl_algo.h:4853:18: required from 'void std::sort(_RAIter, _RAIter, _Compare) [with _RAIter = __gnu_cxx::__normal_iterator<pair<__cxx11::basic_string<char>, vector<int> >*, vector<pair<__cxx11::basic_string<char>, vector<int> > > >; _Compare = bool (*)(const pair<char, vector<int> >&, const pair<char, vector<int> >&)]'
Main.cc:27:13: required from here
/usr/include/c++/12.2.1/bits/predefined_ops.h:158:30: error: invalid initialization of reference of type 'const std::pair<char, std::vector<int> >&' from expression of type 'std::pair<std::__cxx11::basic_string<char>, std::vector<int> >'
158 | { return bool(_M_comp(*__it1, *__it2)); }
| ~~~~~~~^~~~~~~~~~~~~~~~
/usr/include/c++/12.2.1/bits/predefined_ops.h: In instantiation of 'bool __gnu_cxx::__ops::_Val_comp_iter<_Compare>::operator()(_Value&, _Iterator) [with _Value = std::pair<std::__cxx11::basic_string<char>, std::vector<int> >; _Iterator = __gnu_cxx::__normal_iterator<std::pair<std::__cxx11::basic_string<char>, std::vector<int> >*, std::vector<std::pair<std::__cxx11::basic_string<char>, std::vector<int> > > >; _Compare = bool (*)(const std::pair<char, std::vector<int> >&, const std::pair<char, std::vector<int> >&)]':
/usr/include/c++/12.2.1/bits/stl_algo.h:1789:20: required from 'void std::__unguarded_linear_insert(_RandomAccessIterator, _Compare) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator<pair<__cxx11::basic_string<char>, vector<int> >*, vector<pair<__cxx11::basic_string<char>, vector<int> > > >; _Compare = __gnu_cxx::__ops::_Val_comp_iter<bool (*)(const pair<char, vector<int> >&, const pair<char, vector<int> >&)>]'
/usr/include/c++/12.2.1/bits/stl_algo.h:1817:36: required from 'void std::__insertion_sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator<pair<__cxx11::basic_string<char>, vector<int> >*, vector<pair<__cxx11::basic_string<char>, vector<int> > > >; _Compare = __gnu_cxx::__ops::_Iter_comp_iter<bool (*)(const pair<char, vector<int> >&, const pair<char, vector<int> >&)>]'
/usr/include/c++/12.2.1/bits/stl_algo.h:1849:25: required from 'void std::__final_insertion_sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator<pair<__cxx11::basic_string<char>, vector<int> >*, vector<pair<__cxx11::basic_string<char>, vector<int> > > >; _Compare = __gnu_cxx::__ops::_Iter_comp_iter<bool (*)(const pair<char, vector<int> >&, const pair<char, vector<int> >&)>]'
/usr/include/c++/12.2.1/bits/stl_algo.h:1940:31: required from 'void std::__sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator<pair<__cxx11::basic_string<char>, vector<int> >*, vector<pair<__cxx11::basic_string<char>, vector<int> > > >; _Compare = __gnu_cxx::__ops::_Iter_comp_iter<bool (*)(const pair<char, vector<int> >&, const pair<char, vector<int> >&)>]'
/usr/include/c++/12.2.1/bits/stl_algo.h:4853:18: required from 'void std::sort(_RAIter, _RAIter, _Compare) [with _RAIter = __gnu_cxx::__normal_iterator<pair<__cxx11::basic_string<char>, vector<int> >*, vector<pair<__cxx11::basic_string<char>, vector<int> > > >; _Compare = bool (*)(const pair<char, vector<int> >&, const pair<char, vector<int> >&)]'
Main.cc:27:13: required from here
/usr/include/c++/12.2.1/bits/predefined_ops.h:240:30: error: invalid initialization of reference of type 'const std::pair<char, std::vector<int> >&' from expression of type 'std::pair<std::__cxx11::basic_string<char>, std::vector<int> >'
240 | { return bool(_M_comp(__val, *__it)); }
| ~~~~~~~^~~~~~~~~~~~~~
/usr/include/c++/12.2.1/bits/predefined_ops.h: In instantiation of 'bool __gnu_cxx::__ops::_Iter_comp_val<_Compare>::operator()(_Iterator, _Value&) [with _Iterator = __gnu_cxx::__normal_iterator<std::pair<std::__cxx11::basic_string<char>, std::vector<int> >*, std::vector<std::pair<std::__cxx11::basic_string<char>, std::vector<int> > > >; _Value = std::pair<std::__cxx11::basic_string<char>, std::vector<int> >; _Compare = bool (*)(const std::pair<char, std::vector<int> >&, const std::pair<char, std::vector<int> >&)]':
/usr/include/c++/12.2.1/bits/stl_heap.h:140:48: required from 'void std::__push_heap(_RandomAccessIterator, _Distance, _Distance, _Tp, _Compare&) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator<pair<__cxx11::basic_string<char>, vector<int> >*, vector<pair<__cxx11::basic_string<char>, vector<int> > > >; _Distance = long int; _Tp = pair<__cxx11::basic_string<char>, vector<int> >; _Compare = __gnu_cxx::__ops::_Iter_comp_val<bool (*)(const pair<char, vector<int> >&, const pair<char, vector<int> >&)>]'
/usr/include/c++/12.2.1/bits/stl_heap.h:247:23: required from 'void std::__adjust_heap(_RandomAccessIterator, _Distance, _Distance, _Tp, _Compare) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator<pair<__cxx11::basic_string<char>, vector<int> >*, vector<pair<__cxx11::basic_string<char>, vector<int> > > >; _Distance = long int; _Tp = pair<__cxx11::basic_string<char>, vector<int> >; _Compare = __gnu_cxx::__ops::_Iter_comp_iter<bool (*)(const pair<char, vector<int> >&, const pair<char, vector<int> >&)>]'
/usr/include/c++/12.2.1/bits/stl_heap.h:356:22: required from 'void std::__make_heap(_RandomAccessIterator, _RandomAccessIterator, _Compare&) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator<pair<__cxx11::basic_string<char>, vector<int> >*, vector<pair<__cxx11::basic_string<char>, vector<int> > > >; _Compare = __gnu_cxx::__ops::_Iter_comp_iter<bool (*)(const pair<char, vector<int> >&, const pair<char, vector<int> >&)>]'
/usr/include/c++/12.2.1/bits/stl_algo.h:1629:23: required from 'void std::__heap_select(_RandomAccessIterator, _RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator<pair<__cxx11::basic_string<char>, vector<int> >*, vector<pair<__cxx11::basic_string<char>, vector<int> > > >; _Compare = __gnu_cxx::__ops::_Iter_comp_iter<bool (*)(const pair<char, vector<int> >&, const pair<char, vector<int> >&)>]'
/usr/include/c++/12.2.1/bits/stl_algo.h:1900:25: required from 'void std::__partial_sort(_RandomAccessIterator, _RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator<pair<__cxx11::basic_string<char>, vector<int> >*, vector<pair<__cxx11::basic_string<char>, vector<int> > > >; _Compare = __gnu_cxx::__ops::_Iter_comp_iter<bool (*)(const pair<char, vector<int> >&, const pair<char, vector<int> >&)>]'
/usr/include/c++/12.2.1/bits/stl_algo.h:1916:27: required from 'void std::__introsort_loop(_RandomAccessIterator, _RandomAccessIterator, _Size, _Compare) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator<pair<__cxx11::basic_string<char>, vector<int> >*, vector<pair<__cxx11::basic_string<char>, vector<int> > > >; _Size = long int; _Compare = __gnu_cxx::__ops::_Iter_comp_iter<bool (*)(const pair<char, vector<int> >&, const pair<char, vector<int> >&)>]'
/usr/include/c++/12.2.1/bits/stl_algo.h:1937:25: required from 'void std::__sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator<pair<__cxx11::basic_string<char>, vector<int> >*, vector<pair<__cxx11::basic_string<char>, vector<int> > > >; _Compare = __gnu_cxx::__ops::_Iter_comp_iter<bool (*)(const pair<char, vector<int> >&, const pair<char, vector<int> >&)>]'
/usr/include/c++/12.2.1/bits/stl_algo.h:4853:18: required from 'void std::sort(_RAIter, _RAIter, _Compare) [with _RAIter = __gnu_cxx::__normal_iterator<pair<__cxx11::basic_string<char>, vector<int> >*, vector<pair<__cxx11::basic_string<char>, vector<int> > > >; _Compare = bool (*)(const pair<char, vector<int> >&, const pair<char, vector<int> >&)]'
Main.cc:27:13: required from here
/usr/include/c++/12.2.1/bits/predefined_ops.h:196:30: error: invalid initialization of reference of type 'const std::pair<char, std::vector<int> >&' from expression of type 'std::pair<std::__cxx11::basic_string<char>, std::vector<int> >'
196 | { return bool(_M_comp(*__it, __val)); }
| ~~~~~~~^~~~~~~~~~~~~~