Problem | fibo |
---|---|
User | AltheaZ |
Submission Time | 2023-06-18 11:45:54 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
fibo.cpp: In function ‘int main()’:
fibo.cpp:6:2: error: ‘vector’ was not declared in this scope
6 | vector<int>arr;
| ^~~~~~
fibo.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;
fibo.cpp:6:9: error: expected primary-expression before ‘int’
6 | vector<int>arr;
| ^~~
fibo.cpp:7:2: error: ‘arr’ was not declared in this scope
7 | arr[0]==0;
| ^~~
fibo.cpp:9:12: error: expected ‘;’ before ‘==’ token
9 | for (int x==2;x<=n;x++){
| ^~
| ;
fibo.cpp:9:12: error: expected primary-expression before ‘==’ token
9 | for (int x==2;x<=n;x++){
| ^~
fibo.cpp:9:20: error: expected ‘)’ before ‘;’ token
9 | for (int x==2;x<=n;x++){
| ~