0_0_29791544_1367.cpp: In function 'void build(int, int, int)':
0_0_29791544_1367.cpp:16:26: error: expected ')' before ';' token
build(R(i),m+1,r);
^
0_0_29791544_1367.cpp:17:41: error: expected ')' before ']' token
tree[i]=max(tree[L(i)],tree[R(i)]);
^
0_0_29791544_1367.cpp:17:43: error: expected ']' before ';' token
tree[i]=max(tree[L(i)],tree[R(i)]);
^
0_0_29791544_1367.cpp:17:43: error: expected ')' before ';' token
0_0_29791544_1367.cpp: In function 'int find(int, int, int, int, int)':
0_0_29791544_1367.cpp:29:51: error: no matching function for call to 'find(int&)'
if(m < R) ans=max(ans,find(R(i),m+1,r,L,R));
^
0_0_29791544_1367.cpp:29:51: note: candidates are:
0_0_29791544_1367.cpp:21:5: note: int find(int, int, int, int, int)
int find(int i,int l,int r,int L,int R)
^
0_0_29791544_1367.cpp:21:5: note: candidate expects 5 arguments, 1 provided
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:62:0,
from 0_0_29791544_1367.cpp:2:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:3770:5: note: template<class _IIter, class _Tp> _IIter std::find(_IIter, _IIter, const _Tp&)
find(_InputIterator __first, _InputIterator __last,
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:3770:5: note: template argument deduction/substitution failed:
0_0_29791544_1367.cpp:29:51: note: candidate expects 3 arguments, 1 provided
if(m < R) ans=max(ans,find(R(i),m+1,r,L,R));
^
0_0_29791544_1367.cpp: In function 'void change(int, int, int, int, int)':
0_0_29791544_1367.cpp:42:40: error: expected ')' before ';' token
else change(R(i),m+1,r,pos,num);
^
0_0_29791544_1367.cpp:43:41: error: expected ')' before ']' token
tree[i]=max(tree[L(i)],tree[R(i)]);
^
0_0_29791544_1367.cpp:43:43: error: expected ']' before ';' token
tree[i]=max(tree[L(i)],tree[R(i)]);
^
0_0_29791544_1367.cpp:43:43: error: expected ')' before ';' token
|