Problem | gotoschool |
---|---|
User | Ningja |
Submission Time | 2023-11-08 15:53:21 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
gotoschool.cpp: In function ‘int main()’:
gotoschool.cpp:6:2: error: ‘vector’ was not declared in this scope
6 | vector <int> v;
| ^~~~~~
gotoschool.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;
gotoschool.cpp:6:10: error: expected primary-expression before ‘int’
6 | vector <int> v;
| ^~~
gotoschool.cpp:7:10: error: expected primary-expression before ‘int’
7 | vector <int> c;
| ^~~
gotoschool.cpp:11:3: error: ‘v’ was not declared in this scope
11 | v.insert(a);
| ^
gotoschool.cpp:14:3: error: ‘c’ was not declared in this scope
14 | c.insert(v.find(i));
| ^
gotoschool.cpp:14:12: error: ‘v’ was not declared in this scope
14 | c.insert(v.find(i));
|