Problem | carpark |
---|---|
User | geometric2 |
Submission Time | 2023-11-20 13:15:08 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
carpark.cpp:1:7: error: ‘vector’ in namespace ‘std’ does not name a template type
1 | std::vector<i64> spaces;
| ^~~~~~
carpark.cpp:1:1: note: ‘std::vector’ is defined in header ‘<vector>’; did you forget to ‘#include <vector>’?
+++ |+#include <vector>
1 | std::vector<i64> spaces;
carpark.cpp:2:2: error: expected unqualified-id before ‘for’
2 | for (i64 i(0); i < N; i++) {
| ^~~
carpark.cpp:2:17: error: ‘i’ does not name a type
2 | for (i64 i(0); i < N; i++) {
| ^
carpark.cpp:2:24: error: ‘i’ does not name a type
2 | for (i64 i(0); i < N; i++) {
| ^
carpark.cpp:8:2: error: expected unqualified-id before ‘while’
8 | while (!a.front()) a.pop_front();
| ^~~~~
carpark.cpp:9:2: error: expected unqualified-id before ‘while’
9 | while (!a.back()) a.pop_back();
| ^~~~~
carpa