Problem | duckbuttons |
---|---|
User | dvd |
Submission Time | 2025-03-09 18:01:00 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
duckbuttons.cpp: In function ‘int main()’:
duckbuttons.cpp:8:5: error: ‘vector’ was not declared in this scope
8 | vector<int> cells;
| ^~~~~~
duckbuttons.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;
duckbuttons.cpp:8:12: error: expected primary-expression before ‘int’
8 | vector<int> cells;
| ^~~
duckbuttons.cpp:12:9: error: ‘cells’ was not declared in this scope
12 | cells.push_back(k);
| ^~~~~
duckbuttons.cpp:18:15: error: ‘cells’ was not declared in this scope
18 | for(int i=cells.size()-1; i>0; i--) {
| ^~~~~