Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
76726 周梓易 环形密码 C++ Compile Error 0 MS 0 KB 416 2024-06-02 17:00:02

Tests(0/0):


Code:

#include<bits/stdc++.h> using namespace std; int main(){ int n,m; cin>>n>>m; int die[n+1]={0}; int mima[i]; for(int i=1;i<=n;i++){ cin>>mima[i]; } int sr=0; int ren=0,bao=0; while(sr!=n){ ren++; if(ren>n){ ren=1; } if(die[ren]==0){ bao++; if(bao==m){ cout<<mime[ren]<<" "; die[ren]=1; bao=0; sr++; m=mime[ren]; } } } return 0; }


Run Info:

Main.cc: In function 'int main()':
Main.cc:9:11: error: 'i' was not declared in this scope
  int mima[i];
           ^
Main.cc:11:8: error: 'mima' was not declared in this scope
   cin>>mima[i];
        ^
Main.cc:23:11: error: 'mime' was not declared in this scope
     cout<