Submission #00381


ソースコード

ステータス

項目 データ
問題 0005 - スニーカーマン
ユーザー名 kotatsugame
投稿日時 2017-01-29 23:27:10
言語 C++11
状態 Compile Error
得点 0
ソースコード長 1021 Byte
最大実行時間 -
最大メモリ使用量

コンパイルメッセージ

In file included from /usr/local/gcc-5.1.0/include/c++/5.1.0/bits/stl_algobase.h:71:0,
                 from /usr/local/gcc-5.1.0/include/c++/5.1.0/bits/char_traits.h:39,
                 from /usr/local/gcc-5.1.0/include/c++/5.1.0/ios:40,
                 from /usr/local/gcc-5.1.0/include/c++/5.1.0/ostream:38,
                 from /usr/local/gcc-5.1.0/include/c++/5.1.0/iostream:39,
                 from ./Main.cpp:1:
/usr/local/gcc-5.1.0/include/c++/5.1.0/bits/predefined_ops.h: In instantiation of ‘bool __gnu_cxx::__ops::_Iter_less_iter::operator()(_Iterator1, _Iterator2) const [with _Iterator1 = __gnu_cxx::__normal_iterator<edge*, std::vector<edge> >; _Iterator2 = __gnu_cxx::__normal_iterator<edge*, std::vector<edge> >]’:
/usr/local/gcc-5.1.0/include/c++/5.1.0/bits/stl_algo.h:1842:14:   required from ‘void std::__insertion_sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator<edge*, std::vector<edge> >; _Compare = __gnu_cxx::__ops::_Iter_less_iter]’
/usr/local/gcc-5.1.0/include/c++/5.1.0/bits/stl_algo.h:1880:25:   required from ‘void std::__final_insertion_sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator<edge*, std::vector<edge> >; _Compare = __gnu_cxx::__ops::_Iter_less_iter]’
/usr/local/gcc-5.1.0/include/c++/5.1.0/bits/stl_algo.h:1966:31:   required from ‘void std::__sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator<edge*, std::vector<edge> >; _Compare = __gnu_cxx::__ops::_Iter_less_iter]’
/usr/local/gcc-5.1.0/include/c++/5.1.0/bits/stl_algo.h:4698:18:   required from ‘void std::sort(_RAIter, _RAIter) [with _RAIter = __gnu_cxx::__normal_iterator<edge*, std::vector<edge> >]’
./Main.cpp:28:31:   required from here
/usr/local/gcc-5.1.0/include/c++/5.1.0/bits/predefined_ops.h:43:23: error: no match for ‘operator<’ (operand types are ‘edge’ and ‘edge’)
       { return *__it1 < *__it2; }
                       ^
In file included from /usr/local/gcc-5.1.0/include/c++/5.1.0/bits/stl_algobase.h:67:0,
                 from /usr/local/gcc-5.1.0/include/c++/5.1.0/bits/char_traits.h:39,
                 from /usr/local/gcc-5.1.0/include/c++/5.1.0/ios:40,
                 from /usr/local/gcc-5.1.0/include/c++/5.1.0/ostream:38,
                 from /usr/local/gcc-5.1.0/include/c++/5.1.0/iostream:39,
                 from ./Main.cpp:1:
/usr/local/gcc-5.1.0/include/c++/5.1.0/bits/stl_iterator.h:849:5: note: candidate: template<class _IteratorL, class _IteratorR, class _Container> bool __gnu_cxx::operator<(const __gnu_cxx::__normal_iterator<_IteratorL, _Container>&, const __gnu_cxx::__normal_iterator<_IteratorR, _Container>&)
     operator<(const __normal_iterator<_IteratorL, _Container>& __lhs,
     ^
/usr/local/gcc-5.1.0/include/c++/5.1.0/bits/stl_iterator.h:849:5: note:   template argument deduction/substitution failed:
In file included from /usr/local/gcc-5.1.0/include/c++/5.1.0/bits/stl_algobase.h:71:0,
                 from /usr/local/gcc-5.1.0/include/c++/5.1.0/bits/char_traits.h:39,
                 from /usr/local/gcc-5.1.0/include/c++/5.1.0/ios:40,
                 from /usr/local/gcc-5.1.0/include/c++/5.1.0/ostream:38,
                 from /usr/local/gcc-5.1.0/include/c++/5.1.0/iostream:39,
                 from ./Main.cpp:1:
/usr/local/gcc-5.1.0/include/c++/5.1.0/bits/predefined_ops.h:43:23: note:   ‘edge’ is not derived from ‘const __gnu_cxx::__normal_iterator<_IteratorL, _Container>’
       { return *__it1 < *__it2; }
                       ^
In file included from /usr/local/gcc-5.1.0/include/c++/5.1.0/bits/stl_algobase.h:67:0,
                 from /usr/local/gcc-5.1.0/include/c++/5.1.0/bits/char_traits.h:39,
                 from /usr/local/gcc-5.1.0/include/c++/5.1.0/ios:40,
                 from /usr/local/gcc-5.1.0/include/c++/5.1.0/ostream:38,
                 from /usr/local/gcc-5.1.0/include/c++/5.1.0/iostream:39,
                 from ./Main.cpp:1:
/usr/local/gcc-5.1.0/include/c++/5.1.0/bits/stl_iterator.h:856:5: note: candidate: template<class _Iterator, class _Container> bool __gnu_cxx::operator<(const __gnu_cxx::__normal_iterator<_Iterator, _Container>&, const __gnu_cxx::__normal_iterator<_Iterator, _Container>&)
     operator<(const __normal_iterator<_Iterator, _Container>& __lhs,
     ^
/usr/local/gcc-5.1.0/include/c++/5.1.0/bits/stl_iterator.h:856:5: note:   template argument deduction/substitution failed:
In file included from /usr/local/gcc-5.1.0/include/c++/5.1.0/bits/stl_algobase.h:71:0,
                 from /usr/local/gcc-5.1.0/include/c++/5.1.0/bits/char_traits.h:39,
                 from /usr/local/gcc-5.1.0/include/c++/5.1.0/ios:40,
                 from /usr/local/gcc-5.1.0/include/c++/5.1.0/ostream:38,
                 from /usr/local/gcc-5.1.0/include/c++/5.1.0/iostream:39,
                 from ./Main.cpp:1:
/usr/local/gcc-5.1.0/include/c++/5.1.0/bits/predefined_ops.h:43:23: note:   ‘edge’ is not derived from ‘const __gnu_cxx::__normal_iterator<_Iterator, _Container>’
       { return *__it1 < *__it2; }
                       ^
/usr/local/gcc-5.1.0/include/c++/5.1.0/bits/predefined_ops.h: In instantiation of ‘bool __gnu_cxx::__ops::_Val_less_iter::operator()(_Value&, _Iterator) const [with _Value = edge; _Iterator = __gnu_cxx::__normal_iterator<edge*, std::vector<edge> >]’:
/usr/local/gcc-5.1.0/include/c++/5.1.0/bits/stl_algo.h:1823:20:   required from ‘void std::__unguarded_linear_insert(_RandomAccessIterator, _Compare) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator<edge*, std::vector<edge> >; _Compare = __gnu_cxx::__ops::_Val_less_iter]’
/usr/local/gcc-5.1.0/include/c++/5.1.0/bits/stl_algo.h:1850:36:   required from ‘void std::__insertion_sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator<edge*, std::vector<edge> >; _Compare = __gnu_cxx::__ops::_Iter_less_iter]’
/usr/local/gcc-5.1.0/include/c++/5.1.0/bits/stl_algo.h:1880:25:   required from ‘void std::__final_insertion_sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator<edge*, std::vector<edge> >; _Compare = __gnu_cxx::__ops::_Iter_less_iter]’
/usr/local/gcc-5.1.0/include/c++/5.1.0/bits/stl_algo.h:1966:31:   required from ‘void std::__sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator<edge*, std::vector<edge> >; _Compare = __gnu_cxx::__ops::_Iter_less_iter]’
/usr/local/gcc-5.1.0/include/c++/5.1.0/bits/stl_algo.h:4698:18:   required from ‘void std::sort(_RAIter, _RAIter) [with _RAIter = __gnu_cxx::__normal_iterator<edge*, std::vector<edge> >]’
./Main.cpp:28:31:   required from here
/usr/local/gcc-5.1.0/include/c++/5.1.0/bits/predefined_ops.h:71:22: error: no match for ‘operator<’ (operand types are ‘edge’ and ‘edge’)
       { return __val < *__it; }
                      ^
In file included from /usr/local/gcc-5.1.0/include/c++/5.1.0/bits/stl_algobase.h:67:0,
                 from /usr/local/gcc-5.1.0/include/c++/5.1.0/bits/char_traits.h:39,
                 from /usr/local/gcc-5.1.0/include/c++/5.1.0/ios:40,
                 from /usr/local/gcc-5.1.0/include/c++/5.1.0/ostream:38,
                 from /usr/local/gcc-5.1.0/include/c++/5.1.0/iostream:39,
                 from ./Main.cpp:1:
/usr/local/gcc-5.1.0/include/c++/5.1.0/bits/stl_iterator.h:849:5: note: candidate: template<class _IteratorL, class _IteratorR, class _Container> bool __gnu_cxx::operator<(const __gnu_cxx::__normal_iterator<_IteratorL, _Container>&, const __gnu_cxx::__normal_iterator<_IteratorR, _Container>&)
     operator<(const __normal_iterator<_IteratorL, _Container>& __lhs,
     ^
/usr/local/gcc-5.1.0/include/c++/5.1.0/bits/stl_iterator.h:849:5: note:   template argument deduction/substitution failed:
In file included from /usr/local/gcc-5.1.0/include/c++/5.1.0/bits/stl_algobase.h:71:0,
                 from /usr/local/gcc-5.1.0/include/c++/5.1.0/bits/char_traits.h:39,
                 from /usr/local/gcc-5.1.0/include/c++/5.1.0/ios:40,
                 from /usr/local/gcc-5.1.0/include/c++/5.1.0/ostream:38,
                 from /usr/local/gcc-5.1.0/include/c++/5.1.0/iostream:39,
                 from ./Main.cpp:1:
/usr/local/gcc-5.1.0/include/c++/5.1.0/bits/predefined_ops.h:71:22: note:   ‘edge’ is not derived from ‘const __gnu_cxx::__normal_iterator<_IteratorL, _Container>’
       { return __val < *__it; }
                      ^
In file included from /usr/local/gcc-5.1.0/include/c++/5.1.0/bits/stl_algobase.h:67:0,
                 from /usr/local/gcc-5.1.0/include/c++/5.1.0/bits/char_traits.h:39,
                 from /usr/local/gcc-5.1.0/include/c++/5.1.0/ios:40,
                 from /usr/local/gcc-5.1.0/include/c++/5.1.0/ostream:38,
                 from /usr/local/gcc-5.1.0/include/c++/5.1.0/iostream:39,
                 from ./Main.cpp:1:
/usr/local/gcc-5.1.0/include/c++/5.1.0/bits/stl_iterator.h:856:5: note: candidate: template<class _Iterator, class _Container> bool __gnu_cxx::operator<(const __gnu_cxx::__normal_iterator<_Iterator, _Container>&, const __gnu_cxx::__normal_iterator<_Iterator, _Container>&)
     operator<(const __normal_iterator<_Iterator, _Container>& __lhs,
     ^
/usr/local/gcc-5.1.0/include/c++/5.1.0/bits/stl_iterator.h:856:5: note:   template argument deduction/substitution failed:
In file included from /usr/local/gcc-5.1.0/include/c++/5.1.0/bits/stl_algobase.h:71:0,
                 from /usr/local/gcc-5.1.0/include/c++/5.1.0/bits/char_traits.h:39,
                 from /usr/local/gcc-5.1.0/include/c++/5.1.0/ios:40,
                 from /usr/local/gcc-5.1.0/include/c++/5.1.0/ostream:38,
                 from /usr/local/gcc-5.1.0/include/c++/5.1.0/iostream:39,
                 from ./Main.cpp:1:
/usr/local/gcc-5.1.0/include/c++/5.1.0/bits/predefined_ops.h:71:22: note:   ‘edge’ is not derived from ‘const __gnu_cxx::__normal_iterator<_Iterator, _Container>’
       { return __val < *__it; }
                      ^
/usr/local/gcc-5.1.0/include/c++/5.1.0/bits/predefined_ops.h: In instantiation of ‘bool __gnu_cxx::__ops::_Iter_less_val::operator()(_Iterator, _Value&) const [with _Iterator = __gnu_cxx::__normal_iterator<edge*, std::vector<edge> >; _Value = edge]’:
/usr/local/gcc-5.1.0/include/c++/5.1.0/bits/stl_heap.h:129:48:   required from ‘void std::__push_heap(_RandomAccessIterator, _Distance, _Distance, _Tp, _Compare) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator<edge*, std::vector<edge> >; _Distance = long int; _Tp = edge; _Compare = __gnu_cxx::__ops::_Iter_less_val]’
/usr/local/gcc-5.1.0/include/c++/5.1.0/bits/stl_heap.h:228:23:   required from ‘void std::__adjust_heap(_RandomAccessIterator, _Distance, _Distance, _Tp, _Compare) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator<edge*, std::vector<edge> >; _Distance = long int; _Tp = edge; _Compare = __gnu_cxx::__ops::_Iter_less_iter]’
/usr/local/gcc-5.1.0/include/c++/5.1.0/bits/stl_heap.h:333:22:   required from ‘void std::__make_heap(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator<edge*, std::vector<edge> >; _Compare = __gnu_cxx::__ops::_Iter_less_iter]’
/usr/local/gcc-5.1.0/include/c++/5.1.0/bits/stl_algo.h:1669:23:   required from ‘void std::__heap_select(_RandomAccessIterator, _RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator<edge*, std::vector<edge> >; _Compare = __gnu_cxx::__ops::_Iter_less_iter]’
/usr/local/gcc-5.1.0/include/c++/5.1.0/bits/stl_algo.h:1928:25:   required from ‘void std::__partial_sort(_RandomAccessIterator, _RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator<edge*, std::vector<edge> >; _Compare = __gnu_cxx::__ops::_Iter_less_iter]’
/usr/local/gcc-5.1.0/include/c++/5.1.0/bits/stl_algo.h:1943:27:   required from ‘void std::__introsort_loop(_RandomAccessIterator, _RandomAccessIterator, _Size, _Compare) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator<edge*, std::vector<edge> >; _Size = long int; _Compare = __gnu_cxx::__ops::_Iter_less_iter]’
/usr/local/gcc-5.1.0/include/c++/5.1.0/bits/stl_algo.h:1963:25:   required from ‘void std::__sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator<edge*, std::vector<edge> >; _Compare = __gnu_cxx::__ops::_Iter_less_iter]’
/usr/local/gcc-5.1.0/include/c++/5.1.0/bits/stl_algo.h:4698:18:   required from ‘void std::sort(_RAIter, _RAIter) [with _RAIter = __gnu_cxx::__normal_iterator<edge*, std::vector<edge> >]’
./Main.cpp:28:31:   required from here
/usr/local/gcc-5.1.0/include/c++/5.1.0/bits/predefined_ops.h:55:22: error: no match for ‘operator<’ (operand types are ‘edge’ and ‘edge’)
       { return *__it < __val; }
                      ^
In file included from /usr/local/gcc-5.1.0/include/c++/5.1.0/bits/stl_algobase.h:67:0,
                 from /usr/local/gcc-5.1.0/include/c++/5.1.0/bits/char_traits.h:39,
                 from /usr/local/gcc-5.1.0/include/c++/5.1.0/ios:40,
                 from /usr/local/gcc-5.1.0/include/c++/5.1.0/ostream:38,
                 from /usr/local/gcc-5.1.0/include/c++/5.1.0/iostream:39,
                 from ./Main.cpp:1:
/usr/local/gcc-5.1.0/include/c++/5.1.0/bits/stl_iterator.h:849:5: note: candidate: template<class _IteratorL, class _IteratorR, class _Container> bool __gnu_cxx::operator<(const __gnu_cxx::__normal_iterator<_IteratorL, _Container>&, const __gnu_cxx::__normal_iterator<_IteratorR, _Container>&)
     operator<(const __normal_iterator<_IteratorL, _Container>& __lhs,
     ^
/usr/local/gcc-5.1.0/include/c++/5.1.0/bits/stl_iterator.h:849:5: note:   template argument deduction/substitution failed:
In file included from /usr/local/gcc-5.1.0/include/c++/5.1.0/bits/stl_algobase.h:71:0,
                 from /usr/local/gcc-5.1.0/include/c++/5.1.0/bits/char_traits.h:39,
                 from /usr/local/gcc-5.1.0/include/c++/5.1.0/ios:40,
                 from /usr/local/gcc-5.1.0/include/c++/5.1.0/ostream:38,
                 from /usr/local/gcc-5.1.0/include/c++/5.1.0/iostream:39,
                 from ./Main.cpp:1:
/usr/local/gcc-5.1.0/include/c++/5.1.0/bits/predefined_ops.h:55:22: note:   ‘edge’ is not derived from ‘const __gnu_cxx::__normal_iterator<_IteratorL, _Container>’
       { return *__it < __val; }
                      ^
In file included from /usr/local/gcc-5.1.0/include/c++/5.1.0/bits/stl_algobase.h:67:0,
                 from /usr/local/gcc-5.1.0/include/c++/5.1.0/bits/char_traits.h:39,
                 from /usr/local/gcc-5.1.0/include/c++/5.1.0/ios:40,
                 from /usr/local/gcc-5.1.0/include/c++/5.1.0/ostream:38,
                 from /usr/local/gcc-5.1.0/include/c++/5.1.0/iostream:39,
                 from ./Main.cpp:1:
/usr/local/gcc-5.1.0/include/c++/5.1.0/bits/stl_iterator.h:856:5: note: candidate: template<class _Iterator, class _Container> bool __gnu_cxx::operator<(const __gnu_cxx::__normal_iterator<_Iterator, _Container>&, const __gnu_cxx::__normal_iterator<_Iterator, _Container>&)
     operator<(const __normal_iterator<_Iterator, _Container>& __lhs,
     ^
/usr/local/gcc-5.1.0/include/c++/5.1.0/bits/stl_iterator.h:856:5: note:   template argument deduction/substitution failed:
In file included from /usr/local/gcc-5.1.0/include/c++/5.1.0/bits/stl_algobase.h:71:0,
                 from /usr/local/gcc-5.1.0/include/c++/5.1.0/bits/char_traits.h:39,
                 from /usr/local/gcc-5.1.0/include/c++/5.1.0/ios:40,
                 from /usr/local/gcc-5.1.0/include/c++/5.1.0/ostream:38,
                 from /usr/local/gcc-5.1.0/include/c++/5.1.0/iostream:39,
                 from ./Main.cpp:1:
/usr/local/gcc-5.1.0/include/c++/5.1.0/bits/predefined_ops.h:55:22: note:   ‘edge’ is not derived from ‘const __gnu_cxx::__normal_iterator<_Iterator, _Container>’
       { return *__it < __val; }
                      ^

セット

セット 得点 Cases

テストケース

ファイル名 状態 実行時間 メモリ使用量 #