Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
109614 杨政翰 14兔子问题 C++ Compile Error 0 MS 0 KB 255 2025-02-09 19:57:12

Tests(0/0):


Code:

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


Run Info:

Main.cc: In function 'int main()':
Main.cc:5:4: error: 'nowRbt1' was not declared in this scope
    nowRbt1=rbt2+rbt3;
    ^
Main.cc:5:12: error: 'rbt2' was not declared in this scope
    nowRbt1=rbt2+rbt3;
            ^
Main.cc:5:17: error: 'rbt3' was not declared in this scope
    nowRbt1=rbt2+rbt3;
                 ^
Main.cc:6:4: error: 'nowRbt2' was not declared in this scope
    nowRbt2=rbt1;
    ^
Main.cc:6:12: error: 'rbt1' was not declared in this scope
    nowRbt2=rbt1;
            ^
Main.cc:7:4: error: 'nowRbt3' was not declared in this scope
    nowRbt3=rbt3+rbt2;
    ^
Main.cc:4:8: warning: unused variable 'i' [-Wunused-variable]
    int i;
        ^
Main.cc: At global scope:
Main.cc:12:2: error: 'cout' does not name a type
  cout<