Problem lunchbox
User Esan
Submission Time 2024-06-19 14:46:13
Score 0
Max Time N/A
Max Memory N/A

Compile Error

lunchbox.cpp: In function ‘int main()’:
lunchbox.cpp:9:12: error: ‘sync_with_studio’ is not a member of ‘std::ios_base’
9 | ios_base::sync_with_studio(0)
| ^~~~~~~~~~~~~~~~
lunchbox.cpp:10:25: error: expected ‘;’ before ‘int’
10 | cin.tie(0); cout.tie(0)
| ^
| ;
11 | int N,m
| ~~~
lunchbox.cpp:14:2: error: expected initializer before ‘for’
14 | for (int i =0; i<m, ++i){
| ^~~
lunchbox.cpp:14:17: error: ‘i’ was not declared in this scope
14 | for (int i =0; i<m, ++i){
| ^
lunchbox.cpp:14:19: error: ‘m’ was not declared in this scope; did you mean ‘tm’?
14 | for (int i =0; i<m, ++i){
| ^
| tm
lunchbox.cpp:20:10: error: ‘g’ was not declared in this scope
20 | while (!g.empty()&& N >= g.top()) {
|