| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 81009 | 李雨昊 | 报数问题 | C++ | Compile Error | 0 MS | 0 KB | 260 | 2024-07-12 08:34:55 |
#include<iostream> using namespace std; int main(){ int n,m; cin>>n>>m; int cnt=0,t=0,i=1; while(cnt<n){ if(a[i]==0){ t++; if(t==m){ cnt++; cout<<i<<" "; a[i]=1; t=0; } } i++; if(i>n){ i=1; } } }
Main.cc: In function 'int main()':
Main.cc:8:6: error: 'a' was not declared in this scope
if(a[i]==0){
^