| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 84193 | 刘慕莀 | 寻找绝对素数 | C++ | Compile Error | 0 MS | 0 KB | 442 | 2024-07-15 14:05:53 |
#include<bits/stdc++.h> using namespace std; bool iszs(int a) { for(int j=0;j<a;j++){ if(a%j==0){ return false; } } return true; } int fx(int a); int m=0; while(a>0){ n=m*10+a%10; a=a/10; } return m; int main(){ int m,n,k,flag=0; cin>>m>>n; for(int i=m;i<n;i+2){ k=fk(i); if(iszs(i)&&iszs(k)){ if(flag==0){ cout<<i; falg=1; }else{ cout<<','<<i; } } } return 0; }
Main.cc:13:1: error: expected unqualified-id before 'while'
while(a>0){
^
Main.cc:17:1: error: expected unqualified-id before 'return'
return m;
^
Main.cc: In function 'int main()':
Main.cc:21:19: warning: for increment expression has no effect [-Wunused-value]
for(int i=m;i