Problem laughter
User Potato3218
Submission Time 2023-12-08 00:55:52
Score 0
Max Time N/A
Max Memory N/A

Compile Error

laughter.cpp: In function ‘std::pair<long long int, long long int> check(long long int)’:
laughter.cpp:108:19: error: ‘struct std::pair<std::pair<long long int, long long int>, bool>’ has no member named ‘activate’
108 | if(it.activate){
| ^~~~~~~~
laughter.cpp:109:33: error: ‘struct std::pair<std::pair<long long int, long long int>, bool>’ has no member named ‘l’
109 | root->update(it.l, it.r, 1);
| ^
laughter.cpp:109:39: error: ‘struct std::pair<std::pair<long long int, long long int>, bool>’ has no member named ‘r’
109 | root->update(it.l, it.r, 1);
| ^
laughter.cpp:111:33: error: ‘struct std::pair<std::pair<long long int, long long int>, bool>’ has no member named ‘l’
111 | root->update(it.l, it.r, -1);
|