Problem bacteria
User PlayVoltz
Submission Time 2023-09-18 16:15:47
Score 0
Max Time N/A
Max Memory N/A

Compile Error

bacteria.cpp: In function ‘std::pair<long long int, long long int> query(long long int, long long int, long long int, long long int, long long int)’:
bacteria.cpp:44:15: error: cannot convert ‘std::pair<long long int, long long int>’ to ‘long long int’ in initialization
44 | int l = query(2*index+1, low, mid, left, right);
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| |
| std::pair<long long int, long long int>
bacteria.cpp:45:15: error: cannot convert ‘std::pair<long long int, long long int>’ to ‘long long int’ in initialization
45 | int r = query(2*index+2, mid+1, high, left, right);
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| |
| std::pair<long long int, long long int>
bacteria.cpp:46:17: error: could not convert ‘l’ from ‘long long int’ to ‘std::pair<long long int, long long int>’
46 | retu