Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
149515 赖泓宇 14兔子问题 C++ Compile Error 0 MS 0 KB 399 2026-03-13 19:22:02

Tests(0/0):


Code:

#include<iostream> // cin\cout\endl #include<cstdio> //scanf()\printf() #include<cstring> // strcpy()\strcat()\strcmp()\strlen()\memset() #include<cmath> //sqrt()\pow()\abs()\ceil()\floor()\max()\min() int yt=1,xt=0,ct=0,ct0=0,yt0=1,xt0=0; for(int i=1;i<=8;i++){ yt=ct0+xt0; xt=yt0; ct=xt0+ct0; yt0=yt; xt0=xt; ct0=ct; } cout<<yt<<" "<<xt<<" "<<ct; }


Run Info:

Main.cc:7:1: error: expected unqualified-id before 'for'
 for(int i=1;i<=8;i++){
 ^
Main.cc:7:13: error: 'i' does not name a type
 for(int i=1;i<=8;i++){
             ^
Main.cc:7:18: error: 'i' does not name a type
 for(int i=1;i<=8;i++){
                  ^
Main.cc:15:1: error: 'cout' does not name a type
 cout<