| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 84221 | 游四鑫 | 哥德巴赫猜想 | C++ | Compile Error | 0 MS | 0 KB | 372 | 2024-07-15 14:27:19 |
#include<iostream> #include<cmath> using namespace std; int x(int n){ for(int v=2;v<=sqrt(n);v++){ if(n%v==0){ return 0; } } return 1; } int mine(){ int s=0; for(int i=6;i<=100;i=i+2){ for(int j=3;j<i/2;j=j+2){ s=i-j; if(x(j)&&x(s)){ cout<<i<<'='<<j<<'+'<<s; break; } } } return 0; }
/usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/crt1.o: In function `_start': (.text+0x20): undefined reference to `main' collect2: error: ld returned 1 exit status