QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#463486#2438. Minimum Spanning TreesInfiniteStarlightCompile Error//C++231.7kb2024-07-04 21:46:352024-07-04 21:46:38

詳細信息

answer.code: In function ‘int Main()’:
answer.code:57:50: warning: ISO C++17 does not allow ‘register’ storage class specifier [-Wregister]
   57 |                                 for(register int a=0;a<=i*(j-1);a++)
      |                                                  ^
answer.code:58:58: warning: ISO C++17 does not allow ‘register’ storage class specifier [-Wregister]
   58 |                                         for(register int b=0;b<=i*(x-j-1);b++)
      |                                                          ^
answer.code: In function ‘int main()’:
answer.code:80:4: error: no match for ‘operator>’ (operand types are ‘std::istream’ {aka ‘std::basic_istream<char>’} and ‘int’)
   80 | cin>t;
      | ~~~^~
      | |   |
      | |   int
      | std::istream {aka std::basic_istream<char>}
In file included from /usr/include/c++/13/regex:68,
                 from /usr/include/x86_64-linux-gnu/c++/13/bits/stdc++.h:181,
                 from answer.code:1:
/usr/include/c++/13/bits/regex.h:1288:5: note: candidate: ‘template<class _Bi_iter, class _Ch_traits, class _Alloc> auto std::__cxx11::operator<=>(const sub_match<_BiIter>&, __sub_match_string<_Bi_iter, _Ch_traits, _Ch_alloc>&)’ (reversed)
 1288 |     operator<=>(const sub_match<_Bi_iter>& __lhs,
      |     ^~~~~~~~
/usr/include/c++/13/bits/regex.h:1288:5: note:   template argument deduction/substitution failed:
answer.code:80:5: note:   mismatched types ‘const std::__cxx11::sub_match<_BiIter>’ and ‘int’
   80 | cin>t;
      |     ^
/usr/include/c++/13/bits/regex.h:1456:5: note: candidate: ‘template<class _Bi_iter> auto std::__cxx11::operator<=>(const sub_match<_BiIter>&, const typename std::iterator_traits<_Iter>::value_type*)’ (reversed)
 1456 |     operator<=>(const sub_match<_Bi_iter>& __lhs,
      |     ^~~~~~~~
/usr/include/c++/13/bits/regex.h:1456:5: note:   template argument deduction/substitution failed:
answer.code:80:5: note:   mismatched types ‘const std::__cxx11::sub_match<_BiIter>’ and ‘int’
   80 | cin>t;
      |     ^
/usr/include/c++/13/bits/regex.h:1629:5: note: candidate: ‘template<class _Bi_iter> auto std::__cxx11::operator<=>(const sub_match<_BiIter>&, const typename std::iterator_traits<_Iter>::value_type&)’ (reversed)
 1629 |     operator<=>(const sub_match<_Bi_iter>& __lhs,
      |     ^~~~~~~~
/usr/include/c++/13/bits/regex.h:1629:5: note:   template argument deduction/substitution failed:
answer.code:80:5: note:   mismatched types ‘const std::__cxx11::sub_match<_BiIter>’ and ‘int’
   80 | cin>t;
      |     ^
In file included from /usr/include/c++/13/bits/stl_algobase.h:67,
                 from /usr/include/c++/13/algorithm:60,
                 from /usr/include/x86_64-linux-gnu/c++/13/bits/stdc++.h:51:
/usr/include/c++/13/bits/stl_iterator.h:583:5: note: candidate: ‘template<class _IteratorL, class _IteratorR>  requires  three_way_comparable_with<_IteratorR, _IteratorL, std::partial_ordering> constexpr std::compare_three_way_result_t<_IteratorL, _IteratorR> std::operator<=>(const reverse_iterator<_IteratorL>&, const reverse_iterator<_IteratorR>&)’ (reversed)
  583 |     operator<=>(const reverse_iterator<_IteratorL>& __x,
      |     ^~~~~~~~
/usr/include/c++/13/bits/stl_iterator.h:583:5: note:   template argument deduction/substitution failed:
answer.code:80:5: note:   mismatched types ‘const std::reverse_iterator<_IteratorL>’ and ‘int’
   80 | cin>t;
      |     ^
/usr/include/c++/13/bits/stl_iterator.h:1690:5: note: candidate: ‘template<class _IteratorL, class _IteratorR>  requires  three_way_comparable_with<_IteratorR, _IteratorL, std::partial_ordering> constexpr std::compare_three_way_result_t<_IteratorL, _IteratorR> std::operator<=>(const move_iterator<_IteratorL>&, const move_iterator<_IteratorR>&)’ (reversed)
 1690 |     operator<=>(const move_iterator<_IteratorL>& __x,
      |     ^~~~~~~~
/usr/include/c++/13/bits/stl_iterator.h:1690:5: note:   template argument deduction/substitution failed:
answer.code:80:5: note:   mismatched types ‘const std::move_iterator<_IteratorL>’ and ‘int’
   80 | cin>t;
      |     ^
In file included from /usr/include/c++/13/bits/ranges_algo.h:36,
                 from /usr/include/c++/13/algorithm:63:
/usr/include/c++/13/optional:1273:5: note: candidate: ‘template<class _Tp, class _Up>  requires  three_way_comparable_with<_Up, _Tp, std::partial_ordering> constexpr std::compare_three_way_result_t<_IteratorL, _IteratorR> std::operator<=>(const optional<_Tp>&, const optional<_Up>&)’ (reversed)
 1273 |     operator<=>(const optional<_Tp>& __x, const optional<_Up>& __y)
      |     ^~~~~~~~
/usr/include/c++/13/optional:1273:5: note:   template argument deduction/substitution failed:
answer.code:80:5: note:   mismatched types ‘const std::optional<_Tp>’ and ‘int’
   80 | cin>t;
      |     ^
/usr/include/c++/13/optional:1288:5: note: candidate: ‘template<class _Tp> constexpr std::strong_ordering std::operator<=>(const optional<_Tp>&, nullopt_t)’ (reversed)
 1288 |     operator<=>(const optio...