| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 161015 | 张蔚林 | 质数的和与积 | C++ | Compile Error | 0 MS | 0 KB | 308 | 2026-09-27 10:22:42 |
#include<bits/stdc++.h> using namespace std; bool xu(i){ if(i<=1) return false; for(int y=2;y<i,y++){ if(i%y==0) return 0; } } int main() { int ,ss1,s2,m=0; cin>>s; while(s1<=s/22){ s2=s-s1; if(xu(s1)&&xu(s2)){ if(m<s1*s2)m=s1*s2; } s1++; } cout<<m; return 0; }
Main.cc:3:9: error: 'i' was not declared in this scope
bool xu(i){
^
Main.cc:3:11: error: expected ',' or ';' before '{' token
bool xu(i){
^