Problem lunchbox
User PyAce
Submission Time 2025-06-21 18:30:24
Score 0
Max Time N/A
Max Memory N/A

Compile Error

lunchbox.cpp: In function ‘int main()’:
lunchbox.cpp:4:18: error: ‘long long’ specified with ‘std::vector<long long int, std::greater<long long int> >’
4 | #define int long long
| ^~~~
lunchbox.cpp:11:18: note: in expansion of macro ‘int’
11 | priority_queue <int vector <int,greater <int>>mq;
| ^~~
lunchbox.cpp:11:48: error: template argument 1 is invalid
11 | priority_queue <int vector <int,greater <int>>mq;
| ^~
lunchbox.cpp:11:48: error: template argument 2 is invalid
lunchbox.cpp:11:48: error: template argument 3 is invalid
lunchbox.cpp:13:15: error: expected ‘;’ before ‘:’ token
13 | cin >> mvecit:
| ^
| ;
lunchbox.cpp:14:15: error: ‘i’ was not declared in this scope
14 | for (int i=0;i<mvecit; i++) {
|