运行 ID: 41214

Main.cc: In function ‘bool is_comp(int)’:
Main.cc:5:5: error: ‘x’ was not declared in this scope
  if(x==1) return 0;
     ^
Main.cc:6:19: error: ‘x’ was not declared in this scope
  for(int i=2;i*i<=x;i++){
                   ^
Main.cc: In function ‘int main()’:
Main.cc:17:6: error: ‘is_prime’ was not declared in this scope
   if(is_prime(i)) cnt++;
      ^~~~~~~~
Main.cc:17:6: note: suggested alternative: ‘iswprint’
   if(is_prime(i)) cnt++;
      ^~~~~~~~
      iswprint