| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 70619 | 黄枳润 | 13判断质数 | C++ | Compile Error | 0 MS | 0 KB | 307 | 2024-04-16 19:27:44 |
#include<iostream> using namespace std; int main() { int i,j,n; cin>>i; for(j=i-1;j>=2;j--){ if(j!=a&&j!=1){ if(i%j!=0){ n+=1; } } } if(n==i){ cout<<yes; }else{ cout<<no; } return 0; }
Main.cc: In function 'int main()':
Main.cc:8:15: error: 'a' was not declared in this scope
if(j!=a&&j!=1){
^
Main.cc:15:15: error: 'yes' was not declared in this scope
cout<