QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#667937#7691. B Road BandZhaoZiLongCompile Error//C++231.5kb2024-10-23 09:56:082024-10-23 09:56:10

詳細信息

answer.code: In function ‘void solve()’:
answer.code:12:29: error: no match for ‘operator>>’ (operand types are ‘std::basic_istream<char>::__istream_type’ {aka ‘std::basic_istream<char>’} and ‘__float128’)
   12 |   __float128 s; cin>>m>>n>>k>>s;
      |                 ~~~~~~~~~~~~^~~
      |                          |    |
      |                          |    __float128
      |                          std::basic_istream<char>::__istream_type {aka std::basic_istream<char>}
In file included from /usr/include/c++/13/sstream:40,
                 from /usr/include/c++/13/complex:45,
                 from /usr/include/c++/13/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/13/bits/stdc++.h:127,
                 from answer.code:1:
/usr/include/c++/13/istream:293:7: note: candidate: ‘std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(__gnu_cxx::__bfloat16_t&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>; __gnu_cxx::__bfloat16_t = __bf16]’ (near match)
  293 |       operator>>(__gnu_cxx::__bfloat16_t & __f)
      |       ^~~~~~~~
/usr/include/c++/13/istream:293:7: note:   conversion of argument 1 would be ill-formed:
answer.code:12:31: warning: converting to ‘__gnu_cxx::__bfloat16_t’ {aka ‘__bf16’} from ‘__float128’ with greater conversion rank
   12 |   __float128 s; cin>>m>>n>>k>>s;
      |                               ^
answer.code:12:31: error: cannot bind rvalue ‘(__gnu_cxx::__bfloat16_t)s’ to ‘__gnu_cxx::__bfloat16_t&’ {aka ‘__bf16&’}
/usr/include/c++/13/istream:269:7: note: candidate: ‘std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(_Float64&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]’ (near match)
  269 |       operator>>(_Float64& __f)
      |       ^~~~~~~~
/usr/include/c++/13/istream:269:7: note:   conversion of argument 1 would be ill-formed:
answer.code:12:31: warning: converting to ‘_Float64’ from ‘__float128’ with greater conversion rank
   12 |   __float128 s; cin>>m>>n>>k>>s;
      |                               ^
answer.code:12:31: error: cannot bind rvalue ‘(_Float64)s’ to ‘_Float64&’
/usr/include/c++/13/istream:257:7: note: candidate: ‘std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(_Float32&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]’ (near match)
  257 |       operator>>(_Float32& __f)
      |       ^~~~~~~~
/usr/include/c++/13/istream:257:7: note:   conversion of argument 1 would be ill-formed:
answer.code:12:31: warning: converting to ‘_Float32’ from ‘__float128’ with greater conversion rank
   12 |   __float128 s; cin>>m>>n>>k>>s;
      |                               ^
answer.code:12:31: error: cannot bind rvalue ‘(_Float32)s’ to ‘_Float32&’
/usr/include/c++/13/istream:231:7: note: candidate: ‘std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(_Float16&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]’ (near match)
  231 |       operator>>(_Float16& __f)
      |       ^~~~~~~~
/usr/include/c++/13/istream:231:7: note:   conversion of argument 1 would be ill-formed:
answer.code:12:31: warning: converting to ‘_Float16’ from ‘__float128’ with greater conversion rank
   12 |   __float128 s; cin>>m>>n>>k>>s;
      |                               ^
answer.code:12:31: error: cannot bind rvalue ‘(_Float16)s’ to ‘_Float16&’
/usr/include/c++/13/istream:224:7: note: candidate: ‘std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(long double&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]’ (near match)
  224 |       operator>>(long double& __f)
      |       ^~~~~~~~
/usr/include/c++/13/istream:224:7: note:   conversion of argument 1 would be ill-formed:
answer.code:12:31: error: cannot bind non-const lvalue reference of type ‘long double&’ to a value of type ‘__float128’
   12 |   __float128 s; cin>>m>>n>>k>>s;
      |                               ^
/usr/include/c++/13/istream:220:7: note: candidate: ‘std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(double&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]’ (near match)
  220 |       operator>>(double& __f)
      |       ^~~~~~~~
/usr/include/c++/13/istream:220:7: note:   conversion of argument 1 would be ill-formed:
answer.code:12:31: error: cannot bind non-const lvalue reference of type ‘double&’ to a value of type ‘__float128’
   12 |   __float128 s; cin>>m>>n>>k>>s;
      |                               ^
/usr/include/c++/13/istream:216:7: note: candidate: ‘std::basic_istream<_CharT, _Traits>::__istream_type& s...