horses.cpp: In function 'void updateVal(int, int, int, int, int)':
horses.cpp:32:19: error: no matching function for call to 'merge(int&, int&, int&)'
32 | merge(node, l, r);
| ^
horses.cpp:16:6: note: candidate: 'void merge(int)'
16 | void merge(int node){
| ^~~~~
horses.cpp:16:6: note: candidate expects 1 argument, 3 provided
In file included from /usr/include/c++/10/algorithm:62,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:65,
from horses.cpp:1:
/usr/include/c++/10/bits/stl_algo.h:4944:5: note: candidate: 'template<class _IIter1, class _IIter2, class _OIter> _OIter std::merge(_IIter1, _IIter1, _IIter2, _IIter2, _OIter)'
4944 | merge(_InputIterator1 __first1, _InputIterator1 __last1,
| ^~~~~
/usr/include/c++/10/bits/stl_algo.h:4944:5: note: template argument deduction/substitution failed:
horses.cpp:32:19: note: candidate expects 5 arguments, 3 provided
32 | merge(node, l, r);
| ^
In file included from /usr/include/c++/10/algorithm:62,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:65,
from horses.cpp:1:
/usr/include/c++/10/bits/stl_algo.h:4995:5: note: candidate: 'template<class _IIter1, class _IIter2, class _OIter, class _Compare> _OIter std::merge(_IIter1, _IIter1, _IIter2, _IIter2, _OIter, _Compare)'
4995 | merge(_InputIterator1 __first1, _InputIterator1 __last1,
| ^~~~~
/usr/include/c++/10/bits/stl_algo.h:4995:5: note: template argument deduction/substitution failed:
horses.cpp:32:19: note: candidate expects 6 arguments, 3 provided
32 | merge(node, l, r);
| ^
horses.cpp:35:19: error: no matching function for call to 'merge(int&, int&, int&)'
35 | merge(node, l, r);
| ^
horses.cpp:16:6: note: candidate: 'void merge(int)'
16 | void merge(int node){
| ^~~~~
horses.cpp:16:6: note: candidate expects 1 argument, 3 provided
In file included from /usr/include/c++/10/algorithm:62,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:65,
from horses.cpp:1:
/usr/include/c++/10/bits/stl_algo.h:4944:5: note: candidate: 'template<class _IIter1, class _IIter2, class _OIter> _OIter std::merge(_IIter1, _IIter1, _IIter2, _IIter2, _OIter)'
4944 | merge(_InputIterator1 __first1, _InputIterator1 __last1,
| ^~~~~
/usr/include/c++/10/bits/stl_algo.h:4944:5: note: template argument deduction/substitution failed:
horses.cpp:35:19: note: candidate expects 5 arguments, 3 provided
35 | merge(node, l, r);
| ^
In file included from /usr/include/c++/10/algorithm:62,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:65,
from horses.cpp:1:
/usr/include/c++/10/bits/stl_algo.h:4995:5: note: candidate: 'template<class _IIter1, class _IIter2, class _OIter, class _Compare> _OIter std::merge(_IIter1, _IIter1, _IIter2, _IIter2, _OIter, _Compare)'
4995 | merge(_InputIterator1 __first1, _InputIterator1 __last1,
| ^~~~~
/usr/include/c++/10/bits/stl_algo.h:4995:5: note: template argument deduction/substitution failed:
horses.cpp:35:19: note: candidate expects 6 arguments, 3 provided
35 | merge(node, l, r);
| ^
horses.cpp: In function 'int init(int, int*, int*)':
horses.cpp:132:13: warning: conversion from 'long long int' to 'int' may change value [-Wconversion]
132 | return maxV%mod;
| ~~~~^~~~
horses.cpp: In function 'int updateX(int, int)':
horses.cpp:136:30: warning: conversion from 'long long int' to 'int' may change value [-Wconversion]
136 | multiplicar(pos + 1, fastExp(x[pos], mod-2));
| ~~~~~~~^~~~~~~~~~~~~~~
horses.cpp:141:29: warning: conversion from '__gnu_cxx::__alloc_traits<std::allocator<long long int>, long long int>::value_type' {aka 'long long int'} to 'int' may change value [-Wconversion]
141 | multiplicar(pos + 1, x[pos]);
| ^
horses.cpp:143:13: warning: conversion from 'long long int' to 'int' may change value [-Wconversion]
143 | return maxV%mod;
| ~~~~^~~~
horses.cpp: In function 'int updateY(int, int)':
horses.cpp:150:13: warning: conversion from 'long long int' to 'int' may change value [-Wconversion]
150 | return maxV%mod;
| ~~~~^~~~