| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 84346 | 张之隽 | 判断素数 | C++ | Compile Error | 0 MS | 0 KB | 246 | 2024-07-15 16:41:41 |
#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%==0) { cout<<"No"; return 0; } } cout<<"Yes"; return 0; }
Main.cc: In function 'int main()':
Main.cc:13:8: error: expected primary-expression before '=' token
if(n%==0)
^