Problem | fibo |
---|---|
User | KingH |
Submission Time | 2025-08-18 16:10:47 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
fibo.cpp: In function ‘int main()’:
fibo.cpp:5:6: error: redeclaration of ‘int x’
5 | int x, y = 0, 1
| ^
fibo.cpp:4:6: note: ‘int x’ previously declared here
4 | int x, y, z;
| ^
fibo.cpp:5:9: error: redeclaration of ‘int y’
5 | int x, y = 0, 1
| ^
fibo.cpp:4:9: note: ‘int y’ previously declared here
4 | int x, y, z;
| ^
fibo.cpp:5:16: error: expected unqualified-id before numeric constant
5 | int x, y = 0, 1
| ^
fibo.cpp:6:18: error: ‘i’ was not declared in this scope
6 | for int (i = 0; i < x; i++){
| ^