| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 84224 | 胡盛哲 | 哥德巴赫猜想 | C++ | Compile Error | 0 MS | 0 KB | 351 | 2024-07-15 14:28:21 |
#include<bits/stdc++.h> using namespace std; bool isss(int n) { for(int i=2; i<=sqrt(n); i++) { if(n%i==0) { return false; } } return true; } int main() { int k; for(int i=6; i<=100; i=i+2) { for(int j=3; j<i; j=j+2) { k=i-j; if(isss(j)&&isss(k)) { cout << i << '=' <<j<<'+'<<k<<endl; break; } } }
Main.cc: In function 'int main()': Main.cc:21:2: error: expected '}' at end of input } ^