Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
84208 刘泽熙 寻找绝对素数 C++ Compile Error 0 MS 0 KB 385 2024-07-15 14:14:54

Tests(0/0):


Code:

#include<bits/stdc++.h> using namespace std; bool isZS(int a){ for(int j=2;j<a;j++){ if(a%j==0){ return false; } } return true; } int fx(int a){ int m=0; while(a>0){ m=m*10+a%10; a=a/10; } return m; } int main(){ int m,n,k,ag; cin>>n>>m; k=fx; if(isZS(i)&&isZS(k)){ if(ag==0){ cout<<i; ag=1; }else{ cout<<","<<i; } } }


Run Info:

Main.cc: In function 'int main()':
Main.cc:22:3: error: invalid conversion from 'int (*)(int)' to 'int' [-fpermissive]
  k=fx;
   ^
Main.cc:23:10: error: 'i' was not declared in this scope
  if(isZS(i)&&isZS(k)){
          ^