Problem fibo
User dl2704
Submission Time 2024-01-10 09:44:31
Score 0
Max Time N/A
Max Memory N/A

Compile Error

fibo.cpp: In function ‘int main()’:
fibo.cpp:4:9: error: ‘n’ was not declared in this scope; did you mean ‘yn’?
4 | cin >> n;
| ^
| yn
fibo.cpp:6:7: error: ‘total’ was not declared in this scope
6 | for (total < n + 1, int total = 0, total++){
| ^~~~~
fibo.cpp:6:22: error: expected primary-expression before ‘int’
6 | for (total < n + 1, int total = 0, total++){
| ^~~
fibo.cpp:19:2: error: expected primary-expression before ‘for’
19 | for (no < total + 1, int no = 0, no++){{
| ^~~
fibo.cpp:18:3: error: expected ‘;’ before ‘for’
18 | }
| ^
| ;
19 | for (no < total + 1, int no = 0, no++){{
| ~~~
fibo.cpp:19:2: error: expected primary-expression before ‘for’
19 | for (no < total + 1, int no = 0, no++){{
| ^~~
fibo.cpp:18:3: error: expected ‘)’ before ‘for’
18 |