Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
116071 李明秦 18排列骨头 C++ Compile Error 0 MS 0 KB 545 2025-04-06 10:00:48

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(){ inti,a[31],num=0,k=0; for(i=1;i<=30;i++) a[i]=0; i=1; while(num<15){ 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; }


Run Info:

Main.cc: In function 'int main()':
Main.cc:8:5: error: 'inti' was not declared in this scope
     inti,a[31],num=0,k=0;
     ^
Main.cc:8:10: error: 'a' was not declared in this scope
     inti,a[31],num=0,k=0;
          ^
Main.cc:8:16: error: 'num' was not declared in this scope
     inti,a[31],num=0,k=0;
                ^
Main.cc:8:22: error: 'k' was not declared in this scope
     inti,a[31],num=0,k=0;
                      ^
Main.cc:9:9: error: 'i' was not declared in this scope
     for(i=1;i<=30;i++)
         ^
Main.cc:11:5: error: 'i' was not declared in this scope
     i=1;
     ^