Problem | lunchbox |
---|---|
User | eliasxyz |
Submission Time | 2025-05-24 00:20:55 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
lunchbox.cpp: In function ‘int main()’:
lunchbox.cpp:6:2: error: ‘vector’ was not declared in this scope
6 | vector<int> yay={};
| ^~~~~~
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:6:9: error: expected primary-expression before ‘int’
6 | vector<int> yay={};
| ^~~
lunchbox.cpp:8:8: error: expected primary-expression before ‘int’
8 | cin>>int p;
| ^~~
lunchbox.cpp:9:3: error: ‘yay’ was not declared in this scope
9 | yay.push_back(p);
| ^~~
lunchbox.cpp:9:17: error: ‘p’ was not declared in this scope
9 | yay.push_back(p);
| ^
lunchbox.cpp:11:7: error: ‘yay’ was not declared in this scope
11 | sort(yay.begin(),yay.end());
|