Problem lunchbox
User dfsssssssssfsdfdssgdfs
Submission Time 2026-01-12 15:43:56
Score 0
Max Time N/A
Max Memory N/A

Compile Error

lunchbox.cpp: In function ‘int main()’:
lunchbox.cpp:14:2: error: ‘vector’ was not declared in this scope
14 | vector<ull> number;
| ^~~~~~
lunchbox.cpp:2:1: note: ‘std::vector’ is defined in header ‘<vector>’; did you forget to ‘#include <vector>’?
1 | #include <iostream>
+++ |+#include <vector>
2 |
lunchbox.cpp:5:13: error: expected primary-expression before ‘unsigned’
5 | #define ull unsigned long long
| ^~~~~~~~
lunchbox.cpp:14:9: note: in expansion of macro ‘ull’
14 | vector<ull> number;
| ^~~
lunchbox.cpp:17:3: error: ‘number’ was not declared in this scope
17 | number.push_back( c );
| ^~~~~~
lunchbox.cpp:19:7: error: ‘number’ was not declared in this scope
19 | sort(number.begin(), number.end());
| ^~~~~~
lunchbox.cpp:19:2: error: ‘sort’ was not declared in this scope; did you mean ‘qsort’?