Problem | fibo |
---|---|
User | shawn |
Submission Time | 2024-04-06 09:07:12 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
fibo.cpp: In function ‘int main()’:
fibo.cpp:14:12: error: conflicting declaration ‘long long int a [(n + 1)]’
14 | long long a[n + 1];
| ^
fibo.cpp:10:12: note: previous declaration as ‘long long int a’
10 | long long a = 0;
| ^
fibo.cpp:15:2: error: ‘a’ is not a class, namespace, or enumeration
15 | a::push_back(0);
| ^
fibo.cpp:16:2: error: ‘a’ is not a class, namespace, or enumeration
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