| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 160931 | 曾钰涵 | 判断质数(使用while循环) | C++ | Compile Error | 0 MS | 0 KB | 286 | 2026-09-26 16:49:22 |
#include<iostream> using namespace std; int main(){ int n=0,i=2; bool f=ture; cin>>n; while(i<=n/2){ if(n%i==0){ f=false; break; } i++; } if(f==true)cout<<"Yes"; else cout<<"No"; return 0; }
Main.cc: In function 'int main()':
Main.cc:5:12: error: 'ture' was not declared in this scope
bool f=ture;
^