Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
70618 黄枳润 13判断质数 C++ Compile Error 0 MS 0 KB 307 2024-04-16 19:26:46

Tests(0/0):


Code:

#include<iostream> using namespace std; int main() { int i,j,n; cin>>i; for(j=i-1;j>=1;j--){ if(j!=a&&j!=1){ if(i%j!=0){ n+=1; } } } if(n==i){ cout<<yes; }else{ cout<<no; } return 0; }


Run Info:

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<