Problem aircon
User wrizz69
Submission Time 2024-12-29 13:02:26
Score 0
Max Time N/A
Max Memory N/A

Compile Error

aircon.cpp:2:17: error: ‘__gnu_pbds’ is not a namespace-name
2 | using namespace __gnu_pbds;
| ^~~~~~~~~~
aircon.cpp:3:17: error: ‘__gnu_cxx’ is not a namespace-name
3 | using namespace __gnu_cxx;
| ^~~~~~~~~
aircon.cpp:26:1: error: ‘mt19937’ does not name a type
26 | mt19937 rng(chrono::system_clock::now().time_since_epoch().count());
| ^~~~~~~
aircon.cpp:23:21: error: ‘tree’ does not name a type
23 | #define indexed_set tree<ll,null_type,less<ll>,rb_tree_tag,tree_order_statistics_node_update>
| ^~~~
aircon.cpp:29:1: note: in expansion of macro ‘indexed_set’
29 | indexed_set s;
| ^~~~~~~~~~~
aircon.cpp: In function ‘int search(int)’:
aircon.cpp:37:25: error: ‘s’ was not declared in this scope
37 | ll temp=curr+mi-s.order_of_key(mi+1);
| ^
aircon.cpp: In function ‘int main()’: