Problem fibo
User BuiNgocDuc
Submission Time 2025-06-17 01:59:47
Score 0
Max Time N/A
Max Memory N/A

Compile Error

fibo.cpp:3:13: error: declaration does not declare anything [-fpermissive]
3 | #define int void;
| ^~~~
fibo.cpp:4:1: note: in expansion of macro ‘int’
4 | int fib(int n) {
| ^~~
fibo.cpp:3:17: error: expected ‘)’ before ‘;’ token
3 | #define int void;
| ^
fibo.cpp:4:9: note: in expansion of macro ‘int’
4 | int fib(int n) {
| ^~~
fibo.cpp:4:8: note: to match this ‘(’
4 | int fib(int n) {
| ^
fibo.cpp:3:17: error: expected constructor, destructor, or type conversion before ‘;’ token
3 | #define int void;
| ^
fibo.cpp:4:9: note: in expansion of macro ‘int’
4 | int fib(int n) {
| ^~~
fibo.cpp:4:13: error: ‘n’ does not name a type; did you mean ‘yn’?
4 | int fib(int n) {
| ^
| yn
fibo.cpp:3:13: error: declaration does not declare anything [-f