| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 84336 | 赵文浚 | 判断素数 | C++ | Compile Error | 0 MS | 0 KB | 272 | 2024-07-15 16:39:26 |
#include<bits/stdc++.h> using namespace std; int main(){ int n; cin>>n; if(n==1) { cout<<"No"; return 0; } for(int i=2;i<=sqrt(n);i++) { if(n%i==0) { cout<<"No"; return 0; } } cout<<"Yes"; return 0;
Main.cc: In function 'int main()':
Main.cc:20:10: error: expected '}' at end of input
return 0;
^