Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
165112 陈开远 狐狸吃兔子 C++ Compile Error 0 MS 0 KB 448 2026-11-10 19:52:28

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() using namespace std; int main(){ bool d[11]={0}; for(int i=1,j=1;i<=1000;i++,j+=i){ if(j>10) j%=10; d[j]=1; } for(int i=1;i<=10;i++){ if(d[i]==0){ cout<<i<<" "; } } return 0; } return 0; }


Run Info:

Main.cc:21:5: error: expected unqualified-id before 'return'
     return 0;
     ^
Main.cc:22:1: error: expected declaration before '}' token
 }
 ^