| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 133386 | 刘益梵 | 18排列骨头 | C++ | Compile Error | 0 MS | 0 KB | 3224 | 2025-10-18 16:42:56 |
#include<iostream> using namespace std; int main(){ int i,a[31],num=0,k=0; for(int i=1;i<=30;i++){ a[i]=0; } i=1; while(num<15){ if(i>30) i=1; if(a[i]==0) k++; if(k==9){ a[i]=1; k=0; num++; } i++; } for(i=1;i<=30;i++){ if(a[i]==0)cout<<i<<" "; } return 0; }#include<iostream> using namespace std; int main(){ int i,a[31],num=0,k=0; for(int i=1;i<=30;i++){ a[i]=0; } i=1; while(num<15){ if(i>30) i=1; if(a[i]==0) k++; if(k==9){ a[i]=1; k=0; num++; } i++; } for(i=1;i<=30;i++){ if(a[i]==0)cout<<i<<" "; } return 0; }#include<iostream> using namespace std; int main(){ int i,a[31],num=0,k=0; for(int i=1;i<=30;i++){ a[i]=0; } i=1; while(num<15){ if(i>30) i=1; if(a[i]==0) k++; if(k==9){ a[i]=1; k=0; num++; } i++; } for(i=1;i<=30;i++){ if(a[i]==0)cout<<i<<" "; } return 0; }#include<iostream> using namespace std; int main(){ int i,a[31],num=0,k=0; for(int i=1;i<=30;i++){ a[i]=0; } i=1; while(num<15){ if(i>30) i=1; if(a[i]==0) k++; if(k==9){ a[i]=1; k=0; num++; } i++; } for(i=1;i<=30;i++){ if(a[i]==0)cout<<i<<" "; } return 0; }#include<iostream> using namespace std; int main(){ int i,a[31],num=0,k=0; for(int i=1;i<=30;i++){ a[i]=0; } i=1; while(num<15){ if(i>30) i=1; if(a[i]==0) k++; if(k==9){ a[i]=1; k=0; num++; } i++; } for(i=1;i<=30;i++){ if(a[i]==0)cout<<i<<" "; } return 0; }#include<iostream> using namespace std; int main(){ int i,a[31],num=0,k=0; for(int i=1;i<=30;i++){ a[i]=0; } i=1; while(num<15){ if(i>30) i=1; if(a[i]==0) k++; if(k==9){ a[i]=1; k=0; num++; } i++; } for(i=1;i<=30;i++){ if(a[i]==0)cout<<i<<" "; } return 0; }#include<iostream> using namespace std; int main(){ int i,a[31],num=0,k=0; for(int i=1;i<=30;i++){ a[i]=0; } i=1; while(num<15){ if(i>30) i=1; if(a[i]==0) k++; if(k==9){ a[i]=1; k=0; num++; } i++; } for(i=1;i<=30;i++){ if(a[i]==0)cout<<i<<" "; } return 0; }#include<iostream> using namespace std; int main(){ int i,a[31],num=0,k=0; for(int i=1;i<=30;i++){ a[i]=0; } i=1; while(num<15){ if(i>30) i=1; if(a[i]==0) k++; if(k==9){ a[i]=1; k=0; num++; } i++; } for(i=1;i<=30;i++){ if(a[i]==0)cout<<i<<" "; } return 0; }
Main.cc:27:2: error: stray '#' in program
}#include
^
Main.cc:53:2: error: stray '#' in program
}#include
^
Main.cc:79:2: error: stray '#' in program
}#include
^
Main.cc:105:2: error: stray '#' in program
}#include
^
Main.cc:131:2: error: stray '#' in program
}#include
^
Main.cc:157:2: error: stray '#' in program
}#include
^
Main.cc:183:2: error: stray '#' in program
}#include
^
Main.cc:27:3: error: 'include' does not name a type
}#include
^
Main.cc: In function 'int main()':
Main.cc:29:5: error: redefinition of 'int main()'
int main(){
^
Main.cc:3:5: note: 'int main()' previously defined here
int main(){
^
Main.cc: At global scope:
Main.cc:53:3: error: 'include' does not name a type
}#include
^
Main.cc: In function 'int main()':
Main.cc:55:5: error: redefinition of 'int main()'
int main(){
^
Main.cc:3:5: note: 'int main()' previously defined here
int main(){
^
Main.cc: At global scope:
Main.cc:79:3: error: 'include' does not name a type
}#include
^
Main.cc: In function 'int main()':
Main.cc:81:5: error: redefinition of 'int main()'
int main(){
^
Main.cc:3:5: note: 'int main()' previously defined here
int main(){
^
Main.cc: At global scope:
Main.cc:105:3: error: 'include' does not name a type
}#include
^
Main.cc: In function 'int main()':
Main.cc:107:5: error: redefinition of 'int main()'
int main(){
^
Main.cc:3:5: note: 'int main()' previously defined here
int main(){
^
Main.cc: At global scope:
Main.cc:131:3: error: 'include' does not name a type
}#include
^
Main.cc: In function 'int main()':
Main.cc:133:5: error: redefinition of 'int main()'
int main(){
^
Main.cc:3:5: note: 'int main()' previously defined here
int main(){
^
Main.cc: At global scope:
Main.cc:157:3: error: 'include' does not name a type
}#include
^
Main.cc: In function 'int main()':
Main.cc:159:5: error: redefinition of 'int main()'
int main(){
^
Main.cc:3:5: note: 'int main()' previously defined here
int main(){
^
Main.cc: At global scope:
Main.cc:183:3: error: 'include' does not name a type
}#include
^
Main.cc: In function 'int main()':
Main.cc:185:5: error: redefinition of 'int main()'
int main(){
^
Main.cc:3:5: note: 'int main()' previously defined here
int main(){
^