Problem lunchbox
User ethantanaki
Submission Time 2026-07-11 09:17:59
Score 0
Max Time N/A
Max Memory N/A

Compile Error

lunchbox.cpp:1:2: error: invalid preprocessing directive #inlcude; did you mean #include?
1 | #inlcude <bits/stdc++.h>
| ^~~~~~~
| include
lunchbox.cpp: In function ‘int main()’:
lunchbox.cpp:7:2: error: ‘cin’ was not declared in this scope
7 | cin >> N >> m;
| ^~~
lunchbox.cpp:1:1: note: ‘std::cin’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’?
+++ |+#include <iostream>
1 | #inlcude <bits/stdc++.h>
lunchbox.cpp:8:2: error: ‘priority_queue’ was not declared in this scope
8 | priority_queue<int, vector<int>, greater<int>> pq;
| ^~~~~~~~~~~~~~
lunchbox.cpp:1:1: note: ‘std::priority_queue’ is defined in header ‘<queue>’; did you forget to ‘#include <queue>’?
+++ |+#include <queue>
1 | #inlcude <bits/stdc++.h>
lunchbox.cpp:8:17: error: expected primary-expression before ‘int’