| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 155737 | 陈骏睿 | 狐狸吃兔子 | C++ | Compile Error | 0 MS | 0 KB | 443 | 2026-06-13 10:59:53 |
#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(){ int d[11]=[]; 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])cout<<i<<" "; } return 0; }
Main.cc: In lambda function:
Main.cc:8:17: error: expected '{' before ';' token
int d[11]=[];
^
Main.cc: In function 'int main()':
Main.cc:8:17: error: array must be initialized with a brace-enclosed initializer
Main.cc:9:17: error: 'j' was not declared in this scope
for(int i=1;j=1;i<=1000;i++;j+=i){
^
Main.cc:9:22: warning: for increment expression has no effect [-Wunused-value]
for(int i=1;j=1;i<=1000;i++;j+=i){
^
Main.cc:9:28: error: expected ')' before ';' token
for(int i=1;j=1;i<=1000;i++;j+=i){
^
Main.cc:9:29: error: 'i' was not declared in this scope
for(int i=1;j=1;i<=1000;i++;j+=i){
^
Main.cc:9:33: error: 'j' was not declared in this scope
for(int i=1;j=1;i<=1000;i++;j+=i){
^