Problem collectmushrooms
User MegaG
Submission Time 2026-07-04 11:56:05
Score 0
Max Time N/A
Max Memory N/A

Compile Error

collectmushrooms.cpp: In function ‘long long int query(long long int, long long int, long long int, long long int, long long int)’:
collectmushrooms.cpp:35:34: error: ‘LLONG_MIN’ was not declared in this scope
35 | if (qr < l or r < ql) return LLONG_MIN;
| ^~~~~~~~~
collectmushrooms.cpp:6:1: note: ‘LLONG_MIN’ is defined in header ‘<climits>’; did you forget to ‘#include <climits>’?
5 | #include <numeric>
+++ |+#include <climits>
6 | #define int long long
collectmushrooms.cpp: In function ‘int main()’:
collectmushrooms.cpp:49:22: error: ‘LLONG_MIN’ was not declared in this scope
49 | tree.assign(4*n, LLONG_MIN);
| ^~~~~~~~~
collectmushrooms.cpp:49:22: note: ‘LLONG_MIN’ is defined in header ‘<climits>’; did you forget to ‘#include <climits>’?