F.A.Q
Hand In Hand
Online Acmers
Problem Archive
Realtime Judge Status
Authors Ranklist
 
     C/C++/Java Exams     
ACM Steps
Go to Job
Contest LiveCast
ICPC@China
Best Coder beta
VIP | STD Contests
    DIY | Web-DIY beta
Author ID 
Password 
 Register new ID

View Compilation Error

0_0_38782491_26101.cpp: In function 'void Solve()':
0_0_38782491_26101.cpp:71:14: error: no matching function for call to 'merge(ll&, ll&, ll&, ll&)'
   71 |         merge(a, b, c[i], d[i]);
      |         ~~~~~^~~~~~~~~~~~~~~~~~
0_0_38782491_26101.cpp:38:6: note: candidate: 'void merge(__int128&, __int128&, __int128, __int128)' (near match)
   38 | void merge(__int128 &a, __int128 &b, __int128 c, __int128 d) {
      |      ^~~~~
0_0_38782491_26101.cpp:38:6: note:   conversion of argument 2 would be ill-formed:
0_0_38782491_26101.cpp:71:18: error: cannot bind non-const lvalue reference of type '__int128&' to a value of type 'll' {aka 'long long int'}
   71 |         merge(a, b, c[i], d[i]);
      |                  ^
In file included from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/algorithm:61,
                 from 0_0_38782491_26101.cpp:2:
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/stl_algo.h:4946:5: note: candidate: 'template<class _IIter1, class _IIter2, class _OIter> constexpr _OIter std::merge(_IIter1, _IIter1, _IIter2, _IIter2, _OIter)'
 4946 |     merge(_InputIterator1 __first1, _InputIterator1 __last1,
      |     ^~~~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/stl_algo.h:4946:5: note:   template argument deduction/substitution failed:
0_0_38782491_26101.cpp:71:14: note:   candidate expects 5 arguments, 4 provided
   71 |         merge(a, b, c[i], d[i]);
      |         ~~~~~^~~~~~~~~~~~~~~~~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/stl_algo.h:4997:5: note: candidate: 'template<class _IIter1, class _IIter2, class _OIter, class _Compare> constexpr _OIter std::merge(_IIter1, _IIter1, _IIter2, _IIter2, _OIter, _Compare)'
 4997 |     merge(_InputIterator1 __first1, _InputIterator1 __last1,
      |     ^~~~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/stl_algo.h:4997:5: note:   template argument deduction/substitution failed:
0_0_38782491_26101.cpp:71:14: note:   candidate expects 6 arguments, 4 provided
   71 |         merge(a, b, c[i], d[i]);
      |         ~~~~~^~~~~~~~~~~~~~~~~~
In file included from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/algorithm:73:
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/pstl/glue_algorithm_defs.h:412:1: note: candidate: 'template<class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2, class _ForwardIterator, class _Compare> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> std::merge(_ExecutionPolicy&&, _ForwardIterator1, _ForwardIterator1, _ForwardIterator2, _ForwardIterator2, _ForwardIterator, _Compare)'
  412 | merge(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2,
      | ^~~~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/pstl/glue_algorithm_defs.h:412:1: note:   template argument deduction/substitution failed:
0_0_38782491_26101.cpp:71:14: note:   candidate expects 7 arguments, 4 provided
   71 |         merge(a, b, c[i], d[i]);
      |         ~~~~~^~~~~~~~~~~~~~~~~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/pstl/glue_algorithm_defs.h:417:1: note: candidate: 'template<class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2, class _ForwardIterator> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> std::merge(_ExecutionPolicy&&, _ForwardIterator1, _ForwardIterator1, _ForwardIterator2, _ForwardIterator2, _ForwardIterator)'
  417 | merge(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2,
      | ^~~~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/pstl/glue_algorithm_defs.h:417:1: note:   template argument deduction/substitution failed:
0_0_38782491_26101.cpp:71:14: note:   candidate expects 6 arguments, 4 provided
   71 |         merge(a, b, c[i], d[i]);
      |         ~~~~~^~~~~~~~~~~~~~~~~~
0_0_38782491_26101.cpp: In function 'int main()':
0_0_38782491_26101.cpp:89:9: error: no match for 'operator>>' (operand types are 'std::istream' {aka 'std::basic_istream<char>'} and '__int128')
   89 |     cin >> t;
      |     ~~~ ^~ ~
      |     |      |
      |     |      __int128
      |     std::istream {aka std::basic_istream<char>}
In file included from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/iostream:42,
                 from 0_0_38782491_26101.cpp:1:
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/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)
      |       ^~~~~~~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/istream:325:7: note:   conversion of argument 1 would be ill-formed:
0_0_38782491_26101.cpp:89:12: error: invalid conversion from '__int128' to 'void*' [-fpermissive]
   89 |     cin >> t;
      |            ^
      |            |
      |            __int128
0_0_38782491_26101.cpp:89:12: error: cannot bind rvalue '(void*)((long long int)t)' to 'void*&'
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/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)
      |       ^~~~~~~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/istream:224:7: note:   conversion of argument 1 would be ill-formed:
0_0_38782491_26101.cpp:89:12: error: cannot bind non-const lvalue reference of type 'long double&' to a value of type '__int128'
   89 |     cin >> t;
      |            ^
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/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)
      |       ^~~~~~~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/istream:220:7: note:   conversion of argument 1 would be ill-formed:
0_0_38782491_26101.cpp:89:12: error: cannot bind non-const lvalue reference of type 'double&' to a value of type '__int128'
   89 |     cin >> t;
      |            ^
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/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>]' (near match)
  216 |       operator>>(float& __f)
      |       ^~~~~~~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/istream:216:7: note:   conversion of argument 1 would be ill-formed:
0_0_38782491_26101.cpp:89:12: error: cannot bind non-const lvalue reference of type 'float&' to a value of type '__int128'
   89 |     cin >> t;
      |            ^
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/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)
      |       ^~~~~~~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/istream:201:7: note:   conversion of argument 1 would be ill-formed:
0_0_38782491_26101.cpp:89:12: error: cannot bind non-const lvalue reference of type 'long long unsigned int&' to a value of type '__int128'
   89 |     cin >> t;
      |            ^
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/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)
      |       ^~~~~~~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/istream:197:7: note:   conversion of argument 1 would be ill-formed:
0_0_38782491_26101.cpp:89:12: error: cannot bind non-const lvalue reference of type 'long long int&' to a value of type '__int128'
   89 |     cin >> t;
      |            ^
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/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)
      |       ^~~~~~~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/istream:192:7: note:   conversion of argument 1 would be ill-formed:
0_0_38782491_26101.cpp:89:12: error: cannot bind non-const lvalue reference of type 'long unsigned int&' to a value of type '__int128'
   89 |     cin >> t;
      |            ^
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/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::b


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2024 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.000000(s) query 1, Server time : 2024-12-02 04:19:33, Gzip enabled