worst_reporter2.cpp: In member function 'void slope_trick::add(int, long long int)':
worst_reporter2.cpp:31:17: error: expected ')' before 'delta'
31 | if (it1 -- delta.begin())
| ~ ^~~~~~
| )
worst_reporter2.cpp:31:15: error: could not convert 'it1.std::_Rb_tree_iterator<std::pair<const int, long long int> >::operator--(0)' from 'std::_Rb_tree_iterator<std::pair<const int, long long int> >::_Self' {aka 'std::_Rb_tree_iterator<std::pair<const int, long long int> >'} to 'bool'
31 | if (it1 -- delta.begin())
| ~~~~^~
| |
| std::_Rb_tree_iterator<std::pair<const int, long long int> >::_Self {aka std::_Rb_tree_iterator<std::pair<const int, long long int> >}
worst_reporter2.cpp: In function 'int main()':
worst_reporter2.cpp:75:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
75 | scanf("%d", &N);
| ~~~~~^~~~~~~~~~
worst_reporter2.cpp:77:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
77 | scanf("%d%d%d", &a[i], &h[i], &c[i]);
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~