Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
94669 | 刘佳宇 | 13判断质数 | C++ | Compile Error | 0 MS | 0 KB | 248 | 2024-10-26 10:40:59 |
#include<iostream> using namespace std; int main(){ int a,sum=0; cin>>a; for(int i=2;i<a;i++){ if(a%i==0){ cout<<"NO"; return 0; } } COUT<<"Yes"; return 0; }
Main.cc: In function 'int main()': Main.cc:14:5: error: 'COUT' was not declared in this scope COUT<<"Yes"; ^ Main.cc:4:11: warning: unused variable 'sum' [-Wunused-variable] int a,sum=0; ^