Problem collectmushrooms
User samvar0907
Submission Time 2024-01-26 11:16:21
Score 0
Max Time N/A
Max Memory N/A

Compile Error

collectmushrooms.cpp: In function ‘int main()’:
collectmushrooms.cpp:25:68: error: ‘a’ was not declared in this scope
25 | int max_val = *max_element(deliciousness.begin() + a, deliciousness.begin() + b + 1);
| ^
collectmushrooms.cpp:25:95: error: ‘b’ was not declared in this scope
25 | int max_val = *max_element(deliciousness.begin() + a, deliciousness.begin() + b + 1);
| ^