Problem | fibo |
---|---|
User | fypage |
Submission Time | 2024-10-31 23:29:30 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
fibo.cpp: In function ‘int main()’:
fibo.cpp:6:5: error: structured binding declaration cannot have type ‘int’
6 | int[N];
| ^~~
fibo.cpp:6:5: note: type must be cv-qualified ‘auto’ or reference to cv-qualified ‘auto’
fibo.cpp:6:6: error: conflicting declaration ‘auto N’
6 | int[N];
| ^
fibo.cpp:4:6: note: previous declaration as ‘int N’
4 | int N;
| ^
fibo.cpp:6:8: error: expected initializer before ‘;’ token
6 | int[N];
| ^
fibo.cpp:7:6: error: expected identifier before numeric constant
7 | int[0]=0;
| ^
fibo.cpp:7:6: error: expected ‘]’ before numeric constant
7 | int[0]=0;
| ^
| ]
fibo.cpp:7:5: error: structured binding declaration cannot have type ‘int’
7 | int[0]=0;
| ^
fibo.cpp:7:5: note: type must be cv-qualified ‘auto’ or reference to cv-qualified ‘auto’
fibo.cpp:7:5: error: empty