criyle/codenet-compile-errors huggingface dataset:
Language: Java

import java.io.BufferedWriter;
import java.io.IOException;
import java.io.StringWriter;
import java.util.Scanner;

public class Main {
    int i;
    int n;
    int x;
    String result;
    StringBuilder writeBuilder;
    StringWriter stringWriter;
    BufferedWriter bufferedWriter;
    public Main(){
        this.n = 0;
        this.i = 1;
        this.x = 0;
        this.result = "";
        this.writeBuilder = new StringBuilder();
        this.stringWriter = new StringWriter();
        this.bufferedWriter = new BufferedWriter(this.stringWriter);
    }
    public static void main(String[] args) throws IOException {
        Scanner input = new Scanner(System.in);
        int n = input.nextInt();
        ITP1_5_D problem = new Main();
        problem.call(n);
    }

    public void call(int n) throws IOException {
        
        this.n = n;
        checkNum();
        this.writeBuilder.append("\n");
        this.result += "\n";
        System.out.println(this.writeBuilder);
       // bufferedWriter.(this.writeBuilder.toString());   //does not display
    }

    public void checkNum() throws IOException {
        x = i;
        if (x % 3 == 0) {
            this.writeBuilder.append(" ");
            this.writeBuilder.append(String.valueOf(i));
            result += " " + i;
            endCheckNum();
        }
        include3();
    }

    public void include3() throws IOException {
        if (x % 10 == 3 && i <= n) {
            this.writeBuilder.append(" ");
            this.writeBuilder.append(String.valueOf(i));
            this.result += " " + i;
            endCheckNum();
        }
        x /= 10;
        if (x != 0) {
            include3();
        }
        endCheckNum();

    }

    public void endCheckNum() {
        if (++i <= n) {
            checkNum();
        }
    }
}



Compiler output:
Main.java:26: error: cannot find symbol
        ITP1_5_D problem = new Main();
        ^
  symbol:   class ITP1_5_D
  location: class Main
1 error
Language: Java

import java.io.BufferedWriter;
import java.io.IOException;
import java.io.StringWriter;
import java.util.Scanner;

public class Main {
    int i;
    int n;
    int x;
    String result;
    StringBuilder writeBuilder;
    StringWriter stringWriter;
    BufferedWriter bufferedWriter;
    public Main(){
        this.n = 0;
        this.i = 1;
        this.x = 0;
        this.result = "";
        this.writeBuilder = new StringBuilder();
        this.stringWriter = new StringWriter();
        this.bufferedWriter = new BufferedWriter(this.stringWriter);
    }
    public static void main(String[] args) throws IOException {
        Scanner input = new Scanner(System.in);
        int n = input.nextInt();
        main problem = new Main();
        problem.call(n);
    }

    public void call(int n) throws IOException {
        
        this.n = n;
        checkNum();
        this.writeBuilder.append("\n");
        this.result += "\n";
        System.out.println(this.writeBuilder);
       // bufferedWriter.(this.writeBuilder.toString());   //does not display
    }

    public void checkNum() throws IOException {
        x = i;
        if (x % 3 == 0) {
            this.writeBuilder.append(" ");
            this.writeBuilder.append(String.valueOf(i));
            result += " " + i;
            endCheckNum();
        }
        include3();
    }

    public void include3() throws IOException {
        if (x % 10 == 3 && i <= n) {
            this.writeBuilder.append(" ");
            this.writeBuilder.append(String.valueOf(i));
            this.result += " " + i;
            endCheckNum();
        }
        x /= 10;
        if (x != 0) {
            include3();
        }
        endCheckNum();

    }

    public void endCheckNum() {
        if (++i <= n) {
            checkNum();
        }
    }
}



Compiler output:
Main.java:26: error: cannot find symbol
        main problem = new Main();
        ^
  symbol:   class main
  location: class Main
1 error
Language: Java

import java.io.BufferedWriter;
import java.io.IOException;
import java.io.StringWriter;
import java.util.Scanner;

public class Main {
    int i;
    int n;
    int x;
    String result;
    StringBuilder writeBuilder;
    StringWriter stringWriter;
    BufferedWriter bufferedWriter;
    public Main(){
        this.n = 0;
        this.i = 1;
        this.x = 0;
        this.result = "";
        this.writeBuilder = new StringBuilder();
        this.stringWriter = new StringWriter();
        this.bufferedWriter = new BufferedWriter(this.stringWriter);
    }
    public static void main(String[] args) throws IOException {
        Scanner input = new Scanner(System.in);
        int n = input.nextInt();
        Main problem = new Main();
        problem.call(n);
    }

    public void call(int n) throws IOException {
        
        this.n = n;
        checkNum();
        this.writeBuilder.append("\n");
        this.result += "\n";
        System.out.println(this.writeBuilder);
       // bufferedWriter.(this.writeBuilder.toString());   //does not display
    }

    public void checkNum() throws IOException {
        x = i;
        if (x % 3 == 0) {
            this.writeBuilder.append(" ");
            this.writeBuilder.append(String.valueOf(i));
            result += " " + i;
            endCheckNum();
        }
        include3();
    }

    public void include3() throws IOException {
        if (x % 10 == 3 && i <= n) {
            this.writeBuilder.append(" ");
            this.writeBuilder.append(String.valueOf(i));
            this.result += " " + i;
            endCheckNum();
        }
        x /= 10;
        if (x != 0) {
            include3();
        }
        endCheckNum();

    }

    public void endCheckNum() {
        if (++i <= n) {
            checkNum();
        }
    }
}



Compiler output:
Main.java:68: error: unreported exception IOException; must be caught or declared to be thrown
            checkNum();
                    ^
1 error
Language: Java

import java.util.Scanner;
public class Main {

	public static void main(String[] args) {
		Scanner sc=new Scanner(System.in);
		int N=sc.nextInt();
		StringBuilder sb=new StringBuilder();
		sb.append(" ");
		for(int i=1; i<=N; i++) {
			int x=i;
			if(i%3==0) {
				sb.append(i+" ");
			}else {
				while(x>=1){
					if(x%10==3){
						sb.append(i+" ");
						break;
					}
					x/=10;
				}
			}
		}
		
		System.out.println(sb);
	}

}

	public static void main(String[] args) {
		Scanner sc=new Scanner(System.in);
		int N=sc.nextInt();
		StringBuilder sb=new StringBuilder();
		sb.append(" ");
		for(int i=1; i<=N; i++) {
			int x=i;
			if(i%3==0) {
				sb.append(i+" ");
			}else {
				while(x>=1){
					if(x%10==3){
						sb.append(i+" ");
						break;
					}
					x/=10;
				}
			}
		}
		
		System.out.println(sb);
	}

}



Compiler output:
Main.java:29: error: unnamed classes are a preview feature and are disabled by default.
	public static void main(String[] args) {
	              ^
  (use --enable-preview to enable unnamed classes)
Main.java:52: error: class, interface, enum, or record expected
}
^
2 errors
Language: Java

import java.util.Scanner;

public class MyClass {
	public static void main(String[] args){
        
        Scanner sc = new Scanner(System.in);
        int a,i;
        a = sc.nextInt();
        for(i=1;i<a+1;i++){
            if(i%3==0)System.out.print(" "+i);
        }
   }
}


Compiler output:
Main.java:3: error: class MyClass is public, should be declared in a file named MyClass.java
public class MyClass {
       ^
1 error
Language: Java

import java.util.Scanner;

public class MyClass {
	public static void main(String[] args){
        
        Scanner sc = new Scanner(System.in);
        int a,i;
        a = sc.nextInt();
        for(i=1;i<a+1;i++){
            if(i%3==0)System.out.print(" "+i);
           	else if(i%10==0)System.out.print(" "+i);
            else if(i%10==3&&i%10!=0)System.out.print(" "+i);
            else;
        }
   }
}


Compiler output:
Main.java:3: error: class MyClass is public, should be declared in a file named MyClass.java
public class MyClass {
       ^
1 error
Language: Java

import java.util.Scanner;

public class MyClass {
	public static void main(String[] args){
        
        Scanner sc = new Scanner(System.in);
        int a,i;
        a = sc.nextInt();
        for(i=1;i<a+1;i++){
            if(i%3==0||Integer.toString(i).contains("3"))System.out.println(" "+i);

        }
   }
}


Compiler output:
Main.java:3: error: class MyClass is public, should be declared in a file named MyClass.java
public class MyClass {
       ^
1 error
Language: Java

import java.util.Scanner;
class Main{
 public static void main(String[]args){

  Scanner sc= new Scanner(System.in);
  int n= sc.nextInt();
  for(int i=1;i<n;i++){
   if(i%3==0||Integer.toString(i).contains("3");
System.out.print(" "+i);
}
System.out.println();
}


Compiler output:
Main.java:8: error: ')' expected
   if(i%3==0||Integer.toString(i).contains("3");
                                               ^
Main.java:12: error: reached end of file while parsing
}
 ^
2 errors
Language: Java

import java.util.Scanner;
class Main{
 public static void main(String[]args){

  Scanner sc= new Scanner(System.in);
  int n= sc.nextInt();
  for(int i=1;i<n;i++){
   if(i%3==0||Integer.toString(i).contains("3");
System.out.print(" "+i);
}
System.out.println();
}
}


Compiler output:
Main.java:8: error: ')' expected
   if(i%3==0||Integer.toString(i).contains("3");
                                               ^
1 error
Language: Java

import java.util.Scanner;
class Main{
 public static void main(String[]args){

  Scanner sc= new Scanner(System.in);
  int n= sc.nextInt();
  for(int i<=1;i<n;i++){
   if(i%3==0||Integer.toString(i).contains("3"));
System.out.print(" "+i);
}
System.out.println();
}
}


Compiler output:
Main.java:7: error: ';' expected
  for(int i<=1;i<n;i++){
           ^
Main.java:7: error: not a statement
  for(int i<=1;i<n;i++){
                ^
Main.java:7: error: ')' expected
  for(int i<=1;i<n;i++){
                  ^
Main.java:7: error: ';' expected
  for(int i<=1;i<n;i++){
                      ^
4 errors
Language: Java

import java.util.Scanner;
class Main{
 public static void main(String[]args){

  Scanner sc= new Scanner(System.in);
  int n= sc.nextInt();
  for(int i;<=1;i<n;i++){
   if(i%3==0||Integer.toString(i).contains("3"));
System.out.print(" "+i);
}
System.out.println();
}
}


Compiler output:
Main.java:7: error: illegal start of expression
  for(int i;<=1;i<n;i++){
            ^
Main.java:7: error: not a statement
  for(int i;<=1;i<n;i++){
                 ^
Main.java:7: error: ')' expected
  for(int i;<=1;i<n;i++){
                   ^
Main.java:7: error: ';' expected
  for(int i;<=1;i<n;i++){
                       ^
4 errors
Language: Java

import java.util.Scanner;
class Main{
 public static void main(String[]args){

  Scanner sc= new Scanner(System.in);
  int n= sc.nextInt();
  for(int i=1;;i<=n;i++){
   if(i%3==0||Integer.toString(i).contains("3"));
System.out.print(" "+i);
}
System.out.println();
}
}


Compiler output:
Main.java:7: error: not a statement
  for(int i=1;;i<=n;i++){
                ^
Main.java:7: error: ')' expected
  for(int i=1;;i<=n;i++){
                   ^
Main.java:7: error: ';' expected
  for(int i=1;;i<=n;i++){
                       ^
3 errors
Language: Java

import java.util.Scanner;
class Main{
 public static void main(String[]args){

  Scanner sc= new Scanner(System.in);
  int n= sc.nextInt();
  for(int i=1;i=n;i++){
   if(i%3==0||Integer.toString(i).contains("3"));
System.out.print(" "+i);
}
System.out.println();
}
}


Compiler output:
Main.java:7: error: incompatible types: int cannot be converted to boolean
  for(int i=1;i=n;i++){
               ^
1 error
Language: Java

import java.util.Scanner;
class Main
{
public static void main(String[] args)
 {
 Scanner sc = new Scanner(System.in);
  int i, n, x;
  n = sc.nextInt();     
  for(i =1; i<=n; i++){
   x = i;
   if(x % 3 == 0)
    System.out.printf(" %d", i);
    continue;
   }
   do{
    if(x % 10 == 3){
    System.out.printf(" %d", i);
    break;
   }
   x /= 10;
   if(x)break;
   }while(x);
}
   System.out.printf("/n");
return 0;
   
}
}


Compiler output:
Main.java:24: error: <identifier> expected
   System.out.printf("/n");
                    ^
Main.java:24: error: illegal start of type
   System.out.printf("/n");
                     ^
Main.java:25: error: illegal start of type
return 0;
^
Main.java:28: error: class, interface, enum, or record expected
}
^
4 errors
Language: Java

import java.util.Scanner;
class Main
{
public static void main(String[] args)
 {
 Scanner sc = new Scanner(System.in);
  int i, n, x;
  n = sc.nextInt();     
  for(i =1; i<=n; i++){
   x = i;
   if(x % 3 == 0)
    System.out.printf(" %d", i);
    continue;
   }
   do{
    if(x % 10 == 3){
    System.out.printf(" %d", i);
    break;
   }
   x /= 10;
   if(x)break;
   }while(x);
}
return 0;
   
}
}


Compiler output:
Main.java:24: error: illegal start of type
return 0;
^
Main.java:27: error: class, interface, enum, or record expected
}
^
2 errors
Language: Java

import java.util.Scanner;
class Main
{
public static void main(String[] args)
 {
 Scanner sc = new Scanner(System.in);
  int i, n, x;
  n = sc.nextInt();     
  for(i =1; i<=n; i++){
   x = i;
   if(x % 3 == 0)
    System.out.printf(" %d", i);
    continue;
   }
   do{
    if(x % 10 == 3){
    System.out.printf(" %d", i);
    break;
   }
   x /= 10;
   if(x)break;
   }while(x);
}
   
}
}


Compiler output:
Main.java:26: error: class, interface, enum, or record expected
}
^
1 error
Language: Java

import java.util.Scanner;
class Main
{
public static void main(String[] args)
 {
 Scanner sc = new Scanner(System.in);
  int i, n, x;
  n = sc.nextInt();     
  for(i =1; i<=n; i++){
   x = i;
   if(x % 3 == 0)
    System.out.printf(" %d", i);
    continue;
   }
   do{
    if(x % 10 == 3){
    System.out.printf(" %d", i);
    break;
   }
   x /= 10;
   if(x)break;
   }while(x);
}
}
   
}
}


Compiler output:
Main.java:26: error: class, interface, enum, or record expected
}
^
1 error
Language: Java

import java.util.Scanner;
class Main
{
public static void main(String[] args)
 {
 Scanner sc = new Scanner(System.in);
  int i, n, x;
  n = sc.nextInt();     
  for(i =1; i<=n; i++){
   x = i;
   if(x % 3 == 0){
    System.out.printf(" %d", i);
    continue;
   }
   do{
    if(x % 10 == 3){
    System.out.printf(" %d", i);
    break;
   }
   x /= 10;
   if(x)break;
   }while(x);
}
}  
}
}


Compiler output:
Main.java:26: error: class, interface, enum, or record expected
}
^
1 error
Language: Java

import java.util.Scanner;
class Main
{
public static void main(String[] args)
 {
 Scanner sc = new Scanner(System.in);
  int i, n, x;
  n = sc.nextInt();     
  for(i =1; i<=n; i++){
   x = i;
   if(x % 3 == 0){
    System.out.printf(" %d", i);
    continue;
   }
   do{
    if(x % 10 == 3){
    System.out.printf(" %d", i);
    break;
   }
   x /= 10;
   if(x)break;
   }while(x);
}
}  
}



Compiler output:
Main.java:21: error: incompatible types: int cannot be converted to boolean
   if(x)break;
      ^
Main.java:22: error: incompatible types: int cannot be converted to boolean
   }while(x);
          ^
2 errors
Language: Java

import java.util.Scanner;
class Main
{
public static void main(String[] args)
 {
 Scanner sc = new Scanner(System.in);
  int i, n, x;
  n = sc.nextInt();     
  for(i =1; i<=n; i++){
   x = i;
   if(x % 3 == 0){
    System.out.printf(" %d", i);
    continue;
   }
   do{
    if(x % 10 == 3){
    System.out.printf(" %d", i);
    break;
   }
   x /= 10;
   if(x)break;
   }while(true);
}
}  
}



Compiler output:
Main.java:21: error: incompatible types: int cannot be converted to boolean
   if(x)break;
      ^
1 error
Language: Java

import java.util.Scanner;
class Main
{
public static void main(String[] args)
 {
 Scanner sc = new Scanner(System.in);
  int i, n, x;
  n = sc.nextInt();     
  for(i =1; i<=n; i++){
   x = i;
   if(x % 3 == 0){
    System.out.printf(" %d", i);
    continue;
   }
   do{
    if(x % 10 == 3){
    System.out.printf(" %d", i);
    break;
   }
   x /= 10;
   if(x<10)break;
   }while(true);
}
   System.out.println();
   return 0;
}  
}



Compiler output:
Main.java:25: error: incompatible types: unexpected return value
   return 0;
          ^
1 error
Language: Java

import java.io.BufferedReader;
import java.io.InputStreamReader;
public class　Main{
	public static void main(String[]args)throws Exception{
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String str;
		int n=0;
		
		while((str=br.readLine())!=null){
			n=Integer.parseInt(str);
			for(int i=1;i<=n;i++){
				int x=i;
				if(x%3==0){
					System.out.print(" "+i);
					continue;
				}
				do{
					if(x%10==3){
						System.out.print(" "+i);
					}
					x/=10;
				}while(x!=0);
			}
			System.out.print("\n");
			break;
		}
		br.close();
	}
}

Compiler output:
Main.java:3: error: illegal character: '\u3000'
public class?Main{
            ^
1 error
Language: Java

00.05 sec    17348 KB    20 lines     302 bytes    2014-07-30 21:43
?
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
import java.util.Scanner;
 
class Main{
public static void main(String[] args){
 
Scanner scan = new Scanner(System.in);
 
int x = scan. nextInt();
 
for(int i = 0; i <= x ; i++){
     if(i%10!=3) continue;
     if(i%3!=0) continue;
 
 
         System.out.print(i +" ");
}
         System.out.println();
}
}

Compiler output:
Main.java:1: error: class, interface, enum, or record expected
00.05 sec    17348 KB    20 lines     302 bytes    2014-07-30 21:43
^
1 error
Language: Java

public class Main {
	public static void main(String[] args) throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		int a=Integer.parseInt(br.readLine());
		for(int i=3;i<=a;i++){
			if(i%10==3||i%3==0||(i/10)%3==0)System.out.print(i+" ");	
			
		}System.out.println();
}}

Compiler output:
Main.java:2: error: cannot find symbol
	public static void main(String[] args) throws IOException {
	                                              ^
  symbol:   class IOException
  location: class Main
Main.java:3: error: cannot find symbol
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		^
  symbol:   class BufferedReader
  location: class Main
Main.java:3: error: cannot find symbol
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		                        ^
  symbol:   class BufferedReader
  location: class Main
Main.java:3: error: cannot find symbol
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		                                           ^
  symbol:   class InputStreamReader
  location: class Main
4 errors
Language: Java

import java.io.BufferedReader;
import java.io.InputStreamReader;

public class StructuredProgramming {
	public static String call(int n) {
		StringBuilder answer = new StringBuilder();
		for (int i = 3; i <= n; i++) {
			if (i % 3 == 0) {
				answer.append(" ").append(String.valueOf(i));
			} else {
				int tmp = i;
				while (tmp != 0) {
					if (tmp % 10 == 3) {
						answer.append(" ").append(String.valueOf(i));
						break;
					}
					tmp /= 10;
				}
			}
		}
		return answer.toString();
	}
	
	public static void main(String[] args){
		try {
			BufferedReader input = new BufferedReader(new InputStreamReader(System.in));
			int n = Integer.parseInt(input.readLine());
			System.out.println(call(n));
		} catch (Exception e) {
			// TODO 自動生成された catch ブロック
			e.printStackTrace();
		}
	}
}

Compiler output:
Main.java:4: error: class StructuredProgramming is public, should be declared in a file named StructuredProgramming.java
public class StructuredProgramming {
       ^
1 error
Language: Java

import java.util.Scanner;
public class Main1 {

	public static void main(String[] args) {
		
		Scanner n=new Scanner(System.in);
		int a=n.nextInt();
		int c=0;
		for (int b=1;b<=a;b++){
			c++;
			if (c%3==0){
				System.out.print(" "+b);
			}else if(c%10==3){
				System.out.print(" "+b);
			}else if (c>10){
				int d=c/10;
				if (d%3==0){
					System.out.print(" "+b);
				}else if(d%10==3){
					System.out.print(" "+b);
				}
				
			}
			
		}
		System.out.println();
	}
}

Compiler output:
Main.java:2: error: class Main1 is public, should be declared in a file named Main1.java
public class Main1 {
       ^
1 error
Language: Java

public class Main {
	public static void main(String args[]) throws IOException{
		BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
		StringBuilder builder = new StringBuilder();
		int data = Integer.parseInt(reader.readLine());
		
		for(int i=1; i<data; i++){
			if(i%3==0){
				builder.append(" ").append(Integer.toString(i));
				break;
			}
			int x=i;
			do{
				if(x%10==3){
					builder.append(" ").append(Integer.toString(i));
					break;
				}
				x/=10;
			}while(x!=0);
		}
		
		System.out.println(builder);
		
	}
}

Compiler output:
Main.java:2: error: cannot find symbol
	public static void main(String args[]) throws IOException{
	                                              ^
  symbol:   class IOException
  location: class Main
Main.java:3: error: cannot find symbol
		BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
		^
  symbol:   class BufferedReader
  location: class Main
Main.java:3: error: cannot find symbol
		BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
		                            ^
  symbol:   class BufferedReader
  location: class Main
Main.java:3: error: cannot find symbol
		BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
		                                               ^
  symbol:   class InputStreamReader
  location: class Main
4 errors
Language: Java

import java.util.Scanner;
class Main {
public void yatary(){
	Scanner sc = new Scanner(System.in);
	int x,y,n,z;
	x = sc.nextInt();
	for(n = 3;n <= x; n++){
        y = x;
	    z = 0;
		if(x % 3 == 0){
			System.out.print(" " + x);
		}else{
			while(z == 0){
				if (x % 10 == 3){
					System.out.print(" " + x);
					z = z + 1;
				}
				y = y / 10;
				if(y < 3){
					z = z + 1;
			}
		}
		}
	}
	System.out.println();
	}
	public static void yatary(String[]args){
	}
}
import java.util.Scanner;
class Main {
public void yatary(){
	Scanner sc = new Scanner(System.in);
	int x,y,n,z;
	x = sc.nextInt();
	for(n = 3;n <= x; n++){
        y = x;
	    z = 0;
		if(x % 3 == 0){
			System.out.print(" " + x);
		}else{
			while(z == 0){
				if (x % 10 == 3){
					System.out.print(" " + x);
					z = z + 1;
				}
				y = y / 10;
				if(y < 3){
					z = z + 1;
			}
		}
		}
	}
	System.out.println();
	}
	public static void yatary(String[]args){
	}
}

Compiler output:
Main.java:30: error: class, interface, enum, or record expected
import java.util.Scanner;
^
1 error
Language: Java

import java.util.Scanner;

public class StructuredProgramming {
	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		StringBuilder output = new StringBuilder();
		int n = scan.nextInt();
		for (int i = 1; i <= n; i++) {
			if ((i % 3) == 0 || (i % 10) == 3) {
				output.append(" ").append(i);
			}
		}
		System.out.println(output);
	}
}

Compiler output:
Main.java:3: error: class StructuredProgramming is public, should be declared in a file named StructuredProgramming.java
public class StructuredProgramming {
       ^
1 error
Language: Java

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class Main {
	public static void main(String[] args) {
		String line;
		int n;

		BufferedReader reader = new BufferedReader(new InputStreamReader(
				System.in));
		try {
			line = reader.readLine();
			n = Integer.parseInt(line);
			for (int i = 1;; i++) {
				if (i > n) {
					System.exit(0);
				} else if (i % 3 == 0) {
					System.out.print(" " + i);
				}
			}
			System.out.println();

		} catch (NumberFormatException e) {
			System.out.println(e);
		} catch (IOException e) {
			System.out.println(e);
		}
	}
}

Compiler output:
Main.java:22: error: unreachable statement
			System.out.println();
			^
1 error
Language: Java

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class Main {
	public static void main(String[] args) {
		String line;
		int n;

		BufferedReader reader = new BufferedReader(new InputStreamReader(
				System.in));
		try {
			line = reader.readLine();
			n = Integer.parseInt(line);
			for (int i = 1;; i++) {
				if (i > n) {
					System.exit(0);
				} else if (i % 3 == 0) {
					System.out.print(" " + i);
				}
			}
			System.out.print("\n");

		} catch (NumberFormatException e) {
			System.out.println(e);
		} catch (IOException e) {
			System.out.println(e);
		}
	}
}

Compiler output:
Main.java:22: error: unreachable statement
			System.out.print("\n");
			^
1 error
Language: Java

import java.util.Scanner;

public class Goto {
	public static void main(String[] args){

		Scanner sc = new Scanner(System.in);

		int i=1;
		int n = sc.nextInt();

		while(true){
			if(i%3==0){
				System.out.printf("%d ",i);
			}else if(i%10==3){
				System.out.printf("%d ",i);
			}
			if(i==n)break;
			i++;
		}
		System.out.printf("\n");
	}
}

Compiler output:
Main.java:3: error: class Goto is public, should be declared in a file named Goto.java
public class Goto {
       ^
1 error
Language: Java

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class Main {
	public static void main(String[] args) {
		String line;
		int n;

		BufferedReader reader = new BufferedReader(new InputStreamReader(
				System.in));
		try {
			line = reader.readLine();
			n = Integer.parseInt(line);
			for (int i = 1;; i++) {
				if (i > n) {
					System.exit(0);
				} else if (i % 3 == 0) {
					System.out.print(" " + i);
				}
			}
			System.out.println("");

		} catch (NumberFormatException e) {
			System.out.println(e);
		} catch (IOException e) {
			System.out.println(e);
		}
	}
}

Compiler output:
Main.java:22: error: unreachable statement
			System.out.println("");
			^
1 error
Language: Java

import java.util.Scanner;

public class Main2{
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int x;
		for(int i = 1; i <= n; i++){
			x = i;
			if(x%3 == 0){
				System.out.print(" "+i);
			}else{
				while(x%10 == 3){
					System.out.print(" "+i);
				if(x != 0){
					x /= 10;
					}
				}
			}
		}
		System.out.print("\n");
	}
}

Compiler output:
Main.java:3: error: class Main2 is public, should be declared in a file named Main2.java
public class Main2{
       ^
1 error
Language: Java

import java.util.Scanner;

public class Main2{
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int x;
		for(int i = 1; i <= n; i++){
			x = i;
			if(x%3 == 0){
				System.out.print(" "+i);
			}else{
				while(x != 0){
					if(x%10 == 3){
					System.out.print(" "+i);
					break;
					}
					x /= 10;
				}
			}
		}
		System.out.print("\n");
	}
}

Compiler output:
Main.java:3: error: class Main2 is public, should be declared in a file named Main2.java
public class Main2{
       ^
1 error
Language: Java


import java.util.Scanner;

public class StructuredProgram1 {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int i = 1;

		while(true){
			int x = i;
			if(x % 3 == 0){
				System.out.printf("%d",i);
				if(x == n){
					break;
				}else{
					System.out.print(" ");
				}
			}else{
				while(x != 0){
					if(x % 10 == 3){
						System.out.printf("%d",i);
						if(x == n){
							break;
						}else{
							System.out.print(" ");
						}
						break;
					}else{
						x = x / 10;
					}
				}
			}

			i++;
			if(i > n){
				break;
			}
		}
	}
}

Compiler output:
Main.java:4: error: class StructuredProgram1 is public, should be declared in a file named StructuredProgram1.java
public class StructuredProgram1 {
       ^
1 error
Language: Java

import java.util.Scanner;
public class Kadai302{
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int x = sc.nextInt();
		int i=1,k;
		while(i<=x){
			if(i%3==0){
				System.out.printf(" %d",i);
			}else{
				k=i;
				while(k!=0){
					if(k%10==3){
						System.out.printf(" %d",i);
						break;
					}else{
						k=k/10;
					}
				}
			}
		i++;
		}
		System.out.printf("\n");
	}
}

Compiler output:
Main.java:2: error: class Kadai302 is public, should be declared in a file named Kadai302.java
public class Kadai302{
       ^
1 error
Language: Java

import java.util.Scanner;
public class Goto{
	public static void main(String[]args){
		Scanner sc=new Scanner(System.in);
		int num=sc.nextInt();
		for(int i=3;i<=num;i++){
			if(i%3==0){
				System.out.printf(" %d",i);
			}else if(i%10==3){
				System.out.printf(" %d",i);
			}else if(i%100==3){
				System.out.printf(" %d",i);
			}else if(i%1000==3){
				System.out.printf(" %d",i);
			}else if(i%10000==3){
				System.out.printf(" %d",i);
			}
		}
		System.out.println("");

	}
}

Compiler output:
Main.java:2: error: class Goto is public, should be declared in a file named Goto.java
public class Goto{
       ^
1 error
Language: Java

import java.util.Scanner;

public class cplus{
 public static void main(String[] args){
  
  Scanner num = new Scanner(System.in);
  int n = num.nextInt();
  int i=1;
  
  while(true){
 
   int x=i;
   if(x%3 == 0) 
    System.out.printf(" %d",i);
   if(x > 10){
    if(x%10 == 3){
     System.out.printf(" %d",x);
    }
   }
   i++;
   if(i > n) break;
  }
  
  System.out.println();
 }
}

Compiler output:
Main.java:3: error: class cplus is public, should be declared in a file named cplus.java
public class cplus{
       ^
1 error
Language: Java

import java.util.Scanner;

public class StructuredProgramming {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();

		for(int i=1; i<=n; i++) {
			if(i % 3 == 0) {
				System.out.print(" " + i);
			} else if(i % 10 == 3) {
				System.out.print(" " + i);
			}
		}
		System.out.printf("\n");
	}
}

Compiler output:
Main.java:3: error: class StructuredProgramming is public, should be declared in a file named StructuredProgramming.java
public class StructuredProgramming {
       ^
1 error
Language: Java

package ????????°???????????°A;

import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int m = sc.nextInt();
		for (int j = 1; j <= m; j++) {
			if (j % 3 == 0) {
				System.out.print(" "+j );
				continue;
			}

			for (int i = j; i > 0; i /= 10) {
				if (i % 10 == 3) {
					System.out.print(" "+j );
					continue;
				}
			}

		}
		System.out.println();
		sc.close();
	}
}

Compiler output:
Main.java:1: error: <identifier> expected
package ?????????????????????A;
       ^
Main.java:1: error: illegal character: '\u00b0'
package ?????????????????????A;
                ^
Main.java:1: error: illegal character: '\u00b0'
package ?????????????????????A;
                            ^
3 errors
Language: Java

import java.util.Scanner;

public class StructuredProgramming {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();

		for(int i=1; i<=n; i++) {
			if(i % 3 == 0) {
				System.out.print(" " + i);
			} else if(i % 10 == 3) {
				System.out.print(" " + i);
			}
		}
	}
}

Compiler output:
Main.java:3: error: class StructuredProgramming is public, should be declared in a file named StructuredProgramming.java
public class StructuredProgramming {
       ^
1 error
Language: Java

import java.util.Scanner;
public class Sample1 { 
 public static void main(String[] args) {
	 Scanner sc= new Scanner(System.in);
	 int a = sc.nextInt();
	 int k;
	 int i;
	 k=a/3;
	 for(i=1;i<=k;i++){
		 System.out.printf("%d ",3*i);
	 }
	 
 }
} 

Compiler output:
Main.java:2: error: class Sample1 is public, should be declared in a file named Sample1.java
public class Sample1 { 
       ^
1 error
Language: Java

import java.util.Scanner;

public class StructuredProgramming {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();

		for(int i=1; i<=n; i++) {
			if(i % 3 == 0) {
				System.out.print(" " + i);
			} else if(i % 10 == 3) {
				System.out.print(" " + i);
			}
		}
		System.out.print("\n");
	}
}

Compiler output:
Main.java:3: error: class StructuredProgramming is public, should be declared in a file named StructuredProgramming.java
public class StructuredProgramming {
       ^
1 error
Language: Java

import java.util.Scanner;
public class Sample1 { 
 public static void main(String[] args) {
	 Scanner sc= new Scanner(System.in);
	 int a = sc.nextInt();
	 int k;
	 int i;
	 k=a/3;
	 System.out.printf("3");
	 for(i=2;i<=k;i++){
		 System.out.printf(" %d",3*i);
	 }
	 System.out.printf("\n");
 }
} 

Compiler output:
Main.java:2: error: class Sample1 is public, should be declared in a file named Sample1.java
public class Sample1 { 
       ^
1 error
Language: Java

import java.util.Scanner;

public class cplus{
 public static void main(String[] args){
  
  Scanner num = new Scanner(System.in);
  int n = num.nextInt();
  int i=1;
  
  while(true){
   
   String three = "" + i;
   int x=i;
   if(x%3 == 0 || three.contains("3")){
    System.out.printf(" %d",i);
   }
   i++;
   if(i > n) break;
  }
  
  System.out.println();
 }
}

Compiler output:
Main.java:3: error: class cplus is public, should be declared in a file named cplus.java
public class cplus{
       ^
1 error
Language: Java

import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int x = sc.nextInt();
		for (int i = 1; i <= x; i++) {
			if (i % 3 == 0 || i % 10 == 3) {
				if (i = 3){
					System.out.print( i );
				}else{
					System.out.print(" "+ i );
				}
			}


		}
		System.out.println("");
	}
}

Compiler output:
Main.java:9: error: incompatible types: int cannot be converted to boolean
				if (i = 3){
				      ^
1 error
Language: Java

import java.util.Scanner;
public class Main{
	public static void main(String[]args){
		Scanner sc = new Scanner(System.in);
		int i = sc.nextInt();
		int x = 1;
		while(x <= i){
			if(x%3==0){
				System.out.printf(" %d",x);
			}
			else if(x%10==3){
				System.out.printf(" %d",x);
			}
			else if(x>=30&&x<40){
				System.out.printf(" %d",x);
			x++;
		}
		System.out.printf("\n");
	}
}

Compiler output:
Main.java:20: error: reached end of file while parsing
}
 ^
1 error
Language: Java

import java.util.Scanner;
public class Main2 {
	
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();

		int i = 1;
		int x = i;
		
		for(x=i;i<=n;i++){
			x = i;
			if(x%3 == 0){
				System.out.print(" "+i);
				continue;
			}
			if(x%10 == 3){
				System.out.print(" "+i);
				continue;
			}
			x /= 10;
			while(x != 0){
				if(x%10 == 3){
					System.out.print(" "+i);
					break;
				}else {
					x /= 10;
					continue;
				}
				
			}
			
			
		}
		sc.close();
	}
	

}

Compiler output:
Main.java:2: error: class Main2 is public, should be declared in a file named Main2.java
public class Main2 {
       ^
1 error
Language: Java

import java.util.Scanner;

    public class Structure{
	public static void main(String[] args){
            int i,x,n;
            Scanner sc = new Scanner(System.in);

            n = sc.nextInt();

            for(i=1;i<=n;i++){
		if(i%3==0){
                    System.out.printf(" %d",i);
                    continue;
		}else if(i%10==3){
                    System.out.printf(" %d",i);
		}
            }
	}
    }

Compiler output:
Main.java:3: error: class Structure is public, should be declared in a file named Structure.java
    public class Structure{
           ^
1 error
Language: Java

import java.util.Scanner;

public class StructuredProgramming {
	public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();

        for(int i=1; i<=n; i++) {
            if(i % 3 == 0) {
                System.out.print(" " + i);
            } else{
            	for(int j=i; j>0; j/=10) {
            		if (j % 10 == 3) {
                        System.out.print(" " + i);
                        break;
                    }
            	}
            }
        }
        System.out.print("\n");
        sc.close();
    }
}

Compiler output:
Main.java:3: error: class StructuredProgramming is public, should be declared in a file named StructuredProgramming.java
public class StructuredProgramming {
       ^
1 error
Language: Java

import java.util.Scanner;
 
class Main {
    public static void main(String[] args) {
        Scanner kb = new Scanner( System.in);   
	StringBuilder sb = new StringBuilder();
        String str = "";

        int H = kb.nextInt();
	int I = 1;
	while(true){
	    int X = I;
	    if(X % 3 == 0 || X % 10 == 3 || X / 10==3 || x / 10 == 13){
		sb.append(" "+X);
	    }
	    if(I == H)break;
	    I++;
	}
	str=new String(sb);
	System.out.println(str);
    }
}

Compiler output:
Main.java:13: error: cannot find symbol
	    if(X % 3 == 0 || X % 10 == 3 || X / 10==3 || x / 10 == 13){
	                                                 ^
  symbol:   variable x
  location: class Main
1 error
Language: Java

import java.util.Scanner;
 
class Main {
    public static void main(String[] args) {
        Scanner kb = new Scanner( System.in);   
	StringBuilder sb = new StringBuilder();
        String str = "";

        int H = kb.nextInt();
	int I = 1;
	while(true){
	    int X = I;
	    if(X>10 && X % 10 != 3 && X % 3 != 0){
		X/=10;
		if(X>10)X%=10;
		if(X!=3) X=I;
		
	    }
	    if(X % 3 == 0 || X % 10 == 3 || x % 100 == 3){
		sb.append(" "+I);
	    }
	    if(I == H)break;
	    I++;
	}
	str=new String(sb);
	System.out.println(str);
    }
}

Compiler output:
Main.java:19: error: cannot find symbol
	    if(X % 3 == 0 || X % 10 == 3 || x % 100 == 3){
	                                    ^
  symbol:   variable x
  location: class Main
1 error
Language: Java

import java.util.Scanner;
 
class Main {
    public static void main(String[] args) {
        Scanner kb = new Scanner( System.in);   
	StringBuilder sb = new StringBuilder();
        String str = "";

        int H = kb.nextInt();
	int I = 1;
	while(true){
	    int X = I;
	    if(X>10 && X % 10 != 3 && X % 3 != 0 && X / 100 != 3 && x / 1000 != 3){
		X/=10;
		if(X>10)X%=10;
		if(X!=3) X=I;
		
	    }
	    if(X % 3 == 0 || X % 10 == 3 || X / 100 == 3 || X / 1000 == 3){
		sb.append(" "+I);
	    }
	    if(I == H)break;
	    I++;
	}
	str=new String(sb);
	System.out.println(str);
    }
}

Compiler output:
Main.java:13: error: cannot find symbol
	    if(X>10 && X % 10 != 3 && X % 3 != 0 && X / 100 != 3 && x / 1000 != 3){
	                                                            ^
  symbol:   variable x
  location: class Main
1 error
Language: Java

import java.util.Scanner;
 
class Main {
    public static void main(String[] args) {
        Scanner kb = new Scanner( System.in);   
	StringBuilder sb = new StringBuilder();
        String str = "";

        int H = kb.nextInt();
	int I = 1;
	while(true){
	    int X = I;
	    if(X>10 && X % 10 != 3 && X % 3 != 0 && X / 100 != 3 && X / 1000 != 3){
		X/=10;
		if(x>1000)X/=10;
		if(x>100)X/=10;
		if(X>10)X%=10;
		if(X!=3) X=I;
		
	    }
	    if(X % 3 == 0 || X % 10 == 3 || X / 100 == 3 || X / 1000 == 3){
		sb.append(" "+I);
	    }
	    if(I == H)break;
	    I++;
	}
	str=new String(sb);
	System.out.println(str);
    }
}

Compiler output:
Main.java:15: error: cannot find symbol
		if(x>1000)X/=10;
		   ^
  symbol:   variable x
  location: class Main
Main.java:16: error: cannot find symbol
		if(x>100)X/=10;
		   ^
  symbol:   variable x
  location: class Main
2 errors
Language: Java

public class Main {
	public static void main(String[] args) {
		try {
			BufferedReader br = new BufferedReader(new InputStreamReader(
					System.in));
			StringBuilder s=new StringBuilder(); 
			int val = Integer.parseInt(br.readLine());
			int x = 0;

			for (int i = 1; i <= val; i++) {
				if (i % 3 == 0 || i % 10 == 3) {
					s.append(" " + i);
				} else {
					x = i / 10;
					while (x != 0) {
						if (x % 10 == 3) {
							s.append(" " + i);
							break;
						}
						x /= 10;
					}
				}
			}
			System.out.println(s);
			br.close();
		} catch (Exception e) {
			System.err.println(e);
		}
	}
}

Compiler output:
Main.java:4: error: cannot find symbol
			BufferedReader br = new BufferedReader(new InputStreamReader(
			^
  symbol:   class BufferedReader
  location: class Main
Main.java:4: error: cannot find symbol
			BufferedReader br = new BufferedReader(new InputStreamReader(
			                        ^
  symbol:   class BufferedReader
  location: class Main
Main.java:4: error: cannot find symbol
			BufferedReader br = new BufferedReader(new InputStreamReader(
			                                           ^
  symbol:   class InputStreamReader
  location: class Main
3 errors
Language: Java


import java.util.Scanner;

class Main {
    public static void main(String args[]){
		
	//整数nを読み取る
	Scanner sc = new Scanner(System.in);
	String s1 = sc.next();
        int n = Integer.parseInt(s1);
        
        //nが条件（３から１００００）内か確認
        if(3 <= n && n <= 10000){
        	
        	//１からnまで繰り返す
        	for(int i = 1; i <= n; i++){
        		
        		//３の倍数と３とつく数字を表示
                        //3の倍数
        		if(i % 3 == 0){
        			System.out.print(" " + i);
        		}
　　　　　　　　　　　　//1の位に3がある
        		else if(i % 10 == 3){
        			System.out.print(" " + i);
        		}
        		else{
        			for(int j = 1; j <= 9; j++){
                                        //10の位に3がある
        				if(i / (j * 10) == 3){
        					System.out.print(" " + i);
        					break;
        				}
                                        //100の位に3がある
        				else if(i / (j * 100) == 3){
        					System.out.print(" " + i);
        					break;
        				}
                                        //1000の位に3がある
        				else if(i / (j * 1000) == 3){
        					System.out.print(" " + i);
        					break;
        				}
        			}
        		}
        	}
        	System.out.println("");
        }
    }
}

Compiler output:
Main.java:23: error: illegal character: '\u3000'
????????????//1???3???
^
Main.java:23: error: illegal character: '\u3000'
????????????//1???3???
 ^
Main.java:23: error: illegal character: '\u3000'
????????????//1???3???
  ^
Main.java:23: error: illegal character: '\u3000'
????????????//1???3???
   ^
Main.java:23: error: illegal character: '\u3000'
????????????//1???3???
    ^
Main.java:23: error: illegal character: '\u3000'
????????????//1???3???
     ^
Main.java:23: error: illegal character: '\u3000'
????????????//1???3???
      ^
Main.java:23: error: illegal character: '\u3000'
????????????//1???3???
       ^
Main.java:23: error: illegal character: '\u3000'
????????????//1???3???
        ^
Main.java:23: error: illegal character: '\u3000'
????????????//1???3???
         ^
Main.java:23: error: illegal character: '\u3000'
????????????//1???3???
          ^
Main.java:23: error: illegal character: '\u3000'
????????????//1???3???
           ^
Main.java:24: error: 'else' without 'if'
        		else if(i % 10 == 3){
        		^
13 errors
Language: Java


import java.util.Scanner;

class Main {
    public static void main(String args[]){
		
	//整数nを読み取る
	Scanner sc = new Scanner(System.in);
	String s1 = sc.next();
        int n = Integer.parseInt(s1);
        
        //nが条件（３から１００００）内か確認
        if(3 <= n && n <= 10000){
        	
        	//１からnまで繰り返す
        	for(int i = 1; i <= n; i++){
        		
        		//３の倍数と３とつく数字を表示
                        //3の倍数
        		if(i % 3 == 0){
        			System.out.print(" " + i);
        		}
　　　　　　　　　　　　//1の位に3がある
        		else if(i % 10 == 3){
        			System.out.print(" " + i);
        		}
                        //それぞれ１、１０、１０００の位に３があるとき
        		else{
        			for(int j = 1; j <= 9; j++){
        				if(i / (j * 10) == 3){
        					System.out.print(" " + i);
        				        break;
        				}
                                        else if(i / (j * 100) == 3){
        					System.out.print(" " + i);
        					break;
        				}
                                        else if(i / (j * 1000) == 3){
        					System.out.print(" " + i);
        					break;
        				}
        			}
        		}
        	}
        	System.out.println("");
        }
    }
}

Compiler output:
Main.java:23: error: illegal character: '\u3000'
????????????//1???3???
^
Main.java:23: error: illegal character: '\u3000'
????????????//1???3???
 ^
Main.java:23: error: illegal character: '\u3000'
????????????//1???3???
  ^
Main.java:23: error: illegal character: '\u3000'
????????????//1???3???
   ^
Main.java:23: error: illegal character: '\u3000'
????????????//1???3???
    ^
Main.java:23: error: illegal character: '\u3000'
????????????//1???3???
     ^
Main.java:23: error: illegal character: '\u3000'
????????????//1???3???
      ^
Main.java:23: error: illegal character: '\u3000'
????????????//1???3???
       ^
Main.java:23: error: illegal character: '\u3000'
????????????//1???3???
        ^
Main.java:23: error: illegal character: '\u3000'
????????????//1???3???
         ^
Main.java:23: error: illegal character: '\u3000'
????????????//1???3???
          ^
Main.java:23: error: illegal character: '\u3000'
????????????//1???3???
           ^
Main.java:24: error: 'else' without 'if'
        		else if(i % 10 == 3){
        		^
13 errors
Language: Java

import java.util.*;

public class Main {
    public static void main(String[] args) {
        Scanner scn = new Scanner(System.in);
        int n = scn.nextInt();
        for(int i = 1; i < -~n; i++) {
            if(!(i % 3)) {
                System.out.println(" " + i)
            } else {
                for(int x = i; x > 0; x /= 10) {
                    if(x % 10 == 3) {
                        System.out.println(" " + i);
                        break;
                    }
                }
            }
        }
    }
}

Compiler output:
Main.java:9: error: ';' expected
                System.out.println(" " + i)
                                           ^
1 error
Language: Java

import java.util.*;

public class Main {
    public static void main(String[] args) {
        Scanner scn = new Scanner(System.in);
        int n = scn.nextInt();
        for(int i = 1; i < -~n; i++) {
            if(!(i % 3)) {
                System.out.println(" " + i);
            } else {
                for(int x = i; x > 0; x /= 10) {
                    if(x % 10 == 3) {
                        System.out.println(" " + i);
                        break;
                    }
                }
            }
        }
    }
}

Compiler output:
Main.java:8: error: bad operand type int for unary operator '!'
            if(!(i % 3)) {
               ^
1 error
Language: Java

import java.util.Scanner;
public class Main {
    public static void main(String[] args) {
        StringBuilder count=new StringBuilder();
        Scanner sc=new Scanner(System.in);
        int n=sc.nextInt();
        for (int i=1;i<=n;i++){
            int x=i;
            if (x%3==0){
                count.append(" "+i);
                countinue;}
            do{
                if(x%10==3){
                    count.append(" "+i);
                    break;}
                x/=10;
            }while(x!=0);
        }
        System.out.println(count);
    }
}

Compiler output:
Main.java:11: error: not a statement
                countinue;}
                ^
1 error
Language: Java

import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		// TODO ?????????????????????????????????????????????

		Scanner scan = new Scanner(System.in);
		
		int n = scan.nextInt();
		int i;

		for(i=1; i<=n; i++)
			if(i > n) break;
			int x = i;
			else if (((x%3) == 0) || ((x%10) == 3)) {
			System.out.print(" " + i);
		}
		
	}

}

Compiler output:
Main.java:16: error: 'else' without 'if'
			else if (((x%3) == 0) || ((x%10) == 3)) {
			^
1 error