Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
138673 罗晟睿 13判断质数 C++ Compile Error 0 MS 0 KB 256 2025-11-29 13:53:50

Tests(0/0):


Code:

#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" } printf("%d",m); return 0; }


Run Info:

Main.cc: In function 'int main()':
Main.cc:17:2: error: expected ';' before '}' token
  }
  ^