game.cpp: In function 'void upd(int, int, int, int, int, int)':
game.cpp:35:28: error: too few arguments to function 'void upd(int, int, int, int, int, int)'
upd(v * 2, tl, tm, l, r);
^
game.cpp:22:13: note: declared here
inline void upd(int v, int tl, int tr, int l, int r, int x) {
^
game.cpp:36:36: error: too few arguments to function 'void upd(int, int, int, int, int, int)'
upd(v * 2 + 1, tm + 1, tr, l, r);
^
game.cpp:22:13: note: declared here
inline void upd(int v, int tl, int tr, int l, int r, int x) {
^
In file included from /usr/include/c++/5/bits/char_traits.h:39:0,
from /usr/include/c++/5/ios:40,
from /usr/include/c++/5/istream:38,
from /usr/include/c++/5/sstream:38,
from /usr/include/c++/5/complex:45,
from /usr/include/c++/5/ccomplex:38,
from /usr/include/x86_64-linux-gnu/c++/5/bits/stdc++.h:52,
from game.cpp:1:
/usr/include/c++/5/bits/stl_algobase.h: In instantiation of 'constexpr const _Tp& std::max(const _Tp&, const _Tp&, _Compare) [with _Tp = int; _Compare = int]':
game.cpp:59:76: required from here
/usr/include/c++/5/bits/stl_algobase.h:268:17: error: '__comp' cannot be used as a function
if (__comp(__a, __b))
^
game.cpp: In function 'int main()':
game.cpp:59:77: error: too few arguments to function 'void upd(int, int, int, int, int, int)'
upd(1, 1, N, min(pos[i], pos[i - 1]), max(pos[i], pos[i - 1], 1));
^
game.cpp:22:13: note: declared here
inline void upd(int v, int tl, int tr, int l, int r, int x) {
^
game.cpp:89:20: warning: unused variable 'cnt' [-Wunused-variable]
int h, cnt = 0;
^
game.cpp:55:26: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d", &n, &m);
^
game.cpp:57:29: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &pos[i]);
^
game.cpp:64:31: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &type);
^
game.cpp:67:40: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d", &j, &val);
^
game.cpp:71:32: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &h);
^
game.cpp:86:36: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d", &j, &val);
^
game.cpp:90:28: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &h);
^