Problem fibo
User shawn
Submission Time 2024-04-06 09:09:02
Score 0
Max Time N/A
Max Memory N/A

Compile Error

fibo.cpp: In function ‘int main()’:
fibo.cpp:15:4: error: request for member ‘push_back’ in ‘a’, which is of non-class type ‘long long int’
15 | a.push_back(0);
| ^~~~~~~~~
fibo.cpp:16:4: error: request for member ‘push_back’ in ‘a’, which is of non-class type ‘long long int’
16 | a.push_back(1)
| ^~~~~~~~~
fibo.cpp:17:24: error: ‘i’ was not declared in this scope
17 | for (long long i = 2; i < n - 1; i++){
| ^
fibo.cpp:20:8: error: found ‘:’ in nested-name-specifier, expected ‘::’
20 | for (i: a) {
| ^
| ::
fibo.cpp:20:7: error: ‘i’ is not a class, namespace, or enumeration
20 | for (i: a) {
| ^
fibo.cpp:23:1: error: expected primary-expression before ‘}’ token
23 | }
| ^
fibo.cpp:22:3: error: expected ‘;’ before ‘}’ token
22 | }
| ^
| ;
23 | }
| ~
fibo.cpp:23:1: