| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 84217 | 刘泽熙 | 哥德巴赫猜想 | C++ | Compile Error | 0 MS | 0 KB | 313 | 2024-07-15 14:25:22 |
#include<bits/stdc++.h> using namespace std; bool is(int ){ for(int i=2;i<=sprt(n);i++){ if(n%1==0){ return false; } } return true; } int main(){ int k; for(int i=6;i<=100;i=i+){ for(int j=3;j<i;j=j+2){ k=i-j;n if(s[i]){ cout<<i<<"="<<j<<'+'<<endl; break; } } }
Main.cc: In function 'bool is(int)':
Main.cc:4:22: error: 'n' was not declared in this scope
for(int i=2;i<=sprt(n);i++){
^
Main.cc:4:23: error: 'sprt' was not declared in this scope
for(int i=2;i<=sprt(n);i++){
^
Main.cc: In function 'int main()':
Main.cc:13:25: error: expected primary-expression before ')' token
for(int i=6;i<=100;i=i+){
^
Main.cc:15:10: error: 'n' was not declared in this scope
k=i-j;n
^
Main.cc:21:1: error: expected '}' at end of input
}
^