| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 68042 | 夏轩淇 | 斐波那契数列(递归) | C++ | Compile Error | 0 MS | 0 KB | 253 | 2024-03-18 19:16:24 |
#include<bits/stdc++.h> using namespace std; nt F(int x){ if (x >= 2) return F(x - 1) + F(x - 2); else if (x == 1) return 1; else return 0; } int main(){ int x; cin>>x; cout<<f(x); return 0; }
Main.cc:3:1: error: 'nt' does not name a type
nt F(int x){
^
Main.cc: In function 'int main()':
Main.cc:15:11: error: 'f' was not declared in this scope
cout<