| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 76293 | cfx | 100至200之间的所有素数 | C++ | Compile Error | 0 MS | 0 KB | 379 | 2024-06-02 10:53:10 |
#include<bits/stdc++.h> using namespace std; int main() { int zs=1; int i; for(int j=100;j<=200;j++) { for(i=2;i<n;i++) { if(n%i==0) { cout<<"not prime"<<endl; zs=0; break; } } if(zs==1) { cout<<"prime"<<endl; } } return 0; }
Main.cc: In function 'int main()':
Main.cc:9:19: error: 'n' was not declared in this scope
for(i=2;i