| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 153264 | ztx | 判断质数(使用while循环) | C++ | Compile Error | 0 MS | 0 KB | 204 | 2026-05-11 16:24:13 |
#include<iostream> #include<cstdio> #include<cstring> #include<cmath> using namespace std; int main(){ int n,i; cin>>n; bool flag = 0; i=2; while(i<n) {
Main.cc: In function 'int main()':
Main.cc:13:4: error: expected '}' at end of input
{
^
Main.cc:10:9: warning: unused variable 'flag' [-Wunused-variable]
bool flag = 0;
^
Main.cc:13:4: error: expected '}' at end of input
{
^