| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 138674 | 罗晟睿 | 13判断质数 | C++ | Compile Error | 0 MS | 0 KB | 238 | 2025-11-29 13:54:15 |
#include<bits/stdc++.h> using namespace std; int main(){ int m; bool b=1; cin>>m; for(int i=1;i<=m;i++){ if(m%i==0){ b=0; } } if(b==0){ cout<<"no"; } else{ cout<<"yes" } return 0; }
Main.cc: In function 'int main()': Main.cc:17:2: error: expected ';' before '}' token } ^