Problem | lunchbox |
---|---|
User | electron13 |
Submission Time | 2023-03-06 02:22:39 |
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<ll> v;
| ^~~~~~
lunchbox.cpp:2:1: note: ‘std::vector’ is defined in header ‘<vector>’; did you forget to ‘#include <vector>’?
1 | #include<iostream>
+++ |+#include <vector>
2 | #define ll long long
lunchbox.cpp:2:12: error: expected primary-expression before ‘long’
2 | #define ll long long
| ^~~~
lunchbox.cpp:8:9: note: in expansion of macro ‘ll’
8 | vector<ll> v;
| ^~
lunchbox.cpp:14:3: error: ‘v’ was not declared in this scope
14 | v.push_back(inp);
| ^
lunchbox.cpp:16:7: error: ‘v’ was not declared in this scope
16 | sort(v.begin(),v.end());
| ^
lunchbox.cpp:16:2: error: ‘sort’ was not declared in this scope; did you mean ‘qsort’?
16 | sort(v.begin(),v.end());
| ^~~~