Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
1749 杨洋杰 13判断质数 C++ Compile Error 0 MS 0 KB 366 2023-11-04 18:35:33

Tests(0/0):


Code:

#include<iostream> #include<cmath> using namespace std; int main(){ long long n; bool f=true; cin>>n; if(n==1){ cout<<"No"<<endl; return 0; } for(long long i=2;i<=n-1;i++){ if(n%i==0) f=false; } if(f==false) cout<<"No"<<endl; else cout<<"Yes"<<endl; return 0;


Run Info:

Main.cc: In function 'int main()':
Main.cc:20:13: error: expected '}' at end of input
     return 0;
             ^