Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
128797 罗迎甲 环形密码 C++ Compile Error 0 MS 0 KB 704 2025-08-19 17:38:09

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(){ int a[31]={0}; int n,m; cin>>n>>m; for(int i=1;i<=n;i++) cin>>a[i]; int cnt=0; int i=0; int p=1; while(c<n){ if(a[p]!=0){ i++; if(i==m){ cnt++; m=a[p]; cout<<a[p]<<' '; a[p]=0; i++; } } p++; if(p==n+1)p=1; } cout<<endl; return 0; }


Run Info:

Main.cc: In function 'int main()':
Main.cc:16:11: error: 'c' was not declared in this scope
     while(c