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