Problem collectmushrooms2
User dacashew
Submission Time 2023-11-07 07:31:38
Score 0
Max Time N/A
Max Memory N/A

Compile Error

collectmushrooms2.cpp: In function ‘long long int ini(long long int, long long int, long long int)’:
collectmushrooms2.cpp:21:14: error: cannot convert ‘std::pair<long long int, long long int>’ to ‘long long int’ in return
21 | return st[i];
| ~~~~^
| |
| std::pair<long long int, long long int>
collectmushrooms2.cpp:24:37: error: expected ‘)’ before ‘{’ token
24 | if(ini(2*i+1,l,mid)>=ini(2*i+2,l,r){
| ~ ^
| )
collectmushrooms2.cpp:29:1: error: expected primary-expression before ‘}’ token
29 | }
| ^