Problem fibo
User AltheaZ
Submission Time 2023-06-18 11:46:55
Score 0
Max Time N/A
Max Memory N/A

Compile Error

fibo.cpp: In function ‘int main()’:
fibo.cpp:10:12: error: expected ‘;’ before ‘==’ token
10 | for (int x==2;x<=n;x++){
| ^~
| ;
fibo.cpp:10:12: error: expected primary-expression before ‘==’ token
10 | for (int x==2;x<=n;x++){
| ^~
fibo.cpp:10:20: error: expected ‘)’ before ‘;’ token
10 | for (int x==2;x<=n;x++){
| ~ ^
| )
fibo.cpp:10:21: error: ‘x’ was not declared in this scope
10 | for (int x==2;x<=n;x++){
| ^
fibo.cpp:13:12: error: expected ‘;’ before ‘==’ token
13 | for (int i==0;i<=n;i++){
| ^~
| ;
fibo.cpp:13:12: error: expected primary-expression before ‘==’ token
13 | for (int i==0;i<=n;i++){
| ^~
fibo.cpp:13:20: error: expected ‘)’ before ‘;’ token
13 | for (int i==0;i<=n;i++){