| Problem | fibo |
|---|---|
| User | GanJaeHan |
| Submission Time | 2026-01-18 14:20:45 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
fibo.cpp: In function ‘int fib(int*, int, int*)’:
fibo.cpp:4:2: error: expected primary-expression before ‘if’
4 | if(*counter > n){
| ^~
fibo.cpp:3:49: error: expected ‘)’ before ‘if’
3 | int fib(int* fibArrayPtr, int N, int* counter){(
| ~^
| )
4 | if(*counter > n){
| ~~
fibo.cpp:9:19: error: ‘n’ was not declared in this scope
9 | fib(fibArrayPtr, n, counter);
| ^
fibo.cpp: In function ‘int main()’:
fibo.cpp:18:15: error: ‘n’ was not declared in this scope
18 | int fibArray[n] = {0, 1};
| ^
fibo.cpp:19:6: error: ‘fibArray’ was not declared in this scope
19 | fib(fibArray, n, &counter);
| ^~~~~~~~