| Problem | lunchbox |
|---|---|
| User | dfsssssssssfsdfdssgdfs |
| Submission Time | 2026-01-07 16:49:18 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
lunchbox.cpp: In function ‘int main()’:
lunchbox.cpp:8:2: error: ‘vector’ was not declared in this scope
8 | vector<unsigned long long> schools;
| ^~~~~~
lunchbox.cpp:2:1: note: ‘std::vector’ is defined in header ‘<vector>’; did you forget to ‘#include <vector>’?
1 | #include <iostream>
+++ |+#include <vector>
2 | using namespace std;
lunchbox.cpp:8:9: error: expected primary-expression before ‘unsigned’
8 | vector<unsigned long long> schools;
| ^~~~~~~~
lunchbox.cpp:11:3: error: ‘schools’ was not declared in this scope
11 | schools [p] = a;
| ^~~~~~~
lunchbox.cpp:13:22: error: ‘schools’ was not declared in this scope
13 | if (n != accumulate(schools.begin(), schools.end(), 0);){
| ^~~~~~~
lunchbox.cpp:13:11: error: ‘accumulate’ was not declared in this scope
13 | if (n != accumulate(schools.begin(), schools.e