Problem snacks
User G92
Submission Time 2026-02-16 09:45:06
Score 0
Max Time N/A
Max Memory N/A

Compile Error

snacks.cpp: In function ‘int main()’:
snacks.cpp:31:19: error: invalid type argument of unary ‘*’ (have ‘long long int’)
31 | if(*(elem.first)>=x && *(elem.first)<=y && *(elem.second)!=0)
| ^
snacks.cpp:31:39: error: invalid type argument of unary ‘*’ (have ‘long long int’)
31 | if(*(elem.first)>=x && *(elem.first)<=y && *(elem.second)!=0)
| ^
snacks.cpp:31:60: error: invalid type argument of unary ‘*’ (have ‘long long int’)
31 | if(*(elem.first)>=x && *(elem.first)<=y && *(elem.second)!=0)
| ^