| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 159639 | 张晓冉 | 判断素数II | C++ | Compile Error | 0 MS | 0 KB | 257 | 2026-09-05 19:20:32 |
#include<bits/stdc++.h> using namespace std; int m(int n){ int s = 0; for(int i = 2;i <= n;i++){ if(i % 2 != 0){ s++; } } return s; } int main(){ int n; cin>>n; cout<<m(s)<<endl; return 0; }
Main.cc: In function 'int main()':
Main.cc:15:13: error: 's' was not declared in this scope
cout<