| Problem | lunchbox |
|---|---|
| User | Xiwen |
| Submission Time | 2025-11-04 16:34:03 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
lunchbox.cpp: In function ‘int main()’:
lunchbox.cpp:20:17: error: ‘max_element’ was not declared in this scope
20 | auto max_it = max_element(numVector.begin(), numVector.end());
| ^~~~~~~~~~~
lunchbox.cpp:27:2: error: ‘lengthOfVector’ was not declared in this scope
27 | lengthOfVector = numVector.sizeof();
| ^~~~~~~~~~~~~~
lunchbox.cpp:27:29: error: expected unqualified-id before ‘sizeof’
27 | lengthOfVector = numVector.sizeof();
| ^~~~~~