Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
115937 云朵 13判断质数 C++ Compile Error 0 MS 0 KB 263 2025-04-05 17:15:35

Tests(0/0):


Code:

#include <iostream> using namespace std; int main() { long n; cin>>n for(long i=2;i<n;i++) { if(n%i==0) { cout<<"No"; break; } } if(i==n) cout<<"Yes"; return 0; }


Run Info:

Main.cc: In function 'int main()':
Main.cc:7:5: error: expected ';' before 'for'
     for(long i=2;i