Problem | rangedeleting |
---|---|
User | zaneyu |
Submission Time | 2024-04-18 10:00:08 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
rangedeleting.cpp: In function ‘int main()’:
rangedeleting.cpp:13:13: error: ‘vector’ was not declared in this scope
13 | vector<int> v;
| ^~~~~~
rangedeleting.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;
rangedeleting.cpp:13:20: error: expected primary-expression before ‘int’
13 | vector<int> v;
| ^~~
rangedeleting.cpp:16:21: error: ‘v’ was not declared in this scope
16 | v.push_back(arr[i]);
| ^
rangedeleting.cpp:20:27: error: ‘v’ was not declared in this scope
20 | for(int i=0;i<v.size()-1;i++){
| ^