Problem | ccs |
---|---|
User | RendezvousAnonymous |
Submission Time | 2023-11-08 15:24:27 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
ccs.cpp: In function ‘int main()’:
ccs.cpp:9:3: error: ‘vector’ was not declared in this scope
9 | vector< int > arr;
| ^~~~~~
ccs.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;
ccs.cpp:9:11: error: expected primary-expression before ‘int’
9 | vector< int > arr;
| ^~~
ccs.cpp:11:5: error: ‘arr’ was not declared in this scope
11 | arr.push_back(1);
| ^~~
ccs.cpp:21:13: error: ‘arr’ was not declared in this scope
21 | if (arr[j] == 1){
| ^~~
ccs.cpp:38:7: error: ‘arr’ was not declared in this scope
38 | arr[z] = 0;
| ^~~
ccs.cpp:42:7: error: ‘arr’ was not declared in this scope
42 | arr[g] = 1;
| ^~~