/ Vijos /

记录详情

Compile Error

foo.cc: In function ‘int main()’:
foo.cc:11:28: error: no match for ‘operator>>’ (operand types are ‘std::istream’ {aka ‘std::basic_istream<char>’} and ‘long long int [88]’)
   11 |                         cin>>a[i];
      |                         ~~~^~~~~~
      |                         |       |
      |                         |       long long int [88]
      |                         std::istream {aka std::basic_istream<char>}
In file included from /nix/gcc-13.3.0/include/c++/13.3.0/sstream:40,
                 from /nix/gcc-13.3.0/include/c++/13.3.0/complex:45,
                 from /nix/gcc-13.3.0/include/c++/13.3.0/ccomplex:39,
                 from stdc++.h:127:
/nix/gcc-13.3.0/include/c++/13.3.0/istream:325:7: note: candidate: ‘std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(void*&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]’ (near match)
  325 |       operator>>(void*& __p)
      |       ^~~~~~~~
/nix/gcc-13.3.0/include/c++/13.3.0/istream:325:7: note:   conversion of argument 1 would be ill-formed:
foo.cc:11:33: error: cannot bind non-const lvalue reference of type ‘void*&’ to an rvalue of type ‘void*’
   11 |                         cin>>a[i];
      |                              ~~~^
/nix/gcc-13.3.0/include/c++/13.3.0/istream:201:7: note: candidate: ‘std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(long long unsigned int&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]’ (near match)
  201 |       operator>>(unsigned long long& __n)
      |       ^~~~~~~~
/nix/gcc-13.3.0/include/c++/13.3.0/istream:201:7: note:   conversion of argument 1 would be ill-formed:
foo.cc:11:33: error: invalid conversion from ‘long long int*’ to ‘long long unsigned int’ [-fpermissive]
   11 |                         cin>>a[i];
      |                              ~~~^
      |                                 |
      |                                 long long int*
foo.cc:11:33: error: cannot bind rvalue ‘(long long unsigned int)((long long int*)(& a[i]))’ to ‘long long unsigned int&’
/nix/gcc-13.3.0/include/c++/13.3.0/istream:197:7: note: candidate: ‘std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(long long int&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]’ (near match)
  197 |       operator>>(long long& __n)
      |       ^~~~~~~~
/nix/gcc-13.3.0/include/c++/13.3.0/istream:197:7: note:   conversion of argument 1 would be ill-formed:
foo.cc:11:33: error: invalid conversion from ‘long long int*’ to ‘long long int’ [-fpermissive]
   11 |                         cin>>a[i];
      |                              ~~~^
      |                                 |
      |                                 long long int*
foo.cc:11:33: error: cannot bind rvalue ‘(long long int)((long long int*)(& a[i]))’ to ‘long long int&’
/nix/gcc-13.3.0/include/c++/13.3.0/istream:192:7: note: candidate: ‘std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(long unsigned int&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]’ (near match)
  192 |       operator>>(unsigned long& __n)
      |       ^~~~~~~~
/nix/gcc-13.3.0/include/c++/13.3.0/istream:192:7: note:   conversion of argument 1 would be ill-formed:
foo.cc:11:33: error: invalid conversion from ‘long long int*’ to ‘long unsigned int’ [-fpermissive]
   11 |                         cin>>a[i];
      |                              ~~~^
      |                                 |
      |                                 long long int*
foo.cc:11:33: error: cannot bind rvalue ‘(long unsigned int)((long long int*)(& a[i]))’ to ‘long unsigned int&’
/nix/gcc-13.3.0/include/c++/13.3.0/istream:188:7: note: candidate: ‘std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(long int&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]’ (near match)
  188 |       operator>>(long& __n)
      |       ^~~~~~~~
/nix/gcc-13.3.0/include/c++/13.3.0/istream:188:7: note:   conversion of argument 1 would be ill-formed:
foo.cc:11:33: error: invalid conversion from ‘long long int*’ to ‘long int’ [-fpermissive]
   11 |                         cin>>a[i];
      |                              ~~~^
      |                                 |
      |                                 long long int*
foo.cc:11:33: error: cannot bind rvalue ‘(long int)((long long int*)(& a[i]))’ to ‘long int&’
/nix/gcc-13.3.0/include/c++/13.3.0/istream:184:7: note: candidate: ‘std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(unsigned int&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]’ (near match)
  184 |       operator>>(unsigned int& __n)
      |       ^~~~~~~~
/nix/gcc-13.3.0/include/c++/13.3.0/istream:184:7: note:   conversion of argument 1 would be ill-formed:
foo.cc:11:33: error: invalid conversion from ‘long long int*’ to ‘unsigned int’ [-fpermissive]
   11 |                         cin>>a[i];
      |                              ~~~^
      |                                 |
      |                                 long long int*
foo.cc:11:33: error: cannot bind rvalue ‘(unsigned int)((long long int*)(& a[i]))’ to ‘unsigned int&’
/nix/gcc-13.3.0/include/c++/13.3.0/istream:181:7: note: candidate: ‘std::basic_istream<_CharT, _Traits>& std::basic_istream<_CharT, _Traits>::operator>>(int&) [with _CharT = char; _Traits = std::char_traits<char>]’ (near match)
  181 |       operator>>(int& __n);
      |       ^~~~~~~~
/nix/gcc-13.3.0/include/c++/13.3.0/istream:181:7: note:   conversion of argument 1 would be ill-formed:
foo.cc:11:33: error: invalid conversion from ‘long long int*’ to ‘int’ [-fpermissive]
   11 |                         cin>>a[i];
      |                              ~~~^
      |                                 |
      |                                 long long int*
foo.cc:11:33: error: cannot bind rvalue ‘(int)((long long int*)(& a[i]))’ to ‘int&’
/nix/gcc-13.3.0/include/c++/13.3.0/istream:177:7: note: candidate: ‘std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(short unsigned int&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]’ (near match)
  177 |       operator>>(unsigned short& __n)
      |       ^~~~~~~~
/nix/gcc-13.3.0/include/c++/13.3.0/istream:177:7: note:   conversion of argument 1 would be ill-formed:
foo.cc:11:33: error: invalid conversion from ‘long long int*’ to ‘short unsigned int’ [-fpermissive]
   11 |                         cin>>a[i];
      |                              ~~~^
      |                                 |
      |                                 long long int*
foo.cc:11:33: error: cannot bind rvalue ‘(short unsigned int)((long long int*)(& a[i]))’ to ‘short unsigned int&’
/nix/gcc-13.3.0/include/c++/13.3.0/istream:174:7: note: candidate: ‘std::basic_istream<_CharT, _Traits>& std::basic_istream<_CharT, _Traits>::operator>>(short int&) [with _CharT = char; _Traits = std::char_traits<char>]’ (near match)
  174 |       operator>>(short& __n);
      |       ^~~~~~~~
/nix/gcc-13.3.0/include/c++/13.3.0/istream:174:7: note:   conversion of argument 1 would be ill-formed:
foo.cc:11:33: error: invalid conversion from ‘long long int*’ to ‘short int’ [-fpermissive]
   11 |                         cin>>a[i];
      |                              ~~~^
      |                                 |
      |                                 long long int*
foo.cc:11:33: error: cannot bind rvalue ‘(short int)((long long int*)(& a[i]))’ to ‘short int&’
/nix/gcc-13.3.0/include/c++/13.3.0/istream:170:7: note: candidate: ‘std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(bool&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]’ (near match)
  170 |       operator>>(bool& __n)
      |       ^~~~~~~~
/nix/gcc-13.3.0/include/c++/13.3.0/istream:170:7: note:   conversion of argument 1 would be ill-formed:
foo.cc:11:33: warning: the address of ‘a’ will never be NULL [-Waddress]
   11 |                         cin>>a[i];
      |                              ~~~^
foo.cc:5:5: note: ‘a’ declared here
    5 | int a[88][88];
      |     ^
foo.cc:11:33: error: cannot bind non-const lvalue reference of type ‘bool&’ to a value of type ‘long long int*’
   11 |                         cin>>a[i];
      |                              ~~~^
/nix/gcc-13.3.0/include/c++/13.3.0/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>]’
  224 |       operator>>(long double& __f)
      |       ^~~~~~~~
/nix/gcc-13.3.0/include/c++/13.3.0/istream:224:31: note:   no known conversion for argument 1 from ‘long long int [88]’ to ‘long double&’
  224 |       operator>>(long double& __f)
      |                  ~~~~~~~~~~~~~^~~
/nix/gcc-13.3.0/include/c++/13.3.0/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>]’
  220 |       operator>>(double& __f)
      |       ^~~~~~~~
/nix/gcc-13.3.0/include/c++/13.3.0/istream:220:26: note:   no known conversion for argument 1 from ‘long long int [88]’ to ‘double&’
  220 |       operator>>(double& __f)
      |                  ~~~~~~~~^~~
/nix/gcc-13.3.0/include/c++/13.3.0/istream:216:7: note: candidate: ‘std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(float&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]’
  216 |       operator>>(float& __f)
      |       ^~~~~~~~
/nix/gcc-13.3.0/include/c++/13.3.0/istream:216:25: note:   no known conversion for argument 1 from ‘long long int [88]’ to ‘float&’
  216 |       operator>>(float& __f)
      |                  ~~~~~~~^~~
/nix/gcc-13.3.0/include/c++/13.3.0/istream:122:7: note: candidate: ‘std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(__istream_type& (*)(__istream_type&)) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]’
  122 |       operator>>(__istream_type& (*__pf)(__istream_type&))
      |       ^~~~~~~~
/nix/gcc-13.3.0/include/c++/13.3.0/istream:122:36: note:   no known conversion for argument 1 from ‘long long int [88]’ to ‘std::basic_istream<char>::__istream_type& (*)(std::basic_istream<char>::__istream_type&)’ {aka ‘std::basic_istream<char>& (*)(std::basic_istream<char>&)’}
  122 |       operator>>(__istream_type& (*__pf)(__istream_type&))
      |                  ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~
/nix/gcc-13.3.0/include/c++/13.3.0/istream:126:7: note: candidate: ‘std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(__ios_type& (*)(__ios_type&)) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>; __ios_type = std::basic_ios<char>]’
  126 |       operator>>(__ios_type& (*__pf)(__ios_type&))
      |       ^~~~~~~~
/nix/gcc-13.3.0/include/c++/13.3.0/istream:126:32: note:   no known conversion for argument 1 from ‘long long int [88]’ to ‘std::basic_istream<char>::__ios_type& (*)(std::basic_istream<char>::__ios_type&)’ {aka ‘std::basic_ios<char>& (*)(std::basic_ios<char>&)’}
  126 |       operator>>(__ios_type& (*__pf)(__ios_type&))
      |                  ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~
/nix/gcc-13.3.0/include/c++/13.3.0/istream:133:7: note: candidate: ‘std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(std::ios_base& (*)(std::ios_base&)) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]’
  133 |       operator>>(ios_base& (*__pf)(ios_base&))
      |       ^~~~~~~~
/nix/gcc-13.3.0/include/c++/13.3.0/istream:133:30: note:   no known conversion for argument 1 from ‘long long int [88]’ to ‘std::ios_base& (*)(std::ios_base&)’
  133 |       operator>>(ios_base& (*__pf)(ios_base&))
      |                  ~~~~~~~~~~~~^~~~~~~~~~~~~~~~
/nix/gcc-13.3.0/include/c++/13.3.0/istream:349:7: note: candidate: ‘std::basic_istream<_CharT, _Traits>& std::basic_istream<_CharT, _Traits>::operator>>(__streambuf_type*) [with _CharT = char; _Traits = std::char_traits<char>; __streambuf_type = std::basic_streambuf<char>]’
  349 |       operator>>(__streambuf_type* __sb);
      |       ^~~~~~~~
/nix/gcc-13.3.0/include/c++/13.3.0/istream:349:36: note:   no known conversion for argument 1 from ‘long long int [88]’ to ‘std::basic_istream<char>::__streambuf_type*’ {aka ‘std::basic_streambuf<char>*’}
  349 |       operator>>(__streambuf_type* __sb);
      |                  ~~~~~~~~~~~~~~~~~~^~~~
In file included from /nix/gcc-13.3.0/include/c++/13.3.0/string:55,
                 from /nix/gcc-13.3.0/include/c++/13.3.0/bitset:52,
                 from stdc++.h:52:
/nix/gcc-13.3.0/include/c++/13.3.0/bits/basic_string.tcc:827:5: note: candidate: ‘template<class _CharT, class _Traits, class _Alloc> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, __cxx11::basic_string<_CharT, _Traits, _Alloc>&)’
  827 |     operator>>(basic_istream<_CharT, _Traits>& __in,
      |     ^~~~~~~~
/nix/gcc-13.3.0/include/c++/13.3.0/bits/basic_string.tcc:827:5: note:   template argument deduction/substitution failed:
foo.cc:11:33: note:   mismatched types ‘std::__cxx11::basic_string<_CharT, _Traits, _Alloc>’ and ‘long long int [88]’
   11 |                         cin>>a[i];
      |                                 ^
/nix/gcc-13.3.0/include/c++/13.3.0/bitset:1593:5: note: candidate: ‘template<class _CharT, class _Traits, long unsigned int _Nb> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, bitset<_Nb>&)’
 1593 |     operator>>(std::basic_istream<_CharT, _Traits>& __is, bitset<_Nb>& __x)
      |     ^~~~~~~~
/nix/gcc-13.3.0/include/c++/13.3.0/bitset:1593:5: note:   template argument deduction/substitution failed:
foo.cc:11:33: note:   mismatched types ‘std::bitset<_Nb>’ and ‘long long int [88]’
   11 |                         cin>>a[i];
      |                                 ^
In file included from /nix/gcc-13.3.0/include/c++/13.3.0/istream:1106:
/nix/gcc-13.3.0/include/c++/13.3.0/bits/istream.tcc:975:5: note: candidate: ‘template<class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, _CharT&)’
  975 |     operator>>(basic_istream<_CharT, _Traits>& __in, _CharT& __c)
      |     ^~~~~~~~
/nix/gcc-13.3.0/include/c++/13.3.0/bits/istream.tcc:975:5: note:   template argument deduction/substitution failed:
foo.cc:11:33: note:   deduced conflicting types for parameter ‘_CharT’ (‘char’ and ‘long long int [88]’)
   11 |                         cin>>a[i];
      |                                 ^
/nix/gcc-13.3.0/include/c++/13.3.0/istream:846:5: note: candidate: ‘template<class _Traits> std::basic_istream<char, _Traits>& std::operator>>(basic_istream<char, _Traits>&, unsigned char&)’
  846 |     operator>>(basic_istream<char, _Traits>& __in, unsigned char& __c)
      |     ^~~~~~~~
/nix/gcc-13.3.0/include/c++/13.3.0/istream:846:5: note:   template argument deduction/substitution failed:
foo.cc:11:33: note:   cannot convert ‘a[i]’ (type ‘long long int [88]’) to type ‘unsigned char&’
   11 |                         cin>>a[i];
      |                              ~~~^
/nix/gcc-13.3.0/include/c++/13.3.0/istream:851:5: note: candidate: ‘template<class _Traits> std::basic_istream<char, _Traits>& std::operator>>(basic_istream<char, _Traits>&, signed char&)’
  851 |     operator>>(basic_istream<char, _Traits>& __in, signed char& __c)
      |     ^~~~~~~~
/nix/gcc-13.3.0/include/c++/13.3.0/istream:851:5: note:   template argument deduction/substitution failed:
foo.cc:11:33: note:   cannot convert ‘a[i]’ (type ‘long long int [88]’) to type ‘signed char&’
   11 |                         cin>>a[i];
      |                              ~~~^
/nix/gcc-13.3.0/include/c++/13.3.0/istream:893:5: note: candidate: ‘template<class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, _CharT*)’
  893 |     operator>>(basic_istream<_CharT, _Traits>& __in, _CharT* __s)
      |     ^~~~~~~~
/nix/gcc-13.3.0/include/c++/13.3.0/istream:893:5: note:   template argument deduction/substitution failed:
foo.cc:11:33: note:   deduced conflicting types for parameter ‘_CharT’ (‘char’ and ‘long long int’)
   11 |                         cin>>a[i];
      |                                 ^
/nix/gcc-13.3.0/include/c++/13.3.0/istream:936:5: note: candidate: ‘template<class _Traits> std::basic_istream<char, _Traits>& std::operator>>(basic_istream<char, _Traits>&, unsigned char*)’
  936 |     operator>>(basic_istream<char, _Traits>& __in, unsigned char* __s)
      |     ^~~~~~~~
/nix/gcc-13.3.0/include/c++/13.3.0/istream:936:5: note:   template argument deduction/substitution failed:
foo.cc:11:33: note:   cannot convert ‘a[i]’ (type ‘long long int [88]’) to type ‘unsigned char*’
   11 |                         cin>>a[i];
      |                              ~~~^
/nix/gcc-13.3.0/include/c++/13.3.0/istream:942:5: note: candidate: ‘template<class _Traits> std::basic_istream<char, _Traits>& std::operator>>(basic_istream<char, _Traits>&, signed char*)’
  942 |     operator>>(basic_istream<char, _Traits>& __in, signed char* __s)
      |     ^~~~~~~~
/nix/gcc-13.3.0/include/c++/13.3.0/istream:942:5: note:   template argument deduction/substitution failed:
foo.cc:11:33: note:   cannot convert ‘a[i]’ (type ‘long long int [88]’) to type ‘signed char*’
   11 |                         cin>>a[i];
      |                              ~~~^
/nix/gcc-13.3.0/include/c++/13.3.0/istream:1096:5: note: candidate: ‘template<class _Istream, class _Tp> _Istream&& std::operator>>(_Istream&&, _Tp&&)’
 1096 |     operator>>(_Istream&& __is, _Tp&& __x)
      |     ^~~~~~~~
/nix/gcc-13.3.0/include/c++/13.3.0/istream:1096:5: note:   template argument deduction/substitution failed:
/nix/gcc-13.3.0/include/c++/13.3.0/istream: In substitution of ‘template<class _Istream, class _Tp> _Istream&& std::operator>>(_Istream&&, _Tp&&) [with _Istream = std::basic_istream<char>&; _Tp = long long int (&)[88]]’:
foo.cc:11:12:   required from here
/nix/gcc-13.3.0/include/c++/13.3.0/istream:1096:5: error: no type named ‘type’ in ‘struct std::enable_if<false, void>’
/nix/gcc-13.3.0/include/c++/13.3.0/complex:504:5: note: candidate: ‘template<class _Tp, class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, complex<_Tp>&)’
  504 |     operator>>(basic_istream<_CharT, _Traits>& __is, complex<_Tp>& __x)
      |     ^~~~~~~~
/nix/gcc-13.3.0/include/c++/13.3.0/complex:504:5: note:   template argument deduction/substitution failed:
foo.cc:11:33: note:   mismatched types ‘std::complex<_Tp>’ and ‘long long int [88]’
   11 |                         cin>>a[i];
      |                                 ^
In file included from stdc++.h:143:
/nix/gcc-13.3.0/include/c++/13.3.0/iomanip:73:5: note: candidate: ‘template<class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, _Resetiosflags)’
   73 |     operator>>(basic_istream<_CharT, _Traits>& __is, _Resetiosflags __f)
      |     ^~~~~~~~
/nix/gcc-13.3.0/include/c++/13.3.0/iomanip:73:5: note:   template argument deduction/substitution failed:
foo.cc:11:33: note:   cannot convert ‘a[i]’ (type ‘long long int [88]’) to type ‘std::_Resetiosflags’
   11 |                         cin>>a[i];
      |                              ~~~^
/nix/gcc-13.3.0/include/c++/13.3.0/iomanip:103:5: note: candidate: ‘template<class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, _Setiosflags)’
  103 |     operator>>(basic_istream<_CharT, _Traits>& __is, _Setiosflags __f)
      |     ^~~~~~~~
/nix/gcc-13.3.0/include/c++/13.3.0/iomanip:103:5: note:   template argument deduction/substitution failed:
foo.cc:11:33: note:   cannot convert ‘a[i]’ (type ‘long long int [88]’) to type ‘std::_Setiosflags’
   11 |                         cin>>a[i];
      |                              ~~~^
/nix/gcc-13.3.0/include/c++/13.3.0/iomanip:134:5: note: candidate: ‘template<class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, _Setbase)’
  134 |     operator>>(basic_istream<_CharT, _Traits>& __is, _Setbase __f)
      |     ^~~~~~~~
/nix/gcc-13.3.0/include/c++/13.3.0/iomanip:134:5: note:   template argument deduction/substitution failed:
foo.cc:11:33: note:   cannot convert ‘a[i]’ (type ‘long long int [88]’) to type ‘std::_Setbase’
   11 |                         cin>>a[i];
      |                              ~~~^
/nix/gcc-13.3.0/include/c++/13.3.0/iomanip:172:5: note: candidate: ‘template<class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, _Setfill<_CharT>)’
  172 |     operator>>(basic_istream<_CharT, _Traits>& __is, _Setfill<_CharT> __f)
      |     ^~~~~~~~
/nix/gcc-13.3.0/include/c++/13.3.0/iomanip:172:5: note:   template argument deduction/substitution failed:
foo.cc:11:33: note:   mismatched types ‘std::_Setfill<_CharT>’ and ‘long long int*’
   11 |                         cin>>a[i];
      |                                 ^
/nix/gcc-13.3.0/include/c++/13.3.0/iomanip:202:5: note: candidate: ‘template<class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, _Setprecision)’
  202 |     operator>>(basic_istream<_CharT, _Traits>& __is, _Setprecision __f)
      |     ^~~~~~~~
/nix/gcc-13.3.0/include/c++/13.3.0/iomanip:202:5: note:   template argument deduction/substitution failed:
foo.cc:11:33: note:   cannot convert ‘a[i]’ (type ‘long long int [88]’) to type ‘std::_Setprecision’
   11 |                         cin>>a[i];
      |                              ~~~^
/nix/gcc-13.3.0/include/c++/13.3.0/iomanip:232:5: note: candidate: ‘template<class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, _Setw)’
  232 |     operator>>(basic_istream<_CharT, _Traits>& __is, _Setw __f)
      |     ^~~~~~~~
/nix/gcc-13.3.0/include/c++/13.3.0/iomanip:232:5: note:   template argument deduction/substitution failed:
foo.cc:11:33: note:   cannot convert ‘a[i]’ (type ‘long long int [88]’) to type ‘std::_Setw’
   11 |                         cin>>a[i];
      |                              ~~~^
/nix/gcc-13.3.0/include/c++/13.3.0/iomanip:266:5: note: candidate: ‘template<class _CharT, class _Traits, class _MoneyT> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, _Get_money<_MoneyT>)’
  266 |     operator>>(basic_istream<_CharT, _Traits>& __is, _Get_money<_MoneyT> __f)
      |     ^~~~~~~~
/nix/gcc-13.3.0/include/c++/13.3.0/iomanip:266:5: note:   template argument deduction/substitution failed:
foo.cc:11:33: note:   mismatched types ‘std::_Get_money<_MoneyT>’ and ‘long long int*’
   11 |                         cin>>a[i];
      |                                 ^
/nix/gcc-13.3.0/include/c++/13.3.0/iomanip:420:5: note: candidate: ‘template<class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, _Get_time<_CharT>)’
  420 |     operator>>(basic_istream<_CharT, _Traits>& __is, _Get_time<_CharT> __f)
      |     ^~~~~~~~
/nix/gcc-13.3.0/include/c++/13.3.0/iomanip:420:5: note:   template argument deduction/substitution failed:
foo.cc:11:33: note:   mismatched types ‘std::_Get_time<_CharT>’ and ‘long long int*’
   11 |                         cin>>a[i];
      |                                 ^
In file included from /nix/gcc-13.3.0/include/c++/13.3.0/valarray:605,
                 from stdc++.h:166:
/nix/gcc-13.3.0/include/c++/13.3.0/bits/valarray_after.h:414:5: note: candidate: ‘template<class _Dom1, class _Dom2> std::_Expr<std::__detail::_BinClos<std::__shift_right, std::_Expr, std::_Expr, _Dom1, _Dom2>, typename std::__fun<std::__shift_right, typename _Dom1::value_type>::result_type> std::operator>>(const _Expr<_Dom1, typename _Dom1::value_type>&, const _Expr<_Dom2, typename _Dom2::value_type>&)’
  414 |     _DEFINE_EXPR_BINARY_OPERATOR(>>, struct std::__shift_right)
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/nix/gcc-13.3.0/include/c++/13.3.0/bits/valarray_after.h:414:5: note:   template argument deduction/substitution failed:
foo.cc:11:33: note:   ‘std::istream’ {aka ‘std::basic_istream<char>’} is not derived from ‘const std::_Expr<_Dom1, typename _Dom1::value_type>’
   11 |                         cin>>a[i];
      |                                 ^
/nix/gcc-13.3.0/include/c++/13.3.0/bits/valarray_after.h:414:5: note: candidate: ‘template<class _Dom> std::_Expr<std::__detail::_BinClos<std::__shift_right, std::_Expr, std::_Constant, _Dom, typename _Dom::value_type>, typename std::__fun<std::__shift_right, typename _Dom1::value_type>::result_type> std::operator>>(const _Expr<_Dom1, typename _Dom1::value_type>&, const typename _Dom::value_type&)’
  414 |     _DEFINE_EXPR_BINARY_OPERATOR(>>, struct std::__shift_right)
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/nix/gcc-13.3.0/include/c++/13.3.0/bits/valarray_after.h:414:5: note:   template argument deduction/substitution failed:
foo.cc:11:33: note:   ‘std::istream’ {aka ‘std::basic_istream<char>’} is not derived from ‘const std::_Expr<_Dom1, typename _Dom1::value_type>’
   11 |                         cin>>a[i];
      |                                 ^
/nix/gcc-13.3.0/include/c++/13.3.0/bits/valarray_after.h:414:5: note: candidate: ‘template<class _Dom> std::_Expr<std::__detail::_BinClos<std::__shift_right, std::_Constant, std::_Expr, typename _Dom::value_type, _Dom>, typename std::__fun<std::__shift_right, typename _Dom1::value_type>::result_type> std::operator>>(const typename _Dom::value_type&, const _Expr<_Dom1, typename _Dom1::value_type>&)’
  414 |     _DEFINE_EXPR_BINARY_OPERATOR(>>, struct std::__shift_right)
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/nix/gcc-13.3.0/include/c++/13.3.0/bits/valarray_after.h:414:5: note:   template argument deduction/substitution failed:
foo.cc:11:33: note:   mismatched types ‘const std::_Expr<_Dom1, typename _Dom1::value_type>’ and ‘long long int [88]’
   11 |                         cin>>a[i];
      |                                 ^
/nix/gcc-13.3.0/include/c++/13.3.0/bits/valarray_after.h:414:5: note: candidate: ‘template<class _Dom> std::_Expr<std::__detail::_BinClos<std::__shift_right, std::_Expr, std::_ValArray, _Dom, typename _Dom::value_type>, typename std::__fun<std::__shift_right, typename _Dom1::value_type>::result_type> std::operator>>(const _Expr<_Dom1, typename _Dom1::value_type>&, const valarray<typename _Dom::value_type>&)’
  414 |     _DEFINE_EXPR_BINARY_OPERATOR(>>, struct std::__shift_right)
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/nix/gcc-13.3.0/include/c++/13.3.0/bits/valarray_after.h:414:5: note:   template argument deduction/substitution failed:
foo.cc:11:33: note:   ‘std::istream’ {aka ‘std::basic_istream<char>’} is not derived from ‘const std::_Expr<_Dom1, typename _Dom1::value_type>’
   11 |                         cin>>a[i];
      |                                 ^
/nix/gcc-13.3.0/include/c++/13.3.0/bits/valarray_after.h:414:5: note: candidate: ‘template<class _Dom> std::_Expr<std::__detail::_BinClos<std::__shift_right, std::_ValArray, std::_Expr, typename _Dom::value_type, _Dom>, typename std::__fun<std::__shift_right, typename _Dom1::value_type>::result_type> std::operator>>(const valarray<typename _Dom::value_type>&, const _Expr<_Dom1, typename _Dom1::value_type>&)’
  414 |     _DEFINE_EXPR_BINARY_OPERATOR(>>, struct std::__shift_right)
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/nix/gcc-13.3.0/include/c++/13.3.0/bits/valarray_after.h:414:5: note:   template argument deduction/substitution failed:
foo.cc:11:33: note:   mismatched types ‘const std::_Expr<_Dom1, typename _Dom1::value_type>’ and ‘long long int [88]’
   11 |                         cin>>a[i];
      |                                 ^
/nix/gcc-13.3.0/include/c++/13.3.0/valarray:1205:1: note: candidate: ‘template<class _Tp> std::_Expr<std::__detail::_BinClos<std::__shift_right, std::_ValArray, std::_ValArray, _Tp, _Tp>, typename std::__fun<std::__shift_right, _Tp>::result_type> std::operator>>(const valarray<_Tp>&, const valarray<_Tp>&)’
 1205 | _DEFINE_BINARY_OPERATOR(>>, __shift_right)
      | ^~~~~~~~~~~~~~~~~~~~~~~
/nix/gcc-13.3.0/include/c++/13.3.0/valarray:1205:1: note:   template argument deduction/substitution failed:
foo.cc:11:33: note:   ‘std::istream’ {aka ‘std::basic_istream<char>’} is not derived from ‘const std::valarray<_Tp>’
   11 |                         cin>>a[i];
      |                                 ^
/nix/gcc-13.3.0/include/c++/13.3.0/valarray:1205:1: note: candidate: ‘template<class _Tp> std::_Expr<std::__detail::_BinClos<std::__shift_right, std::_ValArray, std::_Constant, _Tp, _Tp>, typename std::__fun<std::__shift_right, _Tp>::result_type> std::operator>>(const valarray<_Tp>&, const typename valarray<_Tp>::value_type&)’
 1205 | _DEFINE_BINARY_OPERATOR(>>, __shift_right)
      | ^~~~~~~~~~~~~~~~~~~~~~~
/nix/gcc-13.3.0/include/c++/13.3.0/valarray:1205:1: note:   template argument deduction/substitution failed:
foo.cc:11:33: note:   ‘std::istream’ {aka ‘std::basic_istream<char>’} is not derived from ‘const std::valarray<_Tp>’
   11 |                         cin>>a[i];
      |                                 ^
/nix/gcc-13.3.0/include/c++/13.3.0/valarray:1205:1: note: candidate: ‘template<class _Tp> std::_Expr<std::__detail::_BinClos<std::__shift_right, std::_Constant, std::_ValArray, _Tp, _Tp>, typename std::__fun<std::__shift_right, _Tp>::result_type> std::operator>>(const typename valarray<_Tp>::value_type&, const valarray<_Tp>&)’
 1205 | _DEFINE_BINARY_OPERATOR(>>, __shift_right)
      | ^~~~~~~~~~~~~~~~~~~~~~~
/nix/gcc-13.3.0/include/c++/13.3.0/valarray:1205:1: note:   template argument deduction/substitution failed:
foo.cc:11:33: note:   mismatched types ‘const std::valarray<_Tp>’ and ‘long long int [88]’
   11 |                         cin>>a[i];
      |                                 ^
In file included from /nix/gcc-13.3.0/include/c++/13.3.0/random:53,
                 from stdc++.h:179:
/nix/gcc-13.3.0/include/c++/13.3.0/bits/random.tcc:930:5: note: candidate: ‘template<class _IntType, class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, uniform_int_distribution<_IntType>&)’
  930 |     operator>>(std::basic_istream<_CharT, _Traits>& __is,
      |     ^~~~~~~~
/nix/gcc-13.3.0/include/c++/13.3.0/bits/random.tcc:930:5: note:   template argument deduction/substitution failed:
foo.cc:11:33: note:   mismatched types ‘std::uniform_int_distribution<_IntType>’ and ‘long long int [88]’
   11 |                         cin>>a[i];
      |                                 ^
/nix/gcc-13.3.0/include/c++/13.3.0/bits/random.tcc:991:5: note: candidate: ‘template<class _RealType, class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, uniform_real_distribution<_IntType>&)’
  991 |     operator>>(std::basic_istream<_CharT, _Traits>& __is,
      |     ^~~~~~~~
/nix/gcc-13.3.0/include/c++/13.3.0/bits/random.tcc:991:5: note:   template argument deduction/substitution failed:
foo.cc:11:33: note:   mismatched types ‘std::uniform_real_distribution<_IntType>’ and ‘long long int [88]’
   11 |                         cin>>a[i];
      |                                 ^
/nix/gcc-13.3.0/include/c++/13.3.0/bits/random.tcc:2168:5: note: candidate: ‘template<class _RealType, class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, cauchy_distribution<_RealType>&)’
 2168 |     operator>>(std::basic_istream<_CharT, _Traits>& __is,
      |     ^~~~~~~~
/nix/gcc-13.3.0/include/c++/13.3.0/bits/random.tcc:2168:5: note:   template argument deduction/substitution failed:
foo.cc:11:33: note:   mismatched types ‘std::cauchy_distribution<_RealType>’ and ‘long long int [88]’
   11 |                         cin>>a[i];
      |                                 ^
In file included from /nix/gcc-13.3.0/include/c++/13.3.0/random:51:
/nix/gcc-13.3.0/include/c++/13.3.0/bits/random.h:3830:5: note: candidate: ‘template<class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, bernoulli_distribution&)’
 3830 |     operator>>(std::basic_istream<_CharT, _Traits>& __is,
      |     ^~~~~~~~
/nix/gcc-13.3.0/include/c++/13.3.0/bits/random.h:3830:5: note:   template argument deduction/substitution failed:
foo.cc:11:33: note:   cannot convert ‘a[i]’ (type ‘long long int [88]’) to type ‘std::bernoulli_distribution&’
   11 |                         cin>>a[i];
      |                              ~~~^
/nix/gcc-13.3.0/include/c++/13.3.0/bits/random.tcc:1133:5: note: candidate: ‘template<class _IntType, class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, geometric_distribution<_IntType>&)’
 1133 |     operator>>(std::basic_istream<_CharT, _Traits>& __is,
      |     ^~~~~~~~
/nix/gcc-13.3.0/include/c++/13.3.0/bits/random.tcc:1133:5: note:   template argument deduction/substitution failed:
foo.cc:11:33: note:   mismatched types ‘std::geometric_distribution<_IntType>’ and ‘long long int [88]’
   11 |                         cin>>a[i];
      |                                 ^
/nix/gcc-13.3.0/include/c++/13.3.0/bits/random.tcc:1784:5: note: candidate: ‘template<class _RealType, class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, exponential_distribution<_RealType>&)’
 1784 |     operator>>(std::basic_istream<_CharT, _Traits>& __is,
      |     ^~~~~~~~
/nix/gcc-13.3.0/include/c++/13.3.0/bits/random.tcc:1784:5: note:   template argument deduction/substitution failed:
foo.cc:11:33: note:   mismatched types ‘std::exponential_distribution<_RealType>’ and ‘long long int [88]’
   11 |                         cin>>a[i];
      |                                 ^
/nix/gcc-13.3.0/include/c++/13.3.0/bits/random.tcc:2562:5: note: candidate: ‘template<class _RealType, class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, weibull_distribution<_RealType>&)’
 2562 |     operator>>(std::basic_istream<_CharT, _Traits>& __is,
      |     ^~~~~~~~
/nix/gcc-13.3.0/include/c++/13.3.0/bits/random.tcc:2562:5: note:   template argument deduction/substitution failed:
foo.cc:11:33: note:   mismatched types ‘std::weibull_distribution<_RealType>’ and ‘long long int [88]’
   11 |                         cin>>a[i];
      |                                 ^
/nix/gcc-13.3.0/include/c++/13.3.0/bits/random.tcc:2636:5: note: candidate: ‘template<class _RealType, class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, extreme_value_distribution<_RealType>&)’
 2636 |     operator>>(std::basic_istream<_CharT, _Traits>& __is,
      |     ^~~~~~~~
/nix/gcc-13.3.0/include/c++/13.3.0/bits/random.tcc:2636:5: note:   template argument deduction/substitution failed:
foo.cc:11:33: note:   mismatched types ‘std::extreme_value_distribution<_RealType>’ and ‘long long int [88]’
   11 |                         cin>>a[i];
      |                                 ^
/nix/gcc-13.3.0/include/c++/13.3.0/bits/random.tcc:177:5: note: candidate: ‘template<class _UIntType, _UIntType __a, _UIntType __c, _UIntType __m, class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, linear_congruential_engine<_UIntType, __a, __c, __m>&)’
  177 |     operator>>(std::basic_istream<_CharT, _Traits>& __is,
      |     ^~~~~~~~
/nix/gcc-13.3.0/include/c++/13.3.0/bits/random.tcc:177:5: note:   template argument deduction/substitution failed:
foo.cc:11:33: note:   mismatched types ‘std::linear_congruential_engine<_UIntType, __a, __c, __m>’ and ‘long long int [88]’
   11 |                         cin>>a[i];
      |                                 ^
/nix/gcc-13.3.0/include/c++/13.3.0/bits/random.tcc:504:5: note: candidate: ‘template<class _UIntType1, long unsigned int __w1, long unsigned int __n1, long unsigned int __m1, long unsigned int __r1, _UIntType1 __a1, long unsigned int __u1, _UIntType1 __d1, long unsigned int __s1, _UIntType1 __b1, long unsigned int __t1, _UIntType1 __c1, long unsigned int __l1, _UIntType1 __f1, class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, mersenne_twister_engine<_UIntType, __w, __n, __m, __r, __a, __u, __d, __s, __b, __t, __c, __l, __f>&)’
  504 |     operator>>(std::basic_istream<_CharT, _Traits>& __is,
      |     ^~~~~~~~
/nix/gcc-13.3.0/include/c++/13.3.0/bits/random.tcc:504:5: note:   template argument deduction/substitution failed:
foo.cc:11:33: note:   mismatched types ‘std::mersenne_twister_engine<_UIntType, __w, __n, __m, __r, __a, __u, __d, __s, __b, __t, __c, __l, __f>’ and ‘long long int [88]’
   11 |                         cin>>a[i];
      |                                 ^
/nix/gcc-13.3.0/include/c++/13.3.0/bits/random.tcc:659:5: note: candidate: ‘template<class _UIntType, long unsigned int __w, long unsigned int __s, long unsigned int __r, class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, subtract_with_carry_engine<_UIntType, __w, __s, __r>&)’
  659 |     operator>>(std::basic_istream<_CharT, _Traits>& __is,
      |     ^~~~~~~~
/nix/gcc-13.3.0/include/c++/13.3.0/bits/random.tcc:659:5: note:   template argument deduction/substitution failed:
foo.cc:11:33: note:   mismatched types ‘std::subtract_with_carry_engine<_UIntType, __w, __s, __r>’ and ‘long long int [88]’
   11 |                         cin>>a[i];
      |                                 ^
/nix/gcc-13.3.0/include/c++/13.3.0/bits/random.tcc:726:5: note: candidate: ‘template<class _RandomNumberEngine, long unsigned int __p, long unsigned int __r, class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, discard_block_engine<_RandomNumberEngine, __p, __r>&)’
  726 |     operator>>(std::basic_istream<_CharT, _Traits>& __is,
      |     ^~~~~~~~
/nix/gcc-13.3.0/include/c++/13.3.0/bits/random.tcc:726:5: note:   template argument deduction/substitution failed:
foo.cc:11:33: note:   mismatched types ‘std::discard_block_engine<_RandomNumberEngine, __p, __r>’ and ‘long long int [88]’
   11 |                         cin>>a[i];
      |                                 ^
/nix/gcc-13.3.0/include/c++/13.3.0/bits/random.tcc:890:5: note: candidate: ‘template<class _RandomNumberEngine, long unsigned int __k, class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, shuffle_order_engine<_RandomNumberEngine, __k>&)’
  890 |     operator>>(std::basic_istream<_CharT, _Traits>& __is,
      |     ^~~~~~~~
/nix/gcc-13.3.0/include/c++/13.3.0/bits/random.tcc:890:5: note:   template argument deduction/substitution failed:
foo.cc:11:33: note:   mismatched types ‘std::shuffle_order_engine<_RandomNumberEngine, __k>’ and ‘long long int [88]’
   11 |                         cin>>a[i];
      |                                 ^
/nix/gcc-13.3.0/include/c++/13.3.0/bits/random.tcc:1248:5: note: candidate: ‘template<class _IntType, class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, negative_binomial_distribution<_IntType>&)’
 1248 |     operator>>(std::basic_istream<_CharT, _Traits>& __is,
      |     ^~~~~~~~
/nix/gcc-13.3.0/include/c++/13.3.0/bits/random.tcc:1248:5: note:   template argument deduction/substitution failed:
foo.cc:11:33: note:   mismatched types ‘std::negative_binomial_distribution<_IntType>’ and ‘long long int [88]’
   11 |                         cin>>a[i];
      |                                 ^
/nix/gcc-13.3.0/include/c++/13.3.0/bits/random.tcc:1458:5: note: candidate: ‘template<class _IntType, class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, poisson_distribution<_IntType>&)’
 1458 |     operator>>(std::basic_istream<_CharT, _Traits>& __is,
      |     ^~~~~~~~
/nix/gcc-13.3.0/include/c++/13.3.0/bits/random.tcc:1458:5: note:   template argument deduction/substitution failed:
foo.cc:11:33: note:   mismatched types ‘std::poisson_distribution<_IntType>’ and ‘long long int [88]’
   11 |                         cin>>a[i];
      |                                 ^
/nix/gcc-13.3.0/include/c++/13.3.0/bits/random.tcc:1725:5: note: candidate: ‘template<class _IntType, class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, binomial_distribution<_IntType>&)’
 1725 |     operator>>(std::basic_istream<_CharT, _Traits>& __is,
      |     ^~~~~~~~
/nix/gcc-13.3.0/include/c++/13.3.0/bits/random.tcc:1725:5: note:   template argument deduction/substitution failed:
foo.cc:11:33: note:   mismatched types ‘std::binomial_distribution<_IntType>’ and ‘long long int [88]’
   11 |                         cin>>a[i];
      |                                 ^
/nix/gcc-13.3.0/include/c++/13.3.0/bits/random.tcc:1946:5: note: candidate: ‘template<class _RealType1, class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, normal_distribution<_RealType>&)’
 1946 |     operator>>(std::basic_istream<_CharT, _Traits>& __is,
      |     ^~~~~~~~
/nix/gcc-13.3.0/include/c++/13.3.0/bits/random.tcc:1946:5: note:   template argument deduction/substitution failed:
foo.cc:11:33: note:   mismatched types ‘std::normal_distribution<_RealType>’ and ‘long long int [88]’
   11 |                         cin>>a[i];
      |                                 ^
/nix/gcc-13.3.0/include/c++/13.3.0/bits/random.tcc:2011:5: note: candidate: ‘template<class _RealType, class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, lognormal_distribution<_RealType>&)’
 2011 |     operator>>(std::basic_istream<_CharT, _Traits>& __is,
      |     ^~~~~~~~
/nix/gcc-13.3.0/include/c++/13.3.0/bits/random.tcc:2011:5: note:   template argument deduction/substitution failed:
foo.cc:11:33: note:   mismatched types ‘std::lognormal_distribution<_RealType>’ and ‘long long int [88]’
   11 |                         cin>>a[i];
      |                                 ^
/nix/gcc-13.3.0/include/c++/13.3.0/bits/random.tcc:2082:5: note: candidate: ‘template<class _RealType, class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, chi_squared_distribution<_RealType>&)’
 2082 |     operator>>(std::basic_istream<_CharT, _Traits>& __is,
      |     ^~~~~~~~
/nix/gcc-13.3.0/include/c++/13.3.0/bits/random.tcc:2082:5: note:   template argument deduction/substitution failed:
foo.cc:11:33: note:   mismatched types ‘std::chi_squared_distribution<_RealType>’ and ‘long long int [88]’
   11 |                         cin>>a[i];
      |                                 ^
/nix/gcc-13.3.0/include/c++/13.3.0/bits/random.tcc:2244:5: note: candidate: ‘template<class _RealType, class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, fisher_f_distribution<_RealType>&)’
 2244 |     operator>>(std::basic_istream<_CharT, _Traits>& __is,
      |     ^~~~~~~~
/nix/gcc-13.3.0/include/c++/13.3.0/bits/random.tcc:2244:5: note:   template argument deduction/substitution failed:
foo.cc:11:33: note:   mismatched types ‘std::fisher_f_distribution<_RealType>’ and ‘long long int [88]’
   11 |                         cin>>a[i];
      |                                 ^
/nix/gcc-13.3.0/include/c++/13.3.0/bits/random.tcc:2317:5: note: candidate: ‘template<class _RealType, class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, student_t_distribution<_RealType>&)’
 2317 |     operator>>(std::basic_istream<_CharT, _Traits>& __is,
      |     ^~~~~~~~
/nix/gcc-13.3.0/include/c++/13.3.0/bits/random.tcc:2317:5: note:   template argument deduction/substitution failed:
foo.cc:11:33: note:   mismatched types ‘std::student_t_distribution<_RealType>’ and ‘long long int [88]’
   11 |                         cin>>a[i];
      |                                 ^
/nix/gcc-13.3.0/include/c++/13.3.0/bits/random.tcc:2487:5: note: candidate: ‘template<class _RealType1, class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, gamma_distribution<_RealType>&)’
 2487 |     operator>>(std::basic_istream<_CharT, _Traits>& __is,
      |     ^~~~~~~~
/nix/gcc-13.3.0/include/c++/13.3.0/bits/random.tcc:2487:5: note:   template argument deduction/substitution failed:
foo.cc:11:33: note:   mismatched types ‘std::gamma_distribution<_RealType>’ and ‘long long int [88]’
   11 |                         cin>>a[i];
      |                                 ^
/nix/gcc-13.3.0/include/c++/13.3.0/bits/random.tcc:2795:5: note: candidate: ‘template<class _IntType, class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, discrete_distribution<_IntType>&)’
 2795 |     operator>>(std::basic_istream<_CharT, _Traits>& __is,
      |     ^~~~~~~~
/nix/gcc-13.3.0/include/c++/13.3.0/bits/random.tcc:2795:5: note:   template argument deduction/substitution failed:
foo.cc:11:33: note:   mismatched types ‘std::discrete_distribution<_IntType>’ and ‘long long int [88]’
   11 |                         cin>>a[i];
      |                                 ^
/nix/gcc-13.3.0/include/c++/13.3.0/bits/random.tcc:3002:5: note: candidate: ‘template<class _RealType, class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, piecewise_constant_distribution<_RealType>&)’
 3002 |     operator>>(std::basic_istream<_CharT, _Traits>& __is,
      |     ^~~~~~~~
/nix/gcc-13.3.0/include/c++/13.3.0/bits/random.tcc:3002:5: note:   template argument deduction/substitution failed:
foo.cc:11:33: note:   mismatched types ‘std::piecewise_constant_distribution<_RealType>’ and ‘long long int [88]’
   11 |                         cin>>a[i];
      |                                 ^
/nix/gcc-13.3.0/include/c++/13.3.0/bits/random.tcc:3208:5: note: candidate: ‘template<class _RealType, class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, piecewise_linear_distribution<_RealType>&)’
 3208 |     operator>>(std::basic_istream<_CharT, _Traits>& __is,
      |     ^~~~~~~~
/nix/gcc-13.3.0/include/c++/13.3.0/bits/random.tcc:3208:5: note:   template argument deduction/substitution failed:
foo.cc:11:33: note:   mismatched types ‘std::piecewise_linear_distribution<_RealType>’ and ‘long long int [88]’
   11 |                         cin>>a[i];
      |                                 ^
foo.cc:17:46: error: ‘dp’ was not declared in this scope; did you mean ‘dup’?
   17 |                                 if(len == 1){dp[i][g] = 1;continue;}
      |                                              ^~
      |                                              dup
foo.cc:19:41: error: ‘dp’ was not declared in this scope; did you mean ‘dup’?
   19 |                                         dp[i][g] = max(dp[i][g], dp[i][k] + dp[k][i] + pow(2,g-i-1));
      |                                         ^~
      |                                         dup
foo.cc:23:26: error: ‘i’ was not declared in this scope
   23 |                 ans += a[i];
      |                          ^

信息

递交者
类型
递交
题目
P1378 矩阵取数游戏
语言
C++
递交时间
2024-08-19 15:57:14
评测时间
2024-08-19 15:57:14
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes