Problem snacks
User cobnet
Submission Time 2025-02-23 18:04:10
Score 0
Max Time N/A
Max Memory N/A

Compile Error

snacks.cpp: In function ‘int main()’:
snacks.cpp:16:6: error: expected ‘;’ before ‘map’
16 | sort
| ^
| ;
17 | map<ll, ll> snacc;
| ~~~
snacks.cpp:17:19: error: statement cannot resolve address of overloaded function
17 | map<ll, ll> snacc;
| ^
snacks.cpp:18:22: error: ‘snacc’ was not declared in this scope; did you mean ‘snack’?
18 | for(auto c : snack){snacc[c]++;}
| ^~~~~
| snack
snacks.cpp:22:13: error: ‘snacc’ was not declared in this scope; did you mean ‘snack’?
22 | auto it = snacc.lower_bound(l);
| ^~~~~
| snack
snacks.cpp:22:31: error: ‘l’ was not declared in this scope
22 | auto it = snacc.lower_bound(l);
| ^
snacks.cpp:25:50: error: ‘r’ was not declared in this scope
25 | while (it !=