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

Compile Error

aircon.cpp:3:17: error: ‘__gnu_pbds’ is not a namespace-name
3 | using namespace __gnu_pbds;
| ^~~~~~~~~~
aircon.cpp:24:21: error: ‘tree’ does not name a type; did you mean ‘free’?
24 | #define indexed_set tree<ll,null_type,less<ll>,rb_tree_tag,tree_order_statistics_node_update>
| ^~~~
aircon.cpp:30:1: note: in expansion of macro ‘indexed_set’
30 | indexed_set s;
| ^~~~~~~~~~~
aircon.cpp: In function ‘int search(int)’:
aircon.cpp:38:25: error: ‘s’ was not declared in this scope
38 | ll temp=curr+mi-s.order_of_key(mi+1);
| ^
aircon.cpp: In function ‘int main()’:
aircon.cpp:60:27: error: ‘s’ was not declared in this scope
60 | else if (t==curr) s.insert(search(t+1));
| ^
aircon.cpp:62:13: error: ‘s’ was not declared in this scope
62 | s.insert(search(t));