Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
133395 田祥江 18排列骨头 C++ Compile Error 0 MS 0 KB 329 2025-10-18 16:53:39

Tests(0/0):


Code:

#include<bits/stdc++.h> using namespace std; int a[31]; int main(){ int cnt=0; int i=1; int ss=1; while(con<15){ if(a[i]==0){ ss++; if(ss==9){ a[i]=1; cnt++; ss=0; } } i++; if(i>=30)i=1; } for(int j=1;j<=30;j++){ if(a[j]==0){ cout<<j<<" "; } } return 0; }


Run Info:

Main.cc: In function 'int main()':
Main.cc:8:8: error: 'con' was not declared in this scope
  while(con<15){
        ^