Problem cake3
User bribritt
Submission Time 2024-01-11 17:40:00
Score 0
Max Time N/A
Max Memory N/A

Compile Error

cake3.cpp:74: error: unterminated argument list invoking macro "assert"
74 | }
|
cake3.cpp: In function ‘long long int qry(long long int, long long int)’:
cake3.cpp:24:37: error: ‘assert’ was not declared in this scope
24 | if(st.size()>m) {ans-=(*(++it)); assert(it==st.find_by_order(m);}
| ^~~~~~
cake3.cpp:4:1: note: ‘assert’ is defined in header ‘<cassert>’; did you forget to ‘#include <cassert>’?
3 | #include <ext/pb_ds/assoc_container.hpp>
+++ |+#include <cassert>
4 | using namespace std;
cake3.cpp:24:37: error: expected ‘}’ at end of input
24 | if(st.size()>m) {ans-=(*(++it)); assert(it==st.find_by_order(m);}
| ~ ^~~~~~
cake3.cpp:24:37: error: expected ‘}’ at end of input
cake3.cpp:22:34: note: to match this ‘{’
22 | if(st.size()<m || (*it)<=v[r]) {
|