| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 126823 | 卢一鸣 | 素数判断 | C++ | Compile Error | 0 MS | 0 KB | 280 | 2025-07-22 11:22:54 |
#include<bits/stdc++.h> using namespace std; int main() { int x = 2, n, s = 0; cin >> n; for (int i = 2; i <= x - 1; i++) { if (x % i == 0) { s++; break; } } if (s == 0) { cout << "prime"; } else { cout << "not prime"; } return 0;
Main.cc: In function 'int main()':
Main.cc:23:10: error: expected '}' at end of input
return 0;
^