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

import java.io.IOException;
import java.util.Scanner;
public class Main {
    public static void main (String args[]) throws IOException {
    	Scanner sc = new Scanner(System.in);
    	StringBuilder sb = new StringBuilder();
    	int x =sc.nextInt();
    	for(int i=1;i<=x;i++){


    		if ( i % 10 == 3&&i>3 ){
    			sb.append(" ")???append(i);
    		}

    		if(i%3==0){
    			sb.append(" ").append(i);
    		}
    	}

        System.out.print(sb);
    }

}

Compiler output:
Main.java:12: error: illegal start of expression
    			sb.append(" ")???append(i);
    			               ^
Main.java:12: error: illegal start of expression
    			sb.append(" ")???append(i);
    			                ^
Main.java:12: error: : expected
    			sb.append(" ")???append(i);
    			                          ^
Main.java:12: error: not a statement
    			sb.append(" ")???append(i);
    			              ^
4 errors
Language: Java

import java.io.*;

public class Main1{
	public static void main(String[] arsg) throws IOException{
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		
		int count = Integer.parseInt(br.readLine());
		for(int i = 0;i<count;i++){
			if(i%3==0){System.out.print(" "+i);}
			else if(String.valueOf(i).contains("3")){System.out.println(" "+i);}
		}
	}
}

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

import java.io.*;

public class Main1{
	public static void main(String[] arsg) throws IOException{
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		
		int count = Integer.parseInt(br.readLine());
		for(int i = 0;i<count;i++){
			if(i%3==0){System.out.print(" "+i);}
			else if(String.valueOf(i).contains("3")){System.out.println(" "+i);}
		}
		System.out.println();
	}
}

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

import java.io.*;

public class Main1{
	public static void main(String[] arsg) throws IOException{
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		
		int count = Integer.parseInt(br.readLine());
		for(int i = 1;i<=count;i++){
			if(i%3==0){System.out.print(" "+i);}
			else if(String.valueOf(i).contains("3")){System.out.println(" "+i);}
		}
		System.out.println();
	}
}

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

import java.io.*;
  
class Main{
    public static void main(String args[]) throws IOException{
        BufferedReader buf = new BufferedReader(new InputStreamReader(System.in));
        int n = Integer.parseInt(buf.readLine());
          
        for(int j=3; j<=n; j++){
            if(j%3==0 || (j%10)== 3){
                System.out.println(" "+j);
            }           
  
        }
        System.out.println(sb);
    }
}

Compiler output:
Main.java:14: error: cannot find symbol
        System.out.println(sb);
                           ^
  symbol:   variable sb
  location: class Main
1 error
Language: Java

import java.io.*.;

class Main{
 public static void main(String[] args)throws IOException{
 BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
??String[] strAry; 
 int x,i,tmp;
 strAry = br.readLine().split(" ");
 x = Integer.parseInt(strAry[0]);
  for(i=1;i<=x;i++){
   if(x%3==0){
    System.out.print(i+" ");
   }
   tmp=i;
   while(tmp!=0){
     if(tmp%10==3){    
      System.out.print(i+" ");      
     }
    tmp =tmp/10; 
   }
  }
  System.out.print("\n");  
  
 }
}

Compiler output:
Main.java:1: error: ';' expected
import java.io.*.;
                ^
Main.java:6: error: illegal start of expression
??String[] strAry; 
^
Main.java:6: error: illegal start of expression
??String[] strAry; 
 ^
Main.java:6: error: '.class' expected
??String[] strAry; 
           ^
Main.java:6: error: : expected
??String[] strAry; 
                 ^
5 errors
Language: Java

import java.io.*.;

class Main{
 public static void main(String[] args)throws IOException{
 BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
 String[] strAry; 
 int x,i,tmp;
 strAry = br.readLine().split(" ");
 x = Integer.parseInt(strAry[0]);
  for(i=1;i<=x;i++){
   if(x%3==0){
    System.out.print(i+" ");
   }
   tmp=i;
   while(tmp!=0){
     if(tmp%10==3){    
      System.out.print(i+" ");      
     }
    tmp =tmp/10; 
   }
  }
  System.out.print("\n");  
  
 }
}

Compiler output:
Main.java:1: error: ';' expected
import java.io.*.;
                ^
1 error
Language: Java

import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.*;
class Main{
	public static void main(String[] args){
	int n =0;
	Scanner scan = new Scanner(System.in);
		n = scan.nextInt();
		for(int i=0; i!=n; i++){
			if(i%3 == 0){
				System.out.print(" "+i);
			}
			if(i%10 == 3){
				System.out.print(" "+i);
			}
		}
		System.out.println("");
	}
}a

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

import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.*;
class Main{
	public static void main(String[] args){
	int n =0;
	int x =0
	Scanner scan = new Scanner(System.in);
		n = scan.nextInt();
		for(int i=1; i != n+1; i++){
			x = i;
			if(i%3 == 0){
				System.out.print(" "+i);
			}
			else{
				while(x != 0){
					if(x%10 == 3){
						System.out.print(" "+i);
					}
					x /= 10;
				}
			}
			
		}
		System.out.println("");
	}
}

Compiler output:
Main.java:7: error: ';' expected
	int x =0
	        ^
1 error
Language: Java


import java.util.Scanner;

public class D5 {
	public static void main(String[] args) {
		int i, n;
		Scanner sc = new Scanner(System.in);
		n = sc.nextInt();
		System.out.print(" ");
		for(i = 3; i < n && n <= 10000; i++){
			if(n - i < 3 && i % 3 == 0)
				System.out.println(i);
			else if(i % 3 == 0)
				System.out.print(i + " ");
			else if(i % 10 == 3)
				System.out.print(i + " ");
			else if(i % 100 == 3)
				System.out.print(i + " ");
			else if(i % 1000 == 3)
				System.out.print(i + " ");
			else if(i >= 30 && i < 40)
				System.out.print(i + " ");
			else if(i >= 300 && i < 400)
				System.out.print(i + " ");
			else if(i >= 3000 && i < 4000)
				System.out.print(i + " ");
		}
	}
}

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

import java.io.*;
import java.util.*;

public class Solution {
    
    static int check_three2(int num){
        if (num < 10 && num !=3)return 0;
        int temp = num - (num / 10 * 10);
        if (temp == 3){
            return 1;
        }else{
            return check_three2(temp);
        }
    }
    
    
    static int check_three(int num){
        if (num % 3 == 0){
            return 1;
        }else{
            if  (check_three2(num) == 1){
                return 1;
            }
            return 0;
        }
    }    

    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        int N = in.nextInt();
        
        for (int i = 1; i <= 30; i++){
            if (check_three(i) == 1){
                System.out.print(" " + i);
            }
        }
        
    }
}

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

import java.io.*;
import java.util.*;

public class Solution {
    
    static int check_three2(int num){
        if (num < 10 && num !=3)return 0;
        int temp = num - (num / 10 * 10);
        if (temp == 3){
            return 1;
        }else{
            return check_three2(temp);
        }
    }
    
    
    static int check_three(int num){
        if (num % 3 == 0){
            return 1;
        }else{
            if  (check_three2(num) == 1){
                return 1;
            }
            return 0;
        }
    }    

    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        int N = in.nextInt();
        
        for (int i = 1; i <= N; i++){
            if (check_three(i) == 1){
                System.out.print(" " + i);
            }
        }
        System.out.println("");
        
    }
}

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

import java.util.Scanner;
class Main {
	
	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		
			int numN = scanner.nextInt();
			int numn;

            
            for(numn = 3; numn <= numN; numn++){

            	if (numn % 3 == 0){
            		System.out.print(" "+numn);
            	}
            	else if(numn % 10 == 3){
            		System.out.print(" "+numn);
            	}
            	else if(numn % 100 / 10 == 3){
            		System.out.print(" "+numn);
            	}
            	else if(numn % 1000 / 100 == 3){
            		System.out.print(" "+numn);
            	}
            	else if(numn % 10000 / 1000 == 3){
            		System.out.print(" "+numn);
            	}
            	else if(numn / 10000 == 3){
            		System.out.print(" "+numn);
            	}
            	else{
            	}
            }
			
		
	}

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

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

		for(int i = 1;i <= count;i++ ) {
			int num = 0;
			if(i % 3 == 0) {
				num = i;
			} else if(i % 10 == 3) {
				num = i;
			} else if((i / 10) %  10 == 3 || (i / 100) %  10 == 3 || (i / 1000) %  10 == 3) {
				num = i;
			}

			if(num != 0) {
				System.out.print(" " + num);
			}

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

	}
}

Compiler output:
Main.java:3: error: cannot find symbol
		Scanner sc = new Scanner(System.in);
		^
  symbol:   class Scanner
  location: class Main
Main.java:3: error: cannot find symbol
		Scanner sc = new Scanner(System.in);
		                 ^
  symbol:   class Scanner
  location: class Main
2 errors
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();
		int x, i = 1;
		while(true){
			x = i;
			if (x % 3 == 0) System.out.printf(" %d", i);
			else{
				while (true){
					if (x % 10 == 3){System.out.printf(" %d", i); break;}
					else{ x /= 10; if (x == 0) break;}
				}
			}
			if (++i <= n) continue;
			else break;
		}
		System.out.print("\n")
	}
}

Compiler output:
Main.java:20: error: ';' expected
		System.out.print("\n")
		                      ^
1 error
Language: Java

import java.util.Scanner;

//This problem reminded me of Nabeatsu !!
public class Nabeatu{
 public static void main(String[] args){
  Scanner sc=new Scanner(System.in);
  int n=sc.nextInt();
 //NabeatsuNo. 1<=i<=n
  for(int i=1;i<=n;i++){
    if(i%3==0)  //Output if i is multiple of 3
     System.out.printf(" "+i);
    else{
     int j=i;
     //Output if i has more than a digit which is 3
     while(j>0){
      if(j%10==3)
       System.out.printf(" "+i);
       j/=10;
     }
    }
   }
  }
}

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

import java.util.Scanner;

//This problem reminded me of Nabeatsu !!
public class Nabeatu{
 public static void main(String[] args){
  Scanner sc=new Scanner(System.in);
  int n=sc.nextInt();
 //NabeatsuNo. 1<=i<=n
  for(int i=1;i<=n;i++){
    if(i%3==0)  //Output if i is multiple of 3
     System.out.printf(" "+i);
    else{
     int j=i;
     //Output if i has more than a digit which is 3
     do{
      if(j%10==3)
       System.out.printf(" "+i);
      else
       j/=10;
     }while(j>1&&j%10!=3);   //Be careful the duplication
    }
   }
  }
}

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

import java.util.Scanner;

//This problem reminded me of Nabeatsu !!
public class Nabeatu{
 public static void main(String[] args){
  Scanner sc=new Scanner(System.in);
  int n=sc.nextInt();

  if(3<=n&&n<=10000){
 //NabeatsuNo. 1<=i<=n
  for(int i=1;i<=n;i++){
    if(i%3==0)  //Output if i is multiple of 3
     System.out.printf(" "+i);
    else{
     int j=i;
     //Output if i has more than a digit which is 3
     do{
      if(j%10==3)
       System.out.printf(" "+i);
      else
       j/=10;
     }while(j>1&&j%10!=3);   //Be careful the duplication
    }
   }
  }
 }
}

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

import java.util.Scanner;

//This problem reminded me of Nabeatsu !!
public class Nabeatu{
 public static void main(String[] args){
  Scanner sc=new Scanner(System.in);
  int n=sc.nextInt();

  if(3<=n&&n<=10000){
 //NabeatsuNo. 1<=i<=n
  for(int i=1;i<=n;i++){
    if(i%3==0)  //Output if i is multiple of 3
     System.out.printf(" "+i);
    else{
     int j=i;
     //Output if i has more than a digit which is 3
     do{
      if(j%10==3)
       System.out.printf(" "+i);
      else
       j/=10;
     }while(j>1&&j%10!=3);   //Be careful the duplication
    }
   }
  }
  System.out.printf("\n");
 }
}

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

import java.util.Scanner

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

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

Compiler output:
Main.java:1: error: ';' expected
import java.util.Scanner
                        ^
1 error
Language: Java

import java.util.Scanner

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

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

Compiler output:
Main.java:1: error: ';' expected
import java.util.Scanner
                        ^
1 error
Language: Java

class Main{
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        int n = scan.nextInt();
        for(int i = 3; i <= n; i++) {
            if (i % 3 == 0 || i % 10 == 3 || i / 10 == 3) {
                out.print(" " + i);
            } else {
                int num = i;
                while(i >= 100) {
                    i = i / 10;
                    if(i % 10 == 3 || i / 10 == 3) {                            
                        out.print(" " + num);
                        break;
                    }
                }
                i = num;
            }
        }
        out.println();
    }
}

Compiler output:
Main.java:3: error: cannot find symbol
        Scanner scan = new Scanner(System.in);
        ^
  symbol:   class Scanner
  location: class Main
Main.java:3: error: cannot find symbol
        Scanner scan = new Scanner(System.in);
                           ^
  symbol:   class Scanner
  location: class Main
Main.java:7: error: cannot find symbol
                out.print(" " + i);
                ^
  symbol:   variable out
  location: class Main
Main.java:13: error: cannot find symbol
                        out.print(" " + num);
                        ^
  symbol:   variable out
  location: class Main
Main.java:20: error: cannot find symbol
        out.println();
        ^
  symbol:   variable out
  location: class Main
5 errors
Language: Java

import java.util.Scanner;

public class ITP15D {

	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);
		String line = sc.nextLine();
		int n = Integer.parseInt(line);
		int i = 1;
		while (i <= n) {
			if (i % 3 == 0) {
				System.out.print(" " + i);
			} else if (i % 10 == 3) {
				System.out.print(" " + i);
			}
			i++;
		}

	}

}

Compiler output:
Main.java:3: error: class ITP15D is public, should be declared in a file named ITP15D.java
public class ITP15D {
       ^
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 = 1;
		while(true){
			int x = i;
			if(x%10 == 3){
				
			}
		}
		while(true){
			if(x%10 == 3){
				System.out.println("" + i);
				
			}
			else{
				x /= 10;
				if(x != 0) continue;
				else break;
			}
		}

	}

}

Compiler output:
Main.java:16: error: cannot find symbol
			if(x%10 == 3){
			   ^
  symbol:   variable x
  location: class Main
Main.java:21: error: cannot find symbol
				x /= 10;
				^
  symbol:   variable x
  location: class Main
Main.java:22: error: cannot find symbol
				if(x != 0) continue;
				   ^
  symbol:   variable x
  location: class Main
3 errors
Language: Java

public class Main {

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

		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		if(n >= 3 && n <= 10000){
			for(int i = 1; i <= n; i++){
				if(i % 3 == 0 || i % 10 == 3 || i / 10 == 3){
					System.out.print(" " + i);
				}
			}
		}
		System.out.println("");

	}

}

Compiler output:
Main.java:6: error: cannot find symbol
		Scanner sc = new Scanner(System.in);
		^
  symbol:   class Scanner
  location: class Main
Main.java:6: error: cannot find symbol
		Scanner sc = new Scanner(System.in);
		                 ^
  symbol:   class Scanner
  location: class Main
2 errors
Language: Java

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

Compiler output:
Main.java:2: error: class Cpp is public, should be declared in a file named Cpp.java
public class Cpp {
       ^
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();

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

Compiler output:
Main.java:3: 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 SP {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int i = 1;
		while (i <= n) {
			if (i % 3 == 0) {
				System.out.printf(" %d", i);
			} else if (i % 10 == 3) {
				System.out.printf(" %d", i);
			}
			i++;
		}

	}

}

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

import java.util.Scanner;

public class Call {

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

		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		if(n >= 3 && n <= 10000){
			for(int i = 1; i <= n; i++){

				if(i % 3 == 0){
					System.out.print(" " + i);
				}else{
					do{
						if(i % 10 == 3) {
							System.out.print(" " + i);
							break;
						}
						i /= 10;
					}while(i != 0);
				}

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

	}

}

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

import java.util.Scanner;

public class execirce4242 {
    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.printf(" %d",i);
  		  } else{
  			  function(i,i);
  		  }
  	  }
	System.out.println("");
    }
  	  
  	  public static void function(int i,int j){
  		  if(j%10 == 3){
  			  System.out.printf(" %d",i);
  		  } else if(j>0){
  			  function(i,j/10);
  		  }
  	  }
    }

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

import java.util.Scanner;

public class Main {
 public static void main(String[] args) {
  Scanner sc = new Scanner(System.in);
  while (true) {
   int i = sc.nextInt();
   int x = i;
   if (x%3 == 0 || x%10 == 3) {
    System.out.printf(i);
   }
   System.out.ptintf("\n")
  }
 }
}

Compiler output:
Main.java:12: error: ';' expected
   System.out.ptintf("\n")
                          ^
1 error
Language: Java

import java.util.Scanner;

public class Main {
 public static void main(String[] args) {
  Scanner sc = new Scanner(System.in);
  while (true) {
   int i = sc.nextInt();
   int x = i;
   if (x%3 == 0 || x%10 == 3) {
    System.out.printf(i);
   }
   System.out.ptintf("\n");
  }
 }
}

Compiler output:
Main.java:10: error: no suitable method found for printf(int)
    System.out.printf(i);
              ^
    method PrintStream.printf(String,Object...) is not applicable
      (argument mismatch; int cannot be converted to String)
    method PrintStream.printf(Locale,String,Object...) is not applicable
      (argument mismatch; int cannot be converted to Locale)
Main.java:12: error: cannot find symbol
   System.out.ptintf("\n");
             ^
  symbol:   method ptintf(String)
  location: variable out of type PrintStream
2 errors
Language: Java

import java.util.Scanner;

public class include3 {
	private static Scanner input;
	public static void main(String[] args){
		int i;
		input = new Scanner(System.in);
		int n = input.nextInt();
		
		if(n>=3 && n<=1000){
			for(i=3;i<=n;i++){
				if(i%3==0 || i%10-3==0){
					System.out.println(""+i);
				}	
			}
		}
		 
	 }
}

Compiler output:
Main.java:3: error: class include3 is public, should be declared in a file named include3.java
public class include3 {
       ^
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();
    int i = 1;
    do {
      int x = i;
      if (x % 3 == 0){
        System.out.print(" " + i);
        continue;
      }
      while(true){
        if(x % 10 == 3){
          Sustem.out.print(" " + i);
          break;
        }
        x /=10;
        if (x != 0) continue;
        else break;
      }
    }while (++i <= n);
    System.out.println();
  }
}

Compiler output:
Main.java:16: error: package Sustem does not exist
          Sustem.out.print(" " + i);
                ^
1 error
Language: Java

import java.util.Scanner;

public class Main {
 public static void main(String[] args) {
  Scanner sc = new Scanner(System.in);
  while (true) {
   int i = sc.nextInt();
   int x = i;
   if (x%3 == 0 || x%10 == 3) {
    System.out.printf("i");
   }
   System.out.ptintf("\n");
  }
 }
}

Compiler output:
Main.java:12: error: cannot find symbol
   System.out.ptintf("\n");
             ^
  symbol:   method ptintf(String)
  location: variable out of type PrintStream
1 error
Language: Java

import java.util.Scanner;

public class Main {
 public static void main(String[] args) {
  Scanner sc = new Scanner(System.in);
  while (true) {
   int i = sc.nextInt();
   int x = i;
   if (x%3 == 0 || x%10 == 3) {
    System.out.printf(i);
   }
   System.out.ptintf(\n);
  }
 }
}

Compiler output:
Main.java:12: error: illegal character: '\'
   System.out.ptintf(\n);
                     ^
Main.java:12: error: not a statement
   System.out.ptintf(\n);
                      ^
Main.java:12: error: ';' expected
   System.out.ptintf(\n);
                       ^
3 errors
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();
        int num;
        for(int i=1; i<= x; ++i){
		if(output1(i) != 0){
            System.out.printf(" %d", output1(i));
		}

		else if(output2(i) != 0){
		System.out.printf(" %d", output2(i));
		}
        }

        System.out.printf("\n");

    }
    private static int output1(int i){
        if((i % 3) == 0){
            return i;
        }
        else if(i>10 && output2(i/10) != 0){
		return i;
	}
	else{
		return 0;
	}
}

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

import java.util.Scanner;

public class Main {
 public static void main(String[] args) {
  Scanner sc = new Scanner(System.in);
  while (true) {
   int i = sc.nextInt();
   int x = i;
   if (x%3 == 0 || x%10 == 3) {
    System.out.printf( i);
   }
   System.out.ptintf("\n");
  }
 }
}

Compiler output:
Main.java:10: error: no suitable method found for printf(int)
    System.out.printf( i);
              ^
    method PrintStream.printf(String,Object...) is not applicable
      (argument mismatch; int cannot be converted to String)
    method PrintStream.printf(Locale,String,Object...) is not applicable
      (argument mismatch; int cannot be converted to Locale)
Main.java:12: error: cannot find symbol
   System.out.ptintf("\n");
             ^
  symbol:   method ptintf(String)
  location: variable out of type PrintStream
2 errors
Language: Java

import java.util.Scanner;

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

Compiler output:
Main.java:10: error: not a statement
   for(i = 1,i <= n,i++){
               ^
Main.java:10: error: ';' expected
   for(i = 1,i <= n,i++){
                       ^
Main.java:19: error: reached end of file while parsing
}
 ^
3 errors
Language: Java

import java.util.Scanner;

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

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

import java.util.Scanner;

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

Compiler output:
Main.java:17: error: cannot find symbol
   System.out.ptintf("\n");
             ^
  symbol:   method ptintf(String)
  location: variable out of type PrintStream
1 error
Language: Java

import java.util.Scanner;

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

Compiler output:
Main.java:17: error: cannot find symbol
   System.out.ptintln(" ");
             ^
  symbol:   method ptintln(String)
  location: variable out of type PrintStream
1 error
Language: Java

import java.util.Scanner;

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

Compiler output:
Main.java:17: error: cannot find symbol
   System.out.ptintf("\r\n");
             ^
  symbol:   method ptintf(String)
  location: variable out of type PrintStream
1 error
Language: Java

import java.util.Scanner;

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

Compiler output:
Main.java:18: error: cannot find symbol
   System.out.ptintf(K);
             ^
  symbol:   method ptintf(String)
  location: variable out of type PrintStream
1 error
Language: Java

import java.util.Scanner;

public class Main {
 public static void main(String[] args) {
  Scanner sc = new Scanner(System.in);
  while (true) {
   int n = sc.nextInt();
   int i;
   int x = i;
   for(i = 1;i <= n;i++){
    if (x%3 == 0) {
     System.out.printf(" " + i);
    }else if(x%10 == 3){
     System.out.printf(" " + i);
    }
   }
   String K = System.getProperty("line.separator");
   System.out.ptintf(K);
  }
 }
}

Compiler output:
Main.java:18: error: cannot find symbol
   System.out.ptintf(K);
             ^
  symbol:   method ptintf(String)
  location: variable out of type PrintStream
1 error
Language: Java

import java.util.Scanner;

public class Main {
 public static void main(String[] args) {
  Scanner sc = new Scanner(System.in);
  while (true) {
   int n = sc.nextInt();
   int i;
   int x = i;
   for(i = 1;i <= n;i++){
    if (x%3 == 0) {
     System.out.printf(" " + i);
    }else if(x%10 == 3){
     System.out.printf(" " + i);
    }
   }
   String K = System.getProperty("line.separator");
   System.out.ptintln("");
  }
 }
}

Compiler output:
Main.java:18: error: cannot find symbol
   System.out.ptintln("");
             ^
  symbol:   method ptintln(String)
  location: variable out of type PrintStream
1 error
Language: Java

import java.util.Scanner;

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

Compiler output:
Main.java:9: error: variable i might not have been initialized
   int x = i;
           ^
1 error
Language: Java

import java.util.Scanner;

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

Compiler output:
Main.java:10: error: ';' expected
    x = i
         ^
1 error
Language: Java

import java.util.Scanner;

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

Compiler output:
Main.java:10: error: cannot find symbol
    x = i;
    ^
  symbol:   variable x
  location: class Main
Main.java:11: error: cannot find symbol
    if (x%3 == 0) {
        ^
  symbol:   variable x
  location: class Main
Main.java:13: error: cannot find symbol
    }else if(x%10 == 3){
             ^
  symbol:   variable x
  location: class Main
3 errors
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();
   int i;
   for(i = 1;i <= n;i++){
    if (i%3 == 0) {
     System.out.printf("" + i);
    }else if(i%10 == 3){
     System.out.printf("" + i);
    }
   }
   System.out.println("");
  }
 }
}

Compiler output:
Main.java:18: error: class, interface, enum, or record expected
}
^
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();
   int i;
   for(i = 1;i <= n;i++){
    if(i%3 == 0){
     System.out.printf(" " + i);
    }else if(i%10 == 3){
     System.out.printf(" " + i);
    }else{
     while(i <= 10){
      i=i/10
     }
     if(i = 3){
      System.out.printf(" " + i);
     }
    }
   }
   System.out.println("");
  }
 }

Compiler output:
Main.java:15: error: ';' expected
      i=i/10
            ^
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();
   int i;
   for(i = 1;i <= n;i++){
    if(i%3 == 0){
     System.out.printf(" " + i);
    }else if(i%10 == 3){
     System.out.printf(" " + i);
    }else{
     while(i <= 10){
      i=i/10;
     }
     if(i = 3){
      System.out.printf(" " + i);
     }
    }
   }
   System.out.println("");
  }
 }

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

import java.util.Scanner;

public class include3 {
	private static Scanner input;
	public static void main(String[] args){
		int i;
		input = new Scanner(System.in);
		int n = input.nextInt();
		if(n>=3 && n<=10000){
			for(i=3;i<=n;i++){
				if(i%3==0 || i%10-3==0){
					System.out.print(" "+i);
				}	
				else{
					if(i/1000==3){
						System.out.print(" "+i);
				}else if(i/100==3){
					System.out.print(" "+i);
				}else if(i/10==3){
					System.out.print(" "+i);
				}
				}
			}
		}
	}
}

Compiler output:
Main.java:3: error: class include3 is public, should be declared in a file named include3.java
public class include3 {
       ^
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();
  int i;
  int x = i;
  for(i = 1;i <= n;i++){
   if (x%3 == 0) {
    System.out.printf(" " + i);
   }else if(x%10 == 3){
    System.out.printf(" " + i);
   }else if(i > 10){
     while(i > 10){
     i=i/10;
     }
     if(i == 3){
      System.out.printf(" " + i);
     }
    }
??????}
??????System.out.ptintln("");
????}
??}

Compiler output:
Main.java:22: error: illegal start of expression
??????}
^
Main.java:22: error: illegal start of expression
??????}
 ^
Main.java:22: error: illegal start of expression
??????}
  ^
Main.java:22: error: illegal start of expression
??????}
   ^
Main.java:22: error: illegal start of expression
??????}
    ^
Main.java:22: error: illegal start of expression
??????}
     ^
Main.java:22: error: illegal start of expression
??????}
      ^
Main.java:23: error: illegal start of expression
??????System.out.ptintln("");
^
Main.java:23: error: illegal start of expression
??????System.out.ptintln("");
 ^
Main.java:23: error: illegal start of expression
??????System.out.ptintln("");
  ^
Main.java:23: error: illegal start of expression
??????System.out.ptintln("");
   ^
Main.java:23: error: illegal start of expression
??????System.out.ptintln("");
    ^
Main.java:23: error: illegal start of expression
??????System.out.ptintln("");
     ^
Main.java:23: error: : expected
??????System.out.ptintln("");
                            ^
Main.java:24: error: illegal start of expression
????}
^
Main.java:24: error: illegal start of expression
????}
 ^
Main.java:24: error: illegal start of expression
????}
  ^
Main.java:24: error: illegal start of expression
????}
   ^
Main.java:24: error: illegal start of expression
????}
    ^
Main.java:25: error: illegal start of type
??}
^
20 errors
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();
  int i;
  int x = i;
  for(i = 1;i <= n;i++){
   if (x%3 == 0) {
    System.out.printf(" " + i);
   }else if(x%10 == 3){
    System.out.printf(" " + i);
   }else if(i > 10){
     while(i > 10){
     i=i/10;
     }
     if(i == 3){
      System.out.printf(" " + i);
     }
    }
   }
   System.out.ptintln("");
  }
 }

Compiler output:
Main.java:23: error: cannot find symbol
   System.out.ptintln("");
             ^
  symbol:   method ptintln(String)
  location: variable out of type PrintStream
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();
  int i;
  int x = i;
  for(i = 1;i <= n;i++){
   if (x%3 == 0) {
    System.out.printf(" " + i);
   }else if(x%10 == 3){
    System.out.printf(" " + i);
   }else if(i > 10){
     while(i > 10){
     i=i/10;
     }
     if(i == 3){
      System.out.printf(" " + i);
     }
    }
  }}
 }

Compiler output:
Main.java:8: error: variable i might not have been initialized
  int x = i;
          ^
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();
  int i;
  for(i = 1;i <= n;i++){
   if (i%3 == 0) {
    System.out.printf(" " + i);
   }else if(i%10 == 3){
    System.out.printf(" " + i);
   }else if(i > 10){
    int x = i
    while(x > 10){
     i=x/10;
    }
    if(x == 3){
     System.out.printf(" " + i);
    }
   }
  }
 }
}

Compiler output:
Main.java:14: error: ';' expected
    int x = i
             ^
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();
  int i;
  for(i = 1;i <= n;i++){
   if (i%3 == 0) {
    System.out.printf(" " + i);
   }else if(i%10 == 3){
    System.out.printf(" " + i);
   }else if(i > 10){
    int x = i;
    while(x > 10){
     x=x/10;
    }
    if(x == 3){
     System.out.printf(" " + i);
    }
   }
  }
 }
 System.out.println("");
}

Compiler output:
Main.java:24: error: <identifier> expected
 System.out.println("");
                   ^
Main.java:24: error: illegal start of type
 System.out.println("");
                    ^
2 errors
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();
  int i;
  for(i = 1;i <= n;i++){
   if (i%3 == 0) {
    System.out.printf(" " + i);
   }else if(i%10 == 3){
    System.out.printf(" " + i);
   }else if(i > 10){
    int x = i;
    while(x > 10){
     x=x/10;
    }
    if(x == 3){
     System.out.printf(" " + i);
    }
   }
  }
 }System.out.println("");
}

Compiler output:
Main.java:23: error: <identifier> expected
 }System.out.println("");
                    ^
Main.java:23: error: illegal start of type
 }System.out.println("");
                     ^
2 errors
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();
  int i;
  for(i = 1;i <= n;i++){
   if (i%3 == 0) {
    System.out.printf(" " + i);
   }else if(i%10 == 3){
    System.out.printf(" " + i);
   }else if(i > 10){
    int x = i;
    while(x > 10){
     x=x/10;
    }
    if(x == 3){
     System.out.printf(" " + i);
    }
   }
  }
 }
 system.out.println("");
}

Compiler output:
Main.java:24: error: <identifier> expected
 system.out.println("");
                   ^
Main.java:24: error: illegal start of type
 system.out.println("");
                    ^
2 errors
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();
  int i;
  for(i = 1;i <= n;i++){
   if (i%3 == 0) {
    System.out.printf(" " + i);
   }else if(i%10 == 3){
    System.out.printf(" " + i);
   }else if(i > 10){
    int x = i;
    while(x > 10){
     x=x/10;
    }
    if(x == 3){
     System.out.printf(" " + i);
    }
   }
  system.out.println("");
  }
 }
}

Compiler output:
Main.java:22: error: package system does not exist
  system.out.println("");
        ^
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();
  int i;
  for(i = 1;i <= n;i++){
   if (i%3 == 0) {
    System.out.printf(" " + i);
   }else if(i%10 == 3){
    System.out.printf(" " + i);
   }else if(i > 10){
    int x = i;
    while(x > 10){
     x = x/10;
    }
    if(x == 3){
     System.out.printf(" " + i);
    }
   }
  }
 System.out.println("")
 }
}

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

import java.util.Scanner;

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

 }
}

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

Compiler output:
Main.java:3: error: '{' expected
public class output(m){
                   ^
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();
  int i;
  for(i = 1;i <= n;i++){
   for(int m=0;10^m < i;m++){
    i= i/(10^m);
    if (i%3 == 0) {
     System.out.printf(" " + i);
    }else if(i%10 == 3){
     System.out.printf(" " + i);
    }else if(i > 10){
     int x = i;
    }
   }
  }
 System.out.println("");
 }
}

Compiler output:
Main.java:9: error: bad operand types for binary operator '^'
   for(int m=0;10^m < i;m++){
                 ^
  first type:  int
  second type: boolean
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();
  int i;
  for(i = 1;i <= n;i++){
   for(int m=0;Math.pow(10,m) < i;m++){
    i= i/(Math.pow(10,m));
    if (i%3 == 0) {
     System.out.printf(" " + i);
    }else if(i%10 == 3){
     System.out.printf(" " + i);
    }else if(i > 10){
     int x = i;
    }
   }
  }
 System.out.println("");
 }
}

Compiler output:
Main.java:10: error: incompatible types: possible lossy conversion from double to int
    i= i/(Math.pow(10,m));
        ^
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();
  int i;
  for(i = 1;i <= n;i++){
   if (i%3 == 0) {
    System.out.printf(" " + i);
   }else if(i%10 == 3){
      System.out.printf(" " + i);
   }else{ 
    int x = i
    while(x > 1){
     x= x/10;
     if(x%10 == 3){
      System.out.printf(" " + i);
     }
    }
   }
  }
 System.out.println("");
 }
}

Compiler output:
Main.java:14: error: ';' expected
    int x = i
             ^
1 error
Language: Java

import java.util.Scanner;
public class main {
	private static Scanner input;
	public static void main(String[] args){
		int i;
		input = new Scanner(System.in);
		int n = input.nextInt();
		if(n>=3 && n<=10000){
			for(i=3;i<=n;i++){
				if(i%3==0 || i%10-3==0){
					System.out.print(" "+i);
				}	
				else{
					if(i/1000==3){
						System.out.print(" "+i);
					}
					else if(i/100==3){
						System.out.print(" "+i);
					}
					else if(i/10==3){
						System.out.print(" "+i);
					}
				}	
			}
		}
	}
}

Compiler output:
Main.java:2: error: class main is public, should be declared in a file named main.java
public class main {
       ^
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();
		int x;
		for (int i = 1; i <= n; i++) {
			if (i % 3 == 0 && i % 10 == 3) {
				System.out.print(" " + i);
				continue;
			}
			if (i % 3 == 0) {
				System.out.print(" " + i);
				continue;
			}
			if (i % 10 == 3) {
				System.out.print(" " + i);
				continue;
			}
			if (i >= 30) {
				x = i;
				x = x / 10;
				if (x % 3 == 0) {
					System.out.print(" " + i);
					continue;
				}
			}

		}

	}

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

import java.util.Scanner;
public class Main {
 private static Scanner sc;
 public static void main(String[] args){
  int i,x;
  sc = new Scanner(System.in);
  int n = sc.nextInt();
   for(i=3;i<=n;i++){
	   x=i;
	   if(n<3||n>10000){
		   break;
	   }
       if(x%3==0){
    	     System.out.print(" "+i);
       }else if(x%10==3){
    	     System.out.print(" "+i);
       }
       x/=10;
       if(x==3){
    	   System.out.print(" "+i);
       }
   }
   System.out.println();
 }
}
}

Compiler output:
Main.java:26: error: class, interface, enum, or record expected
}
^
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();
		int i = 1;

		do {
			int x = i;
			if (x % 3 == 0) {
				System.out.print(" " + i);
			}

			else {
				do{

				if (x % 10 == 3) {
					System.out.print(" " + i);
					break;

				}
				x /= 10;
				}while(x!=0);
					

			}

		} while (++i <= n);

		System.out.println();

	}

}

Compiler output:
Main.java:5: error: ';' expected
		Scanner sc = new Scanner(System.in))
		                                   ^
1 error
Language: Java

public class hanawa {


		public static void main(String[] args) {
		java.util.Scanner scan = new java.util.Scanner(System.in);
		int n; 
		int i;
		

		n = scan.nextInt();

		if(3 <= n && n <= 400){
			for(i = 3; i <= n; i++){
				if(i % 3 == 0 || i % 10 == 3 || i/10 % 10 == 3 ||(30 <= i && i <= 39) || (300 <= i && i <= 399) ){
					
				System.out.print(" "+i);
				}
				}
			
			
		
		
		
		
		}
		if(3 <= n && n <= 10000){
			for(i = 3; i <= n; i++){
				if(i % 3 == 0 || i % 10 == 3 || i/10 % 10 == 3 ||(30 <= i && i <= 39) || (300 <= i && i <= 399) || (3000 <= i && i <= 3999)){
					
				System.out.print(" "+i);
				}
				}
			
			
		
		
		
		
		}
		}
}	

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

public class Main {


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

Compiler output:
Main.java:5: error: cannot find symbol
		  Scanner scan = new Scanner(System.in);
		  ^
  symbol:   class Scanner
  location: class Main
Main.java:5: error: cannot find symbol
		  Scanner scan = new Scanner(System.in);
		                     ^
  symbol:   class Scanner
  location: class Main
2 errors