Problem collectmushrooms2
User jmuzhen
Submission Time 2025-12-03 14:31:24
Score 0
Max Time N/A
Max Memory N/A

Compile Error

collectmushrooms2.cpp: In function ‘int main()’:
collectmushrooms2.cpp:36:12: error: redeclaration of ‘auto i’
36 | auto [v,i] = seg->query(l,r);
| ^
collectmushrooms2.cpp:34:11: note: ‘long long int i’ previously declared here
34 | for (int i = 0; i < m ;i++) {
| ^