Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
164931 欧阳俊懿 狐狸吃兔子 C++ Compile Error 0 MS 0 KB 263 2026-11-08 11:18:06

Tests(0/0):


Code:

#include<bits/stdc++.h> using namespace std; int main(){ bool bool d[11]={0}; for(int i=1;i<=1000;i++){ for(int j=1;;j<=i){ if(j>10) j%=10; d[j]=1; } } for(int i=1;i<=10;i++){ if(d[1]==0){ cout<<i<<" "; } } return 0; }


Run Info:

Main.cc: In function 'int main()':
Main.cc:4:16: error: two or more data types in declaration of 'd'
  bool bool d[11]={0};
                ^
Main.cc:6:17: warning: for increment expression has no effect [-Wunused-value]
   for(int j=1;;j<=i){
                 ^
Main.cc:8:6: error: 'd' was not declared in this scope
      d[j]=1;
      ^
Main.cc:12:6: error: 'd' was not declared in this scope
   if(d[1]==0){
      ^