0_0_26239722_3075.cpp: In function 'int dfs(int, int, int)':
0_0_26239722_3075.cpp:30:61: error: invalid initialization of reference of type 'll& {aka long long int&}' from expression of type 'int'
if(o) chkmin(res, dfs(o^1, pos+k, k) - v[pos+k] + v[pos]);
^
0_0_26239722_3075.cpp:24:13: note: in passing argument 1 of 'void chkmin(ll&, ll)'
inline void chkmin(ll &x, ll y){ if(y < x) x = y; }
^
0_0_26239722_3075.cpp:31:82: error: invalid initialization of reference of type 'll& {aka long long int&}' from expression of type 'int'
if(o && pos + k < n) chkmin(res, dfs(o^1, pos+k+1, k+1) - v[pos+k+1] + v[pos]);
^
0_0_26239722_3075.cpp:24:13: note: in passing argument 1 of 'void chkmin(ll&, ll)'
inline void chkmin(ll &x, ll y){ if(y < x) x = y; }
^
0_0_26239722_3075.cpp:32:62: error: invalid initialization of reference of type 'll& {aka long long int&}' from expression of type 'int'
if(!o) chkmax(res, dfs(o^1, pos+k, k) + v[pos+k] - v[pos]);
^
0_0_26239722_3075.cpp:23:13: note: in passing argument 1 of 'void chkmax(ll&, ll)'
inline void chkmax(ll &x, ll y){ if(y > x) x = y; }
^
0_0_26239722_3075.cpp:33:83: error: invalid initialization of reference of type 'll& {aka long long int&}' from expression of type 'int'
if(!o && pos + k < n) chkmax(res, dfs(o^1, pos+k+1, k+1) + v[pos+k+1] - v[pos]);
^
0_0_26239722_3075.cpp:23:13: note: in passing argument 1 of 'void chkmax(ll&, ll)'
inline void chkmax(ll &x, ll y){ if(y > x) x = y; }
^
|