Problem | 3nplus1 |
---|---|
User | AltheaZ |
Submission Time | 2023-06-02 11:32:37 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
3nplus1.cpp:3:1: error: ‘vector’ does not name a type
3 | vector<int> proc(int n) {
| ^~~~~~
3nplus1.cpp: In function ‘int main()’:
3nplus1.cpp:20:2: error: ‘vector’ was not declared in this scope
20 | vector<int> result = proc(N);
| ^~~~~~
3nplus1.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;
3nplus1.cpp:20:9: error: expected primary-expression before ‘int’
20 | vector<int> result = proc(N);
| ^~~
3nplus1.cpp:21:20: error: ‘result’ was not declared in this scope
21 | for (int num : result) {
| ^~~~~~