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

public class hanawa {


		public static void main(String[] args) {
		java.util.Scanner scan = new java.util.Scanner(System.in);
		int n = scan.nextInt(); 
		int i;
	
		if(3 <= n && n <= 10000){
			for(i = 1; i <= n; i++){
				if(i % 3 == 0 || i % 10 == 3 || i/10 % 10 == 3 || i/100 % 10 == 3){
					
				System.out.print(" "+i);
				}
				}System.out.println();
	
		}
		
		
		}
			
			
		}

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

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:2: 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);
	  }
	  while(true){
  else if(x%10==3){
	  System.out.print(" "+i);
	  break;
  }
  x/=10;
  if(x!=0)continue;
  else break;
	  }
  } while (++i <= n);
  System.out.println();
		}}

Compiler output:
Main.java:14: error: 'else' without 'if'
  else if(x%10==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 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;
if(x!=0)continue;
  else break;
  } while (++i <= n);
  System.out.println();
		}}}

Compiler output:
Main.java:23: error: while expected
		}}}
		  ^
Main.java:23: error: reached end of file while parsing
		}}}
		   ^
2 errors
Language: Java

import java.util.Scanner;

public class main1{
  public static void main(String[] args){
    Scanner r=new Scanner(System.in);
    int t = r.nextInt();
    for (int i = 1;i <= t ;i++ ) {
      int s = i;
      if (s%3==0||s%10==3||s/10==3) {
        System.out.print(" "+i);
      }else{
        while(s!=0){
          s/=10;
          if (s%10==3) {
            System.out.print(" "+i);
            break;
          }
        }
      }
    }
    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.util.Scanner;

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

Compiler output:
Main.java:3: 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 r=new Scanner(System.in);
    int t = r.nextInt();
    for (int i = 1;i <= t ;i++ ) {
      int s = i;
      if (s%3==0||s%10==3||s/10==3) {
        System.out.print(" "+i);
      }else{
        while(s!=0){
          s/=10;
          if (s%10==3) {
            System.out.print(" "+i);
            break;
          }
        }
      }
    }
    System.out.println(" ");
  }
}

Compiler output:
Main.java:3: 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 = newScanner(System.in);
		int n = sc.nextInt();
		int i = 1;
		while(true){
			int x = i;
			if(x % 3 == 0){
				System.out.println(" %d", i);
			}else{
				while(true){
					if(x % 10 == 3){
						Syste.out.println(" %d", i);
						break;
					}else{
						x /= 10;
						if(x == 0)break;
					}
				}
			}
			if(++i > n){
				System.out.print("\n");
				break;
			}
		}
	}
	
}

Compiler output:
Main.java:5: error: cannot find symbol
		Scanner sc = newScanner(System.in);
		             ^
  symbol:   method newScanner(InputStream)
  location: class Main
Main.java:11: error: no suitable method found for println(String,int)
				System.out.println(" %d", i);
				          ^
    method PrintStream.println() is not applicable
      (actual and formal argument lists differ in length)
    method PrintStream.println(boolean) is not applicable
      (actual and formal argument lists differ in length)
    method PrintStream.println(char) is not applicable
      (actual and formal argument lists differ in length)
    method PrintStream.println(int) is not applicable
      (actual and formal argument lists differ in length)
    method PrintStream.println(long) is not applicable
      (actual and formal argument lists differ in length)
    method PrintStream.println(float) is not applicable
      (actual and formal argument lists differ in length)
    method PrintStream.println(double) is not applicable
      (actual and formal argument lists differ in length)
    method PrintStream.println(char[]) is not applicable
      (actual and formal argument lists differ in length)
    method PrintStream.println(String) is not applicable
      (actual and formal argument lists differ in length)
    method PrintStream.println(Object) is not applicable
      (actual and formal argument lists differ in length)
Main.java:15: error: package Syste does not exist
						Syste.out.println(" %d", i);
						     ^
3 errors
Language: Java

import java.util.Scanner;

public class Main {
	public static void main(String[] args){
		Scanner sc = newScanner(System.in);
		int n = sc.nextInt();
		int i = 1;
		while(true){
			int x = i;
			if(x % 3 == 0){
				System.out.print(" %d", i);
			}else{
				while(true){
					if(x % 10 == 3){
						Syste.out.print(" %d", i);
						break;
					}else{
						x /= 10;
						if(x == 0)break;
					}
				}
			}
			if(++i > n){
				System.out.print("\n");
				break;
			}
		}
	}
	
}

Compiler output:
Main.java:5: error: cannot find symbol
		Scanner sc = newScanner(System.in);
		             ^
  symbol:   method newScanner(InputStream)
  location: class Main
Main.java:11: error: no suitable method found for print(String,int)
				System.out.print(" %d", i);
				          ^
    method PrintStream.print(boolean) is not applicable
      (actual and formal argument lists differ in length)
    method PrintStream.print(char) is not applicable
      (actual and formal argument lists differ in length)
    method PrintStream.print(int) is not applicable
      (actual and formal argument lists differ in length)
    method PrintStream.print(long) is not applicable
      (actual and formal argument lists differ in length)
    method PrintStream.print(float) is not applicable
      (actual and formal argument lists differ in length)
    method PrintStream.print(double) is not applicable
      (actual and formal argument lists differ in length)
    method PrintStream.print(char[]) is not applicable
      (actual and formal argument lists differ in length)
    method PrintStream.print(String) is not applicable
      (actual and formal argument lists differ in length)
    method PrintStream.print(Object) is not applicable
      (actual and formal argument lists differ in length)
Main.java:15: error: package Syste does not exist
						Syste.out.print(" %d", i);
						     ^
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 = 1;
		while (true) {
			int x = i;
			if (x % 3 == 0) {
				System.out.println(" %d", i);
			} else {
				while (true) {
					if (x % 10 == 3) {
						System.out.println(" %d", i);
						break;
					} else {
						x /= 10;
						if (x == 0)
							break;
					}
				}
			}
			if (++i > n) {
				System.out.print("\n");
				break;
			}
		}
	}

}

Compiler output:
Main.java:11: error: no suitable method found for println(String,int)
				System.out.println(" %d", i);
				          ^
    method PrintStream.println() is not applicable
      (actual and formal argument lists differ in length)
    method PrintStream.println(boolean) is not applicable
      (actual and formal argument lists differ in length)
    method PrintStream.println(char) is not applicable
      (actual and formal argument lists differ in length)
    method PrintStream.println(int) is not applicable
      (actual and formal argument lists differ in length)
    method PrintStream.println(long) is not applicable
      (actual and formal argument lists differ in length)
    method PrintStream.println(float) is not applicable
      (actual and formal argument lists differ in length)
    method PrintStream.println(double) is not applicable
      (actual and formal argument lists differ in length)
    method PrintStream.println(char[]) is not applicable
      (actual and formal argument lists differ in length)
    method PrintStream.println(String) is not applicable
      (actual and formal argument lists differ in length)
    method PrintStream.println(Object) is not applicable
      (actual and formal argument lists differ in length)
Main.java:15: error: no suitable method found for println(String,int)
						System.out.println(" %d", i);
						          ^
    method PrintStream.println() is not applicable
      (actual and formal argument lists differ in length)
    method PrintStream.println(boolean) is not applicable
      (actual and formal argument lists differ in length)
    method PrintStream.println(char) is not applicable
      (actual and formal argument lists differ in length)
    method PrintStream.println(int) is not applicable
      (actual and formal argument lists differ in length)
    method PrintStream.println(long) is not applicable
      (actual and formal argument lists differ in length)
    method PrintStream.println(float) is not applicable
      (actual and formal argument lists differ in length)
    method PrintStream.println(double) is not applicable
      (actual and formal argument lists differ in length)
    method PrintStream.println(char[]) is not applicable
      (actual and formal argument lists differ in length)
    method PrintStream.println(String) is not applicable
      (actual and formal argument lists differ in length)
    method PrintStream.println(Object) is not applicable
      (actual and formal argument lists differ in length)
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 = 1;
		while (true) {
			int x = i;
			if (x % 3 == 0) {
				System.out.print(" %d", i);
			} else {
				while (true) {
					if (x % 10 == 3) {
						System.out.print(" %d", i);
						break;
					} else {
						x /= 10;
						if (x == 0)
							break;
					}
				}
			}
			if (++i > n) {
				System.out.print("\n");
				break;
			}
		}
	}

}

Compiler output:
Main.java:11: error: no suitable method found for print(String,int)
				System.out.print(" %d", i);
				          ^
    method PrintStream.print(boolean) is not applicable
      (actual and formal argument lists differ in length)
    method PrintStream.print(char) is not applicable
      (actual and formal argument lists differ in length)
    method PrintStream.print(int) is not applicable
      (actual and formal argument lists differ in length)
    method PrintStream.print(long) is not applicable
      (actual and formal argument lists differ in length)
    method PrintStream.print(float) is not applicable
      (actual and formal argument lists differ in length)
    method PrintStream.print(double) is not applicable
      (actual and formal argument lists differ in length)
    method PrintStream.print(char[]) is not applicable
      (actual and formal argument lists differ in length)
    method PrintStream.print(String) is not applicable
      (actual and formal argument lists differ in length)
    method PrintStream.print(Object) is not applicable
      (actual and formal argument lists differ in length)
Main.java:15: error: no suitable method found for print(String,int)
						System.out.print(" %d", i);
						          ^
    method PrintStream.print(boolean) is not applicable
      (actual and formal argument lists differ in length)
    method PrintStream.print(char) is not applicable
      (actual and formal argument lists differ in length)
    method PrintStream.print(int) is not applicable
      (actual and formal argument lists differ in length)
    method PrintStream.print(long) is not applicable
      (actual and formal argument lists differ in length)
    method PrintStream.print(float) is not applicable
      (actual and formal argument lists differ in length)
    method PrintStream.print(double) is not applicable
      (actual and formal argument lists differ in length)
    method PrintStream.print(char[]) is not applicable
      (actual and formal argument lists differ in length)
    method PrintStream.print(String) is not applicable
      (actual and formal argument lists differ in length)
    method PrintStream.print(Object) is not applicable
      (actual and formal argument lists differ in length)
2 errors
Language: Java

public 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 || i %  10 == 3) {
        if(i == 3){
          System.out.print(i);
        }else {
          System.out.print(" " + i);
        }
      }
    }
  }
}

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.*;

class Main {
     public static void main(String[] args) {
          Scanner sc = new Scanner();
          StringBuilder sb = new StringBuilder();

          while (true) {
              int n = sc.nextInt();
              if (n%3 != 0) break;
              for (int i=3; i<=n; i+3) {
                  sb.append(i);
              }
              sb.append(" ");
          }
          System.out.println(sb);
      }
}

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

import java.util.*;

class Main {
     public static void main(String[] args) {
          Scanner sc = new Scanner();
          StringBuilder sb = new StringBuilder();

          while (true) {
              int n = sc.nextInt();
              if (n%3 != 0) break;
              for (int i=3; i<=n; i+=3) {
                  sb.append(i);
              }
              sb.append(" ");
          }
          System.out.println(sb);
      }
}

Compiler output:
Main.java:5: error: no suitable constructor found for Scanner(no arguments)
          Scanner sc = new Scanner();
                       ^
    constructor Scanner.Scanner(Readable,Pattern) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(Readable) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(InputStream) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(InputStream,String) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(InputStream,Charset) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(File) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(File,String) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(File,Charset) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(File,CharsetDecoder) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(Path) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(Path,String) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(Path,Charset) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(String) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(ReadableByteChannel) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(ReadableByteChannel,String) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(ReadableByteChannel,Charset) is not applicable
      (actual and formal argument lists differ in length)
1 error
Language: Java

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

Compiler output:
Main.java:8: error: cannot find symbol
        int n = scan.nextInt();
                ^
  symbol:   variable scan
  location: class Main
1 error
Language: Java

import java.util.Scanner;

public class MainD {
	public static void main(String[] args){
		//????????£?????????????????????
		Scanner sc = new Scanner(System.in);

		//n?????????
		int n = sc.nextInt();

		//n?????????????????????
		for(int i = 1; i <= n; i++){
			//?????¶???3????????°????????¨???
			if(i % 3 == 0 || Integer.toString(i).contains("3")){
				System.out.print(" " + i);
			}
		}
		System.out.println();
	}
}

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

import java.utrl.Scanner;
class Main{
public static void main(String[] args){
Scanner scan=new Scanner(System.in);
int x=scan.nextInt();
boolean a=true;
for(int i=1; i<x+1; i++){
if(i%3==0){
System.out.print(" "+i);
a=false;
}
while(a){
if(i%10==3){
System.out.print(" "+i);
a=false;
}else if(i>30){
i /=10;
}else  a=false;
}
a=true;
}
}
} 

Compiler output:
Main.java:1: error: package java.utrl does not exist
import java.utrl.Scanner;
                ^
Main.java:4: error: cannot find symbol
Scanner scan=new Scanner(System.in);
^
  symbol:   class Scanner
  location: class Main
Main.java:4: error: cannot find symbol
Scanner scan=new Scanner(System.in);
                 ^
  symbol:   class Scanner
  location: class Main
3 errors
Language: Java

import java.util.Scanner;
class Main{
public static void main(String[] args){
Scanner scan=new Scanner(System.in);
int x=scan.nextInt();
boolean a=true;
for(int i=1; i<x+1; i++){
if(i%3==0){
System.out.print(" "+i);
a=false;
}
while(a){
if(i%10==3){
System.out.print(" "+i);
a=false;
}else if(i>30){
i /=10;
}else  a=false;
}
a=true;
}
println();
}
} 

Compiler output:
Main.java:22: error: cannot find symbol
println();
^
  symbol:   method println()
  location: class Main
1 error
Language: Java

import java.util.Scanner;

public class AojProgram3 {

	public static void main(String[] args) throws java.lang.Exception
	{
		Scanner scan = new Scanner(System.in);
		int n;
		n = scan.nextInt();
		
		for(int j = 1; j < n + 1; j++) {
			if(j % 3 == 0||j / 10 == 3||j / 100 == 3||j / 1000 == 3) {
				System.out.print(" " + j);
			}
		}
		
		System.out.println();
	}

}

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

public class Main {

	public static void main(String[] args) throws java.lang.Exception
	{
		Scanner scan = new Scanner(System.in);
		int n;
		n = scan.nextInt();
		
		for(int j = 1; j < n + 1; j++) {
			if(j % 3 == 0||j % 10 == 3||j % 100 == 3||j % 1000 == 3||j / 10 == 3||j / 100 == 3||j / 1000 == 3) {
				System.out.print(" " + j);
			}
		}
		
		System.out.println();
	}

}

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
Language: Java

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

public class Main {
	public static void main(String[] args)throws IOException{
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

		int number = Integer.parseInt(br.readLine());

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

}
}

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

package practice;

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

public class Structured_Programming_20 {
	public static void main(String[] args) {
		BufferedReader input = new BufferedReader(new InputStreamReader(System.in));


		  try{
				  //????????\???
			  //??\????????????a????????????????????°??¨??????????????????????????°???????±???????
			     String ab = input.readLine();
		         String []strAry = ab.split(" ");
		         int  a=Integer.parseInt(strAry[0]);
		         int count=1;
		         //??\??????????????°???a?????§??°?????????
		         for(int i=1; i<=a; i++){
		        	 //a????????§??????????????????a?????????
		        	 if(count%3==0){
		        		 System.out.print(" "+count);
		        	 }
                    //else if???????????¨??????if???false?????¨??????????????????
		        	 else if(count%10==3){
		        		 System.out.print(" "+count);
		        	 }
		        	 count++;

		         }


		    }catch(IOException e) {System.out.println("Exception : " + e);
		    }

	}//??????
}

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

import java.io.*;

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

Compiler output:
Main.java:9: error: illegal character: '\'
		System.out.print(\t);
		                 ^
Main.java:9: error: not a statement
		System.out.print(\t);
		                  ^
Main.java:9: error: ';' expected
		System.out.print(\t);
		                   ^
3 errors
Language: Java

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class Main {

	public static void main(String[] args) throws IOException {

		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		StringBuilder sb = new StringBuilder();
		String datas = br.readLine();
		int n = Integer.parseInt(datas);
		
		for(int i = 1;i<=n;i++) {
			
			if(i % 3 ==0){
				sb.append(" ").append(i);
				continue;
			}
			
			int tmp = i;
			
			do {
				if(tmp % 10 == 3) {
					sb.append(" ").append(i);
					break.args;
				}
				tmp = tmp /10;
			}while(tmp !=0);
			
			
		
		}
		System.out.println(sb);
	}
}

Compiler output:
Main.java:25: error: ';' expected
					break.args;
					     ^
Main.java:25: error: not a statement
					break.args;
					      ^
2 errors
Language: Java

mport java.util.Scanner;
public 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) System.out.print(" " + i);
			if(i % 10 == 3) System.out.print(" " + i);
		}
	}
}


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

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


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

import java.util.Scanner;
public class Main1{
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        int n = scan.nextInt();
        int i;
        for(int x = 1; x <= n; x++){
            if(String.valueOf(x).contains("3")){
                System.out.print(" " + x);
            }
            else if(x % 3 == 0){
                System.out.print(" " + x);
            }
            else if(x % 10 == 3){
                System.out.print(" " + x);
            }
            else{
                i = x /10;
                if(i % 10 == 3){
                    System.out.print(" " + x);
                }
            }
        }
        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

import java.util.Scanner;

public class Main{
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ

		Scanner in = new Scanner(System.in);

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


		while(i <= n){
			int x = i;

			if(x % 3 == 0){
				System.out.print(" " + i);
			}else{
				if(x % 10 == 3){
					System.out.print(" " + i);
				}else{
					int y = x;
					while(y > 10){
						y /= 10;
						if(y % 10 == 3){
							System.out.print(" " + i);
							break;
						}
					}

				}
			}

			i++;
		}
		System.out.println();

	}

}
	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ

		Scanner in = new Scanner(System.in);

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


		while(i <= n){
			int x = i;

			if(x % 3 == 0){
				System.out.print(" " + x);
			}else{
				if(x % 10 == 3){
					System.out.print(" " + x);
				}else{
					x /= 10;
				}
			}

			i++;
		}
		System.out.println();

	}

}


Compiler output:
Main.java:4: error: illegal start of type
import java.util.Scanner;
^
Main.java:4: error: <identifier> expected
import java.util.Scanner;
                        ^
2 errors
Language: Java


import java.util.Scanner;

public class Main {

	public static void main(String[] args) {

		// fizzbuzz

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

		sc.close();

		for(int i=1; i<=n; i++) {
			// 3または3を含む数字を出力する
			if(i % 3 == 0) {
				System.out.print(" " + i);
			} else if(String.valueOf(i).indexOf("3") > 0) {
				System.out.print(" " + i);
			}
		}
		System.out.println(" ");

	}



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

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

public class ITP1_5_D {

	public static void main(String[] args) throws Exception, IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		int n = Integer.parseInt(br.readLine());

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



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

import java.util.*;
import java.lang.*;

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

		for (i=0; i < cnt; i++) {
			if (i % 3 == 0) {
				//3で割った余りが0なら出力
		        System.out.println(" " + i);
			} else {
				//10で割った余りが3なら出力
				if (i % 10 == 3) {
					System.out.println(" " + i);
				}
			}
		}
    }
}




Compiler output:
Main.java:7: error: cannot find symbol
        int cnt = sc.nextInt;	//count??
                    ^
  symbol:   variable nextInt
  location: variable sc of type Scanner
Main.java:9: error: cannot find symbol
		for (i=0; i < cnt; i++) {
		     ^
  symbol:   variable i
  location: class Main
Main.java:9: error: cannot find symbol
		for (i=0; i < cnt; i++) {
		          ^
  symbol:   variable i
  location: class Main
Main.java:9: error: cannot find symbol
		for (i=0; i < cnt; i++) {
		                   ^
  symbol:   variable i
  location: class Main
Main.java:10: error: cannot find symbol
			if (i % 3 == 0) {
			    ^
  symbol:   variable i
  location: class Main
Main.java:12: error: cannot find symbol
		        System.out.println(" " + i);
		                                 ^
  symbol:   variable i
  location: class Main
Main.java:15: error: cannot find symbol
				if (i % 10 == 3) {
				    ^
  symbol:   variable i
  location: class Main
Main.java:16: error: cannot find symbol
					System.out.println(" " + i);
					                         ^
  symbol:   variable i
  location: class Main
8 errors
Language: Java

import java.util.*;

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

		for (int i=1; i <= cnt; i++) {
			if (i % 3 == 0) {
				//3で割った余りが0なら出力
		        System.out.println(" " + i);
			} else {
				//10で割った余りが3なら出力
				if (i % 10 == 3) {
					System.out.println(" " + i);
				}
			}
		}
    }
}




Compiler output:
Main.java:6: error: cannot find symbol
	int cnt = sc.nextInt;	//count??
	            ^
  symbol:   variable nextInt
  location: variable sc of type Scanner
1 error
Language: Java

import java.util.*;

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

		for (int i=1; i <= cnt; i++) {
			if (i % 3 == 0) {
				//3で割った余りが0なら出力
		        System.out.println(" " + i);
			} else {
				//10で割った余りが3なら出力
				if (i % 10 == 3) {
					System.out.println(" " + i);
				}
			}
		}
	}
}




Compiler output:
Main.java:6: error: cannot find symbol
	int cnt = sc.nextInt;	//count??
	            ^
  symbol:   variable nextInt
  location: variable sc of type Scanner
1 error
Language: Java

import java.util.*;

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

		for (int i=1; i <= cnt; i++) {
			if (i % 3 == 0) {
				//3で割った余りが0なら出力
		        System.out.println(" " + i);
			} else {
				//10で割った余りが3なら出力
				if (i % 10 == 3) {
					System.out.println(" " + i);
				}
			}
		}
	}
}




Compiler output:
Main.java:6: error: '.class' expected
	int cnt = int a = sc.nextInt();	//count??
	              ^
1 error
Language: Java

import java.util.Scanner;

public class StructuredProgram {
    public void call(int n) {
        int i;
        for (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");
    }
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        StructuredProgram app = new StructuredProgram();
        int inputNum;

        inputNum = Integer.parseInt(scan.next());
        app.call(inputNum);
    }
}



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

import java.util.Scanner;

public class Main {
    public void call(int n) {
        int i;
        for (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");
    }
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        StructuredProgram app = new StructuredProgram();
        int inputNum;

        inputNum = Integer.parseInt(scan.next());
        app.call(inputNum);
    }
}



Compiler output:
Main.java:17: error: cannot find symbol
        StructuredProgram app = new StructuredProgram();
        ^
  symbol:   class StructuredProgram
  location: class Main
Main.java:17: error: cannot find symbol
        StructuredProgram app = new StructuredProgram();
                                    ^
  symbol:   class StructuredProgram
  location: class Main
2 errors
Language: Java

import java.util.Scanner;

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


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

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



Compiler output:
Main.java:15: error: incompatible types: int cannot be converted to boolean
                while(j){
                      ^
1 error
Language: Java

import java.awt.print.Printable;
import java.util.Scanner;
import javax.sound.midi.SysexMessage;
  
public class Main{      
    public static void call()
    {
        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);
                break;
            }
        }
        while(true)
            if ( x % 10 == 3 )
            {
                System.out.print(" "+i);
                break;
            }   
        x /= 10;
        if (x!=0) continue;
        else break;
     }  
        while ( ++i <= n );
            System.out.println();
    }
}



Compiler output:
Main.java:19: error: ';' expected
        while(true)
                   ^
Main.java:29: error: illegal start of type
        while ( ++i <= n );
        ^
Main.java:29: error: <identifier> expected
        while ( ++i <= n );
                   ^
Main.java:29: error: <identifier> expected
        while ( ++i <= n );
                        ^
Main.java:30: error: <identifier> expected
            System.out.println();
                              ^
Main.java:32: error: class, interface, enum, or record expected
}
^
6 errors
Language: Java

import java.awt.print.Printable;
import java.util.Scanner;
import javax.sound.midi.SysexMessage;
  
public class Main{      
    public static void call()
    {
        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);
                break;
            }
        }
        while(true)
            if ( x % 10 == 3 )
            {
                System.out.print(" "+i);
                break;
            }   
        x /= 10;
        if (x!=0) continue;
        else break;
     }  
        while ( ++i <= n )
            System.out.println();
    }
}



Compiler output:
Main.java:19: error: ';' expected
        while(true)
                   ^
Main.java:29: error: illegal start of type
        while ( ++i <= n )
        ^
Main.java:29: error: <identifier> expected
        while ( ++i <= n )
                   ^
Main.java:29: error: <identifier> expected
        while ( ++i <= n )
                        ^
Main.java:30: error: <identifier> expected
            System.out.println();
                              ^
Main.java:32: error: class, interface, enum, or record expected
}
^
6 errors
Language: Java

import java.awt.print.Printable;
import java.util.Scanner;
import javax.sound.midi.SysexMessage;
  
public class Main{      
    public static void call()
    {
        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);
                break;
            }
        }
        while(true)
        {
            if ( x % 10 == 3 )
            {
                System.out.print(" "+i);
                break;
            }   
            x /= 10;
            if (x!=0) continue;
            else break;
        }
     }  
        while ( ++i <= n )
            System.out.println();
    }
}



Compiler output:
Main.java:19: error: ';' expected
        while(true)
                   ^
Main.java:31: error: illegal start of type
        while ( ++i <= n )
        ^
Main.java:31: error: <identifier> expected
        while ( ++i <= n )
                   ^
Main.java:31: error: <identifier> expected
        while ( ++i <= n )
                        ^
Main.java:32: error: <identifier> expected
            System.out.println();
                              ^
Main.java:34: error: class, interface, enum, or record expected
}
^
6 errors
Language: Java

import java.awt.print.Printable;
import java.util.Scanner;
import javax.sound.midi.SysexMessage;
  
public class Main{      
    public static void call()
    {
        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);
                break;
            }
        }
        while(true);
        {   
            if ( x % 10 == 3 )
            {
                System.out.print(" "+i);
                break;
            }   
            x /= 10;
            if (x!=0) continue;
            else break;
            
        };
       
        while ( ++i <= n );
            System.out.println();
    }
}



Compiler output:
Main.java:21: error: cannot find symbol
            if ( x % 10 == 3 )
                 ^
  symbol:   variable x
  location: class Main
Main.java:24: error: break outside switch or loop
                break;
                ^
Main.java:26: error: cannot find symbol
            x /= 10;
            ^
  symbol:   variable x
  location: class Main
Main.java:27: error: cannot find symbol
            if (x!=0) continue;
                ^
  symbol:   variable x
  location: class Main
Main.java:27: error: continue outside of loop
            if (x!=0) continue;
                      ^
Main.java:28: error: break outside switch or loop
            else break;
                 ^
6 errors
Language: Java

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


Compiler output:
Main.java:2: 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 StructuredProgramming{
    public static void main(String args[]){
        Scanner sc=new Scanner(System.in);
        int x;
        x=sc.nextInt();
        int i;
        System.out.print(" ");
        for(i=1;i<=x;i++){
            if(i%3==0){
                System.out.print(i+" ");
            }else{
                while(i>100){
                    i=i/10;
                }
                if(i%10==3){
                    System.out.print(i+" ");
                }
            }
        }
    }
}


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


Compiler output:
Main.java:8: error: illegal start of expression
          if(i%3==0)||(i%10==3)){
                    ^
Main.java:8: error: ';' expected
          if(i%3==0)||(i%10==3)){
                               ^
2 errors
Language: Java

import java.util.Scanner;

import static java.lang.Math.pow;

public class Test6 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int num = sc.nextInt();
        for(int i=1; i<=num; i++) {
            if (num<3)
                break;

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

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

}




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

import java.util.Scanner;

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


Compiler output:
Main.java:5: error: cannot find symbol
		Scanner sc = newScanner(System.in);
		             ^
  symbol:   method newScanner(InputStream)
  location: class Main
1 error
Language: Java

import java.util.Scanner;

public class Main{
public void main(String[] args){

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

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

while(true){
if(x%10==3){
System.out.printf("""+i);
break;
}
x/=10;
if(x!=0){
continue;
}else{ break;
}
}
i++;
System.out.println();
}}}


Compiler output:
Main.java:16: error: illegal text block open delimiter sequence, missing line terminator
System.out.printf("""+i);
                     ^
Main.java:16: error: not a statement
System.out.printf("""+i);
                      ^
Main.java:16: error: ';' expected
System.out.printf("""+i);
                       ^
3 errors
Language: Java

import java.util.Scanner;

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

        }

    }
}


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

import java.util.Scanner;

public class Main{
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        int n = scan.nextInt();
        int i = 1;
        do {
            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) continue;
                    else break;
                }
                while ((++i) <= n) ;
                System.out.println();
            }
        }
    }
}


Compiler output:
Main.java:25: error: while expected
        }
         ^
Main.java:26: error: illegal start of expression
    }
    ^
2 errors
Language: Java

public class Main {
    public static void main(String[] args) {
         Scanner sc = new Scanner(System.in);
         int a=0;
         while (true) {
             int H = sc.nextInt();
             for(int i=1;i<=H;i++){
                 if (i%3==0) {
                     System.out.print(" "+i);
                 }else if(i%10==3){
                     System.out.print(" "+i);
                 }else{
                     a=i;
                     while(a>10){
                         a-=a%10;
                         a/=10;
                         if (a%3==0){
                             System.out.print(" "+i);
                             break;
                         }
                     }
                 }
             }

         }
    }
}


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 gottoo {
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        for(int i = 1; i < a+1; i++){
            int x = i;
            if (x % 3 == 0) {
                System.out.print(" " + i);
            } else {
                while(true){
                    if(x % 10 == 3){
                        System.out.print(" "+i);
                    }
                    x /= 10;
                    if(x != 0){
                        continue;
                    }else{
                        break;
                    }
                }
            }
        }
    }
}



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