| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 164930 | 欧阳俊懿 | 狐狸吃兔子 | C++ | Compile Error | 0 MS | 0 KB | 262 | 2026-11-08 11:16:39 |
#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; }
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:7:16: warning: statement has no effect [-Wunused-value]
if(j>10) j%10;
^
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){
^