Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
95367 | 杨老师 | 斐波那契数列 | C++ | Compile Error | 0 MS | 0 KB | 126 | 2024-10-27 12:44:39 |
int main(){ int a=1,b=1; int c; cin>>c; for(int i=4;i<=c;i++) { int temp=a; a=b; b=temp+b; } cout<<a+b;
Main.cc: In function 'int main()': Main.cc:4:2: error: 'cin' was not declared in this scope cin>>c; ^ Main.cc:11:2: error: 'cout' was not declared in this scope cout<