Language: Java

#include <stdio.h>
int temp[50000];
int main(void){
????????int n,i, j, count;
????????for (i=2;i<=50000;i++)a[i]=1;
????????for (i=2;i*i<= 50000;i++){
????????????????if (a[i]==1)
????????????????????????for (j=i*i;j<=50000;j+=i)a[j]=0;
????????????????}
????????}
????????while(1){
????????????????count=0;
????????????????scanf("%d", &n);
????????????????if (n==0)return (0);
????????????????for (i=0;i<=50000;i++){
????????????????????????if (a[i]==1&&n-i>=i&&a[n-i]==1){
????????????????????????????????count++;
????????????????????????}
????????????????}
????????????????printf("%d\n",count);
????????}
??????????
}

Compiler output:
Main.java:1: error: illegal character: '#'
#include <stdio.h>
^
Main.java:1: error: class, interface, enum, or record expected
#include <stdio.h>
         ^
Main.java:4: error: not a statement
????????int n,i, j, count;
^
Main.java:4: error: not a statement
????????int n,i, j, count;
              ^
Main.java:4: error: not a statement
????????int n,i, j, count;
                 ^
Main.java:4: error: not a statement
????????int n,i, j, count;
                    ^
Main.java:5: error: not a statement
????????for (i=2;i<=50000;i++)a[i]=1;
^
Main.java:6: error: not a statement
????????for (i=2;i*i<= 50000;i++){
^
Main.java:7: error: not a statement
????????????????if (a[i]==1)
^
Main.java:8: error: not a statement
????????????????????????for (j=i*i;j<=50000;j+=i)a[j]=0;
^
Main.java:9: error: not a statement
????????????????}
^
Main.java:10: error: not a statement
????????}
^
Main.java:3: error: unnamed classes are a preview feature and are disabled by default.
int main(void){
^
  (use --enable-preview to enable unnamed classes)
Main.java:3: error: <identifier> expected
int main(void){
             ^
Main.java:4: error: illegal start of expression
????????int n,i, j, count;
 ^
Main.java:4: error: illegal start of expression
????????int n,i, j, count;
  ^
Main.java:4: error: illegal start of expression
????????int n,i, j, count;
   ^
Main.java:4: error: illegal start of expression
????????int n,i, j, count;
    ^
Main.java:4: error: illegal start of expression
????????int n,i, j, count;
     ^
Main.java:4: error: illegal start of expression
????????int n,i, j, count;
      ^
Main.java:4: error: illegal start of expression
????????int n,i, j, count;
       ^
Main.java:4: error: '.class' expected
????????int n,i, j, count;
            ^
Main.java:4: error: : expected
????????int n,i, j, count;
             ^
Main.java:4: error: ';' expected
????????int n,i, j, count;
               ^
Main.java:4: error: ';' expected
????????int n,i, j, count;
                  ^
Main.java:5: error: illegal start of expression
????????for (i=2;i<=50000;i++)a[i]=1;
 ^
Main.java:5: error: illegal start of expression
????????for (i=2;i<=50000;i++)a[i]=1;
  ^
Main.java:5: error: illegal start of expression
????????for (i=2;i<=50000;i++)a[i]=1;
   ^
Main.java:5: error: illegal start of expression
????????for (i=2;i<=50000;i++)a[i]=1;
    ^
Main.java:5: error: illegal start of expression
????????for (i=2;i<=50000;i++)a[i]=1;
     ^
Main.java:5: error: illegal start of expression
????????for (i=2;i<=50000;i++)a[i]=1;
      ^
Main.java:5: error: illegal start of expression
????????for (i=2;i<=50000;i++)a[i]=1;
       ^
Main.java:5: error: illegal start of expression
????????for (i=2;i<=50000;i++)a[i]=1;
        ^
Main.java:6: error: illegal start of expression
????????for (i=2;i*i<= 50000;i++){
 ^
Main.java:6: error: illegal start of expression
????????for (i=2;i*i<= 50000;i++){
  ^
Main.java:6: error: illegal start of expression
????????for (i=2;i*i<= 50000;i++){
   ^
Main.java:6: error: illegal start of expression
????????for (i=2;i*i<= 50000;i++){
    ^
Main.java:6: error: illegal start of expression
????????for (i=2;i*i<= 50000;i++){
     ^
Main.java:6: error: illegal start of expression
????????for (i=2;i*i<= 50000;i++){
      ^
Main.java:6: error: illegal start of expression
????????for (i=2;i*i<= 50000;i++){
       ^
Main.java:6: error: illegal start of expression
????????for (i=2;i*i<= 50000;i++){
        ^
Main.java:7: error: illegal start of expression
????????????????if (a[i]==1)
 ^
Main.java:7: error: illegal start of expression
????????????????if (a[i]==1)
  ^
Main.java:7: error: illegal start of expression
????????????????if (a[i]==1)
   ^
Main.java:7: error: illegal start of expression
????????????????if (a[i]==1)
    ^
Main.java:7: error: illegal start of expression
????????????????if (a[i]==1)
     ^
Main.java:7: error: illegal start of expression
????????????????if (a[i]==1)
      ^
Main.java:7: error: illegal start of expression
????????????????if (a[i]==1)
       ^
Main.java:7: error: illegal start of expression
????????????????if (a[i]==1)
        ^
Main.java:7: error: illegal start of expression
????????????????if (a[i]==1)
         ^
Main.java:7: error: illegal start of expression
????????????????if (a[i]==1)
          ^
Main.java:7: error: illegal start of expression
????????????????if (a[i]==1)
           ^
Main.java:7: error: illegal start of expression
????????????????if (a[i]==1)
            ^
Main.java:7: error: illegal start of expression
????????????????if (a[i]==1)
             ^
Main.java:7: error: illegal start of expression
????????????????if (a[i]==1)
              ^
Main.java:7: error: illegal start of expression
????????????????if (a[i]==1)
               ^
Main.java:7: error: illegal start of expression
????????????????if (a[i]==1)
                ^
Main.java:8: error: illegal start of expression
????????????????????????for (j=i*i;j<=50000;j+=i)a[j]=0;
 ^
Main.java:8: error: illegal start of expression
????????????????????????for (j=i*i;j<=50000;j+=i)a[j]=0;
  ^
Main.java:8: error: illegal start of expression
????????????????????????for (j=i*i;j<=50000;j+=i)a[j]=0;
   ^
Main.java:8: error: illegal start of expression
????????????????????????for (j=i*i;j<=50000;j+=i)a[j]=0;
    ^
Main.java:8: error: illegal start of expression
????????????????????????for (j=i*i;j<=50000;j+=i)a[j]=0;
     ^
Main.java:8: error: illegal start of expression
????????????????????????for (j=i*i;j<=50000;j+=i)a[j]=0;
      ^
Main.java:8: error: illegal start of expression
????????????????????????for (j=i*i;j<=50000;j+=i)a[j]=0;
       ^
Main.java:8: error: illegal start of expression
????????????????????????for (j=i*i;j<=50000;j+=i)a[j]=0;
        ^
Main.java:8: error: illegal start of expression
????????????????????????for (j=i*i;j<=50000;j+=i)a[j]=0;
         ^
Main.java:8: error: illegal start of expression
????????????????????????for (j=i*i;j<=50000;j+=i)a[j]=0;
          ^
Main.java:8: error: illegal start of expression
????????????????????????for (j=i*i;j<=50000;j+=i)a[j]=0;
           ^
Main.java:8: error: illegal start of expression
????????????????????????for (j=i*i;j<=50000;j+=i)a[j]=0;
            ^
Main.java:8: error: illegal start of expression
????????????????????????for (j=i*i;j<=50000;j+=i)a[j]=0;
             ^
Main.java:8: error: illegal start of expression
????????????????????????for (j=i*i;j<=50000;j+=i)a[j]=0;
              ^
Main.java:8: error: illegal start of expression
????????????????????????for (j=i*i;j<=50000;j+=i)a[j]=0;
               ^
Main.java:8: error: illegal start of expression
????????????????????????for (j=i*i;j<=50000;j+=i)a[j]=0;
                ^
Main.java:8: error: illegal start of expression
????????????????????????for (j=i*i;j<=50000;j+=i)a[j]=0;
                 ^
Main.java:8: error: illegal start of expression
????????????????????????for (j=i*i;j<=50000;j+=i)a[j]=0;
                  ^
Main.java:8: error: illegal start of expression
????????????????????????for (j=i*i;j<=50000;j+=i)a[j]=0;
                   ^
Main.java:8: error: illegal start of expression
????????????????????????for (j=i*i;j<=50000;j+=i)a[j]=0;
                    ^
Main.java:8: error: illegal start of expression
????????????????????????for (j=i*i;j<=50000;j+=i)a[j]=0;
                     ^
Main.java:8: error: illegal start of expression
????????????????????????for (j=i*i;j<=50000;j+=i)a[j]=0;
                      ^
Main.java:8: error: illegal start of expression
????????????????????????for (j=i*i;j<=50000;j+=i)a[j]=0;
                       ^
Main.java:8: error: illegal start of expression
????????????????????????for (j=i*i;j<=50000;j+=i)a[j]=0;
                        ^
Main.java:9: error: illegal start of expression
????????????????}
 ^
Main.java:9: error: illegal start of expression
????????????????}
  ^
Main.java:9: error: illegal start of expression
????????????????}
   ^
Main.java:9: error: illegal start of expression
????????????????}
    ^
Main.java:9: error: illegal start of expression
????????????????}
     ^
Main.java:9: error: illegal start of expression
????????????????}
      ^
Main.java:9: error: illegal start of expression
????????????????}
       ^
Main.java:9: error: illegal start of expression
????????????????}
        ^
Main.java:9: error: illegal start of expression
????????????????}
         ^
Main.java:9: error: illegal start of expression
????????????????}
          ^
Main.java:9: error: illegal start of expression
????????????????}
           ^
Main.java:9: error: illegal start of expression
????????????????}
            ^
Main.java:9: error: illegal start of expression
????????????????}
             ^
Main.java:9: error: illegal start of expression
????????????????}
              ^
Main.java:9: error: illegal start of expression
????????????????}
               ^
Main.java:9: error: illegal start of expression
????????????????}
                ^
Main.java:10: error: illegal start of expression
????????}
 ^
Main.java:10: error: illegal start of expression
????????}
  ^
Main.java:10: error: illegal start of expression
????????}
   ^
100 errors
only showing the first 100 errors, of 113 total; use -Xmaxerrs if you would like to see more