Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
109120 | scscscaa | 100至200之间的所有素数 | C++ | Compile Error | 0 MS | 0 KB | 194 | 2025-01-27 22:03:05 |
#include<iostream> #include<cmath> int ab(int a){ for(int i=2;i<=sqrt(a);i++)if(a%i==0)return 0; return 1; } int main(){ for(int i=100;i<=200;i++)if(ab(i)==1)cout<<i<<endl; }
Main.cc: In function 'int main()': Main.cc:8:42: error: 'cout' was not declared in this scope for(int i=100;i<=200;i++)if(ab(i)==1)cout<& __os) ^