safety.cpp: In member function 'void PiecewiseConvex::merge(PiecewiseConvex&)':
safety.cpp:51:16: warning: comparison of integer expressions of different signedness: 'long long int' and 'std::priority_queue<long long int, std::vector<long long int>, std::less<long long int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
51 | while(-a > slopeChangeUntil0.size()) {
| ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~
safety.cpp:57:16: warning: comparison of integer expressions of different signedness: 'long long int' and 'std::priority_queue<long long int, std::vector<long long int>, std::less<long long int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
57 | while(-a < slopeChangeUntil0.size()) {
| ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~
safety.cpp: In member function 'void PiecewiseConvex::print()':
safety.cpp:97:7: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
97 | for(auto y : v) cout << y << " "; cout << endl;
| ^~~
safety.cpp:97:41: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
97 | for(auto y : v) cout << y << " "; cout << endl;
| ^~~~
safety.cpp:105:7: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
105 | for(auto y : v) cout << y << " "; cout << endl;
| ^~~
safety.cpp:105:41: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
105 | for(auto y : v) cout << y << " "; cout << endl;
| ^~~~
safety.cpp: In function 'int32_t main()':
safety.cpp:124:3: error: 'SlopeTrick' was not declared in this scope
124 | SlopeTrick dp = buildAbs(v[0]);
| ^~~~~~~~~~
safety.cpp:129:5: error: 'dp' was not declared in this scope; did you mean 'mp'?
129 | dp.min_op(h, h);
| ^~
| mp
safety.cpp:139:9: error: 'dp' was not declared in this scope; did you mean 'mp'?
139 | while(dp.slopeChangeUntil0.size()) {
| ^~
| mp
safety.cpp:144:11: error: 'dp' was not declared in this scope; did you mean 'mp'?
144 | cout << dp.b - sum_b << "\n";
| ^~
| mp