Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
109615 陈治宸 14兔子问题 C++ Compile Error 0 MS 0 KB 357 2025-02-09 19:58:47

Tests(0/0):


Code:

#include<iostream> using namespace std; int main(){ int i; int rbt1=1,rbt2=0,rbt3=0; int nowRbt1=0,nowRbt2=0,nowv3=0; for(i=1;i<=8;i++){ nowRbt1=rbt2+rbt3; nowRbt2=rbt1; nowRbt3=c+b; rbt1=nowRbt1; rbt2=nowRbt2; rbt3=nowRbt3; } cout<<nowRbt1<<" "<<nowRbt2<<" "<<nowRbt3<<endl; return 0; }


Run Info:

Main.cc: In function 'int main()':
Main.cc:10:5: error: 'nowRbt3' was not declared in this scope
     nowRbt3=c+b;
     ^
Main.cc:10:13: error: 'c' was not declared in this scope
     nowRbt3=c+b;
             ^
Main.cc:10:15: error: 'b' was not declared in this scope
     nowRbt3=c+b;
               ^
Main.cc:15:39: error: 'nowRbt3' was not declared in this scope
     cout<