Problem | lunchbox |
---|---|
User | AJigglypuffCoder |
Submission Time | 2024-10-21 17:16:12 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
lunchbox.cpp: In function ‘int main()’:
lunchbox.cpp:65:12: error: ‘k_next’ was not declared in this scope
65 | cin >> k_next;
| ^~~~~~
lunchbox.cpp:66:5: error: ‘k’ is not a class, namespace, or enumeration
66 | k::push_back(k_next);
| ^
lunchbox.cpp:69:3: error: ‘k’ is not a class, namespace, or enumeration
69 | k::sort(first, last);
| ^
lunchbox.cpp:69:11: error: ‘first’ was not declared in this scope
69 | k::sort(first, last);
| ^~~~~
lunchbox.cpp:69:18: error: ‘last’ was not declared in this scope
69 | k::sort(first, last);
| ^~~~
lunchbox.cpp:72:11: error: no match for ‘operator[]’ (operand types are ‘std::__cxx11::list<int>’ and ‘int’)
72 | N -= k[0];
| ^
lunchbox.cpp:73:5: error: ‘k’ is not a class, namespace, or enumeration
73 | k::pop_front();
| ^