0_0_15882818_3428.cpp: In function 'void n_solution()':
0_0_15882818_3428.cpp:23:39: error: 'max' was not declared in this scope
dp1[i] = max(a[i], dp1[i - 1] + a[i]);
^
0_0_15882818_3428.cpp:23:39: note: suggested alternative:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:62:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:64,
from 0_0_15882818_3428.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:3454:5: note: 'std::max'
max(initializer_list<_Tp> __l, _Compare __comp)
^
0_0_15882818_3428.cpp:27:39: error: 'max' was not declared in this scope
dp2[i] = max(a[i], dp2[i + 1] + a[i]);
^
0_0_15882818_3428.cpp:27:39: note: suggested alternative:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:62:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:64,
from 0_0_15882818_3428.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:3454:5: note: 'std::max'
max(initializer_list<_Tp> __l, _Compare __comp)
^
0_0_15882818_3428.cpp:30:12: error: 'inf' was not declared in this scope
ll ans = -inf;
^
0_0_15882818_3428.cpp:32:33: error: 'max' was not declared in this scope
ll ret = max(p, p + dp1[i - 1]) + max(p, p + dp2[i + 1]) - p;
^
0_0_15882818_3428.cpp:32:33: note: suggested alternative:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:62:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:64,
from 0_0_15882818_3428.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:3454:5: note: 'std::max'
max(initializer_list<_Tp> __l, _Compare __comp)
^
0_0_15882818_3428.cpp:33:47: error: 'cmax' was not declared in this scope
cmax(ans, max(ret, ans1[i - 1], ans2[i + 1]));
^
0_0_15882818_3428.cpp:35:8: error: 'WR' was not declared in this scope
WR(ans);
^
0_0_15882818_3428.cpp: In function 'int main()':
0_0_15882818_3428.cpp:6:30: error: expected ';' before 'while'
#define rush() int T; RDB(T) while(T--)
^
0_0_15882818_3428.cpp:38:2: note: in expansion of macro 'rush'
rush() {
^
|