| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 76719 | 张誉腾 | 环形密码 | C++ | Compile Error | 0 MS | 0 KB | 379 | 2024-06-02 16:57:21 |
#include<bits/stdc++.h> using namespace std; int main() { int n,m; cin>>n>>m; int mima[n+1]; int a[n+1]= {0}; fot(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=0; } if(a[ren]==0) { bao++; if(bao==m) { a[ren]=0; bao=0; sr++; m=mima[ren]; } } } }
Main.cc: In function 'int main()':
Main.cc:10:6: error: expected primary-expression before 'int'
fot(int i=1;i<=n;i++){
^
Main.cc:10:14: error: 'i' was not declared in this scope
fot(int i=1;i<=n;i++){
^