Problem | fibo |
---|---|
User | ShShSh |
Submission Time | 2025-02-18 08:35:07 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
fibo.cpp: In function ‘int main()’:
fibo.cpp:7:5: error: ‘cin’ was not declared in this scope
7 | cin >> n;
| ^~~
fibo.cpp:1:1: note: ‘std::cin’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’?
+++ |+#include <iostream>
1 | using namespace std;
fibo.cpp:8:5: error: ‘vector’ was not declared in this scope
8 | vector<int> fib(n + 1);
| ^~~~~~
fibo.cpp:1:1: note: ‘std::vector’ is defined in header ‘<vector>’; did you forget to ‘#include <vector>’?
+++ |+#include <vector>
1 | using namespace std;
fibo.cpp:8:12: error: expected primary-expression before ‘int’
8 | vector<int> fib(n + 1);
| ^~~
fibo.cpp:9:5: error: ‘fib’ was not declared in this scope
9 | fib[0] = 0;
| ^~~
fibo.cpp:17:9: error: ‘cout’ was not declared in this scope
17 | cout << fib