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

import java.io.*;
import java.lang.*;

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

        String[ ] str_div = str.split("\n");
        int count =  Integer.parseInt(str_div.length);
        for(int i;i < count; i++){
        System.out.println("Case " + i + "; " + str_div[i]);
    }               
   }
  }  

Compiler output:
Main.java:7: error: cannot find symbol
        String str = str.readLine();
                        ^
  symbol:   method readLine()
  location: variable str of type String
Main.java:9: error: cannot find symbol
        str = str.readLine();
                 ^
  symbol:   method readLine()
  location: variable str of type String
Main.java:12: error: incompatible types: int cannot be converted to String
        int count =  Integer.parseInt(str_div.length);
                                             ^
Note: Some messages have been simplified; recompile with -Xdiags:verbose to get full output
3 errors
Language: Java

import java.io.*;
import java.lang.*;

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

        String[ ] str_div = str.split("\n");
        int count =  Integer.parseInt(str_div.length);
        for(int i;i < count; i++){
        System.out.println("Case " + i + "; " + str_div[i]);
    }               
   }
  }  

Compiler output:
Main.java:12: error: incompatible types: int cannot be converted to String
        int count =  Integer.parseInt(str_div.length);
                                             ^
Note: Some messages have been simplified; recompile with -Xdiags:verbose to get full output
1 error
Language: Java

import java.io.*;
import java.lang.*;

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

        String[ ] str_div = str.split("\n");
        int count = Integer.parseInt(str_div.length);
        for(int i;i < count; i++){
        System.out.println("Case " + i + "; " + str_div[i]);
    }               
   }
  }  

Compiler output:
Main.java:12: error: incompatible types: int cannot be converted to String
        int count = Integer.parseInt(str_div.length);
                                            ^
Note: Some messages have been simplified; recompile with -Xdiags:verbose to get full output
1 error
Language: Java

import java.io.*;
import java.lang.*;

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

        String[ ] str_div = str.split("\n");
        int count = str_div.length;
        for(int i;i < count; i++){
        System.out.println("Case " + i + "; " + str_div[i]);
    }               
   }
  }  

Compiler output:
Main.java:13: error: variable i might not have been initialized
        for(int i;i < count; i++){
                  ^
1 error
Language: Java

import java.io.*;
import java.lang.*;

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

        String[ ] str_div = str.split("\n");
        int count = str_div.length();
        for(int i = 0;i < count; i++){
        System.out.println("Case " + i + "; " + str_div[i]);
    }               
   }
  }  

Compiler output:
Main.java:12: error: cannot find symbol
        int count = str_div.length();
                           ^
  symbol:   method length()
  location: variable str_div of type String[]
1 error
Language: Java

import java.io.*;
import java.lang.*;

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

        String[ ] str_div = str.split("\n");
        int count = Integer.parseInt(str_div.length());
        for(int i = 0;i < count; i++){
        System.out.println("Case " + i + "; " + str_div[i]);
    }               
   }
  }  

Compiler output:
Main.java:12: error: cannot find symbol
        int count = Integer.parseInt(str_div.length());
                                            ^
  symbol:   method length()
  location: variable str_div of type String[]
1 error
Language: Java

import java.io.*;
import java.lang.*;

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

        String[ ] str_div = str.split("\n");
        int count = Integer.parseInt(str_div.length);
        for(int i = 0;i < count; i++){
        System.out.println("Case " + i + "; " + str_div[i]);
    }               
   }
  }  

Compiler output:
Main.java:12: error: incompatible types: int cannot be converted to String
        int count = Integer.parseInt(str_div.length);
                                            ^
Note: Some messages have been simplified; recompile with -Xdiags:verbose to get full output
1 error
Language: Java

import java.io.*;
import java.lang.*;

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

        String[ ] str_div = str.split("\n");
        for(int i = 0;i < str_div.length; i++){
        System.out.println("Case " + i + "; " + str_div[i]);
    }               
   }
  }  

Compiler output:
Main.java:8: error: cannot find symbol
    while(str != Null)
                 ^
  symbol:   variable Null
  location: class Main
1 error
Language: Java

import java.io.*;
import java.lang.*;

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

        String[ ] str_div = str.split("\n");
        for(int i = 0;i < str_div.length; i++){
        System.out.println("Case " + i + "; " + str_div[i]);
    }               
   }
  }  

Compiler output:
Main.java:9: error: ';' expected
        str = br.readLine()};
                           ^
1 error
Language: Java

import java.io.*;
import java.lang.*;

class Main{ 
public static void main(String[] args)throws IOException{
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String str = br.readLine();
    while(str != null){
        str = br.readLine();
        }
        br.close;

        String[ ] str_div = str.split("\n");
        for(int i = 0;i < str_div.length; i++){
        System.out.println("Case " + i + "; " + str_div[i]);
    }               
   }
  }  

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

import java.io.*;
import java.lang.*;

class Main{ 
public static void main(String[] args)throws IOException{
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String str = br.readLine();
    while(true){
        str = br.readLine();
         if (str.equals("0"){
                    break;)}
         }
         br.close();

        String[ ] str_div = str.split("\n");
        for(int i = 0;i < str_div.length; i++){
        System.out.println("Case " + i + "; " + str_div[i]);
    }               
   }
  }  

Compiler output:
Main.java:10: error: ')' expected
         if (str.equals("0"){
                            ^
Main.java:11: error: illegal start of expression
                    break;)}
                          ^
2 errors
Language: Java

import java.io.*;
import java.lang.*;

class Main{ 
public static void main(String[] args)throws IOException{
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String str = br.readLine();
    while(true){
        str = br.readLine();
         if (str.equals("0"){
                    break;}
         }
         br.close();

        String[ ] str_div = str.split("\n");
        for(int i = 0;i < str_div.length; i++){
        System.out.println("Case " + i + "; " + str_div[i]);
    }               
   }
  }  

Compiler output:
Main.java:10: error: ')' expected
         if (str.equals("0"){
                            ^
1 error
Language: Java

import java.io.*;
import java.lang.*;

class Main{ 
public static void main(String[] args)throws IOException{
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String str = br.readLine();
    while(true){
        str = br.readLine();
         if (str.equals(null){
                    break;}
         }
         br.close();

        String[ ] str_div = str.split("\n");
        for(int i = 0;i < str_div.length; i++){
        System.out.println("Case " + i + "; " + str_div[i]);
    }               
   }
  }  

Compiler output:
Main.java:10: error: ')' expected
         if (str.equals(null){
                             ^
1 error
Language: Java

import java.io.*;
import java.lang.*;

class Main{ 
public static void main(String[] args)throws IOException{
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String str;
    while(str != null){
        str = br.readLine();}
         br.close();

        String[ ] str_div = str.split("\n");
        for(int i = 0;i < str_div.length; i++){
        System.out.println("Case " + i + "; " + str_div[i]);
    }               
   }
  }  

Compiler output:
Main.java:8: error: variable str might not have been initialized
    while(str != null){
          ^
1 error
Language: Java

import java.io.*;
import java.lang.*;

class Main{ 
public static void main(String[] args)throws IOException{
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String str;
        int count;
    while(true){
        count++;
        str = br.readLine();}
        int x = Integer.parseInt(str);
            if(x == 0){
                break;
            }
         br.close();

        String[ ] str_div = str.split("\n");
        for(int i = 0;i < str_div.length; i++){
        System.out.println("Case " + i + "; " + str_div[i]);
    }               
   }
  }  

Compiler output:
Main.java:14: error: break outside switch or loop
                break;
                ^
1 error
Language: Java

import java.io.*;
import java.lang.*;

class Main{ 
public static void main(String[] args)throws IOException{
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String str;
        int count;
    while(true){
        count++;
        str = br.readLine();
        int x = Integer.parseInt(str);
            if(x == 0){
                break;}
            }
         br.close();

        String[ ] str_div = str.split("\n");
        for(int i = 0;i < str_div.length; i++){
        System.out.println("Case " + i + "; " + str_div[i]);
    }               
   }
  }  

Compiler output:
Main.java:10: error: variable count might not have been initialized
        count++;
        ^
1 error
Language: Java

    import java.io.*;
import java.lang.*;

class Main{ 
public static void main(String[] args)throws IOException{
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String str = br.readLine();
    while(str !== "0")
        str = br.readLine();
        br.close();

        String[ ] str_div = str.split("\n");
        for(int i = 0;i < str_div.length; i++){
        System.out.println("Case " + i + "; " + str_div[i]);
    }               
   }
  }  

Compiler output:
Main.java:8: error: illegal start of expression
    while(str !== "0")
                ^
1 error
Language: Java

import java.io.*;
import java.lang.*;

class Main{ 
public static void main(String[] args)throws IOException{
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String str = br.readLine();
    while(true){
        str = br.readLine();
        if(str.equals("0"){
        break;}
}
        String[ ] str_div = str.split("\n");
        for(int i = 0;i < str_div.length; i++){
        System.out.println("Case " + i + "; " + str_div[i]);
    }               
   }
  }  

Compiler output:
Main.java:10: error: ')' expected
        if(str.equals("0"){
                          ^
1 error
Language: Java

import java.io.*;
import java.lang.*;

class Main{ 
public static void main(String[] args)throws IOException{
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String str;
        while(true){
            str = br.readLine();
            if(str == "0"){
                break;
            }
        br.close();

        String[ ] str_div = str.split("\n");
        for(int i = 0;i < str_div.length; i++){
        System.out.println("Case " + i + "; " + str_div[i]);
    }               
   }
  }  

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

import java.io.*;
import java.lang.*;

class Main{ 
public static void main(String[] args)throws IOException{
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        StringBuilder str;
        while(true){
            str = br.readLine();
            if(str.equals("0")){
                break;}
            }
        br.close();

        String[ ] str_div = str.split("\n");
        for(int i = 0;i < str_div.length; i++){
        System.out.println("Case " + i + "; " + str_div[i]);
    }               
   }
  }  

Compiler output:
Main.java:9: error: incompatible types: String cannot be converted to StringBuilder
            str = br.readLine();
                             ^
Main.java:15: error: cannot find symbol
        String[ ] str_div = str.split("\n");
                               ^
  symbol:   method split(String)
  location: variable str of type StringBuilder
2 errors
Language: Java

import java.io.*;
import java.lang.*;

class Main{ 
public static void main(String[] args)throws IOException{
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        StringBuilder str;
        while(true){
            str.br.readLine();
            if(str.equals("0")){
                break;}
            }
        br.close();

        String[ ] str_div = str.split("\n");
        for(int i = 0;i < str_div.length; i++){
        System.out.println("Case " + i + "; " + str_div[i]);
    }               
   }
  }  

Compiler output:
Main.java:9: error: cannot find symbol
            str.br.readLine();
               ^
  symbol:   variable br
  location: variable str of type StringBuilder
Main.java:15: error: cannot find symbol
        String[ ] str_div = str.split("\n");
                               ^
  symbol:   method split(String)
  location: variable str of type StringBuilder
2 errors
Language: Java

import java.io.*;
import java.lang.*;

class Main{ 
public static void main(String[] args)throws IOException{
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        StringBuider str = new Stringbuilder;
        
    while(str != null)
        str.append(br.readLine());
        br.close();

        String[ ] str_div = str.split("\n");
        for(int i = 0;i < str_div.length; i++){
        System.out.println("Case " + i + "; " + str_div[i]);
    }               
   }
  }  

Compiler output:
Main.java:7: error: '(' or '[' expected
        StringBuider str = new Stringbuilder;
                                            ^
1 error
Language: Java

import java.io.*;
import java.lang.*;

class Main{ 
public static void main(String[] args)throws IOException{
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        StringBuilder str = new StringBuilder();
        
    while(str != null)
        str.append(br.readLine());
        br.close();

        String[ ] str_div = str.split("\n");
        for(int i = 0;i < str_div.length; i++){
        System.out.println("Case " + i + "; " + str_div[i]);
    }               
   }
  }  

Compiler output:
Main.java:13: error: cannot find symbol
        String[ ] str_div = str.split("\n");
                               ^
  symbol:   method split(String)
  location: variable str of type StringBuilder
1 error
Language: Java

import java.io.*;
import java.lang.*;

class Main{ 
public static void main(String[] args)throws IOException{
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        StringBuilder str = new StringBuilder();
        
    while(str != null)
        str.append(br.readLine());
        br.close();

        StringBuider[ ] str_div = str.split("\n");
        for(int i = 0;i < str_div.length; i++){
        System.out.println("Case " + i + "; " + str_div[i]);
    }               
   }
  }  

Compiler output:
Main.java:13: error: cannot find symbol
        StringBuider[ ] str_div = str.split("\n");
        ^
  symbol:   class StringBuider
  location: class Main
Main.java:13: error: cannot find symbol
        StringBuider[ ] str_div = str.split("\n");
                                     ^
  symbol:   method split(String)
  location: variable str of type StringBuilder
2 errors
Language: Java

import java.io.*;
import java.lang.*;

class Main{ 
public static void main(String[] args)throws IOException{
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        StringBuilder str = new StringBuilder();
        
    while(str != null)
        str.append(br.readLine());
        br.close();

        String[ ] str_div = str.split("\n");
        for(int i = 0;i < str_div.length; i++){
        System.out.println("Case " + i + "; " + str_div[i]);
    }          
  }       
   }

Compiler output:
Main.java:13: error: cannot find symbol
        String[ ] str_div = str.split("\n");
                               ^
  symbol:   method split(String)
  location: variable str of type StringBuilder
1 error
Language: Java

import java.io.*;

public class Main {
    public static void main(String[] args) throws Exception {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String str = null;
        for (int i = 1; (str = br.readLine()) != null; i++) {
            if (str.equals("0")) break;
            System.out.println("Case " + i + ": " + line);
    }
  }
}

Compiler output:
Main.java:9: error: cannot find symbol
            System.out.println("Case " + i + ": " + line);
                                                    ^
  symbol:   variable line
  location: class Main
1 error
Language: Java

public class Main {
	public static void main (String[] args){
		int i=1;
		int a=1;
		while(a != 0){
			Scanner in = new Scanner(System.in);
			a = in.nextInt();
			System.out.println("Case "+i+": "+a);
			i++;
		}
	}
}

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

import java.util.ArrayList;
import java.util.Scanner;

public class Main{
	public static void main(String[] args){
		ArrayList list = new ArrayList();
		int intSub = -1;
		while(true){
			Scanner scan = new Scanner(System.in);
			intSub = scan.nextInt();
			if(intSub == 0){
				break;
			}else{
				list.add(intSub);
			}
		}
		for(long i = 0; i < list.size(); i++){
			System.out.println("Case " + (i + 1) + ": " + list.get(i));
		}

	}
}

Compiler output:
Main.java:18: error: incompatible types: possible lossy conversion from long to int
			System.out.println("Case " + (i + 1) + ": " + list.get(i));
			                                                       ^
Note: Main.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
Note: Some messages have been simplified; recompile with -Xdiags:verbose to get full output
1 error
Language: Java

import java.util.ArrayList;
import java.util.Scanner;

public class Test11{
	public static void main(String[] args){
		ArrayList list = new ArrayList();
		int intSub = -1;
		boolean isZero = false;
		while(isZero){
			Scanner scan = new Scanner(System.in);
			intSub = scan.nextInt();
			if(intSub == 0){
				isZero = true;;
			}else{
				list.add(intSub);
			}
		}
		for(int i = 0; i < list.size(); i++){
			System.out.println("Case " + (i + 1) + ": " + list.get(i));
		}

	}
}

Compiler output:
Main.java:4: error: class Test11 is public, should be declared in a file named Test11.java
public class Test11{
       ^
Note: Main.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
1 error
Language: Java

import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;

public class Main {
	public static void main(String[] args){
		Scanner scan = new Scanner(System.in);
		List<Integer> list = new ArrayList<Integer>();
		int intTemp;
		while(scan.hasNext()){
			intTemp = scan.nextInt();
			if(intTenp == 0){
				scan.close();
				break;
			}else{
				list.add(intTemp);
			}
		}
		if(list.size() != 0){
			for(int i = 0; i < list.size(); i++){
				System.out.println("Case " + (i + 1) + ": " + list.get(i));
			}
		}
	}

}

Compiler output:
Main.java:12: error: cannot find symbol
			if(intTenp == 0){
			   ^
  symbol:   variable intTenp
  location: class Main
1 error
Language: Java

import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		
		Scanner scan = new Scanner(System.in);
		
		String str = scan.next();
		int i = 0;
		int x = Integer.parseInt(str);

		do{
			i++;
		}while(x != 0);	
		
		System.out.println("case " + i + ": " + x );

Compiler output:
Main.java:16: error: reached end of file while parsing
		System.out.println("case " + i + ": " + x );
		                                            ^
1 error
Language: Java

import java.util.Scanner;

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

		int i = 0;

		while(true){	
		int x = scan.nextInt();
		if(x==0) break;
		System.out.println("case " + (i++) + ": " + x );
		}
	}
} 

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

import java.util.Scanner;
class Main {
Scanner sc = new Scanner(System.in);
int i = 1;
while(true) {
	int x = sc.nextInt();
	if(x == 0) break;
	System.out.println("Case " + (i++) + " " + x);
}
}
}

Compiler output:
Main.java:5: error: illegal start of type
while(true) {
^
Main.java:11: error: class, interface, enum, or record expected
}
^
2 errors
Language: Java

import java.io.*;

public class Main{
	public static void main(String[] args){
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String ans ="";
		int i =1;
		while(true){
			String y = br.readLine();
			int x = Integer.parseInt(y);
			if (x==0) {
				break;
			}
ans += "Case " + i + ": " + x + "\n";
i++;
		}
		System.out.printf(ans);
	}
}

Compiler output:
Main.java:9: error: unreported exception IOException; must be caught or declared to be thrown
			String y = br.readLine();
			                      ^
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));
		StringBuilder sb = new StringBuilder();
		int i =1;
		while(true){
			int x = Integer.parseInt(br.readLine());
			if (x==0) {
				break;
			}
			sb.append("Case ").append(Integer.toString(i++)).append(": ").append(Integer.toString(x)).append("\n")+
		}
		System.out.printf(sb);
	}
}

Compiler output:
Main.java:14: error: illegal start of expression
		}
		^
Main.java:13: error: not a statement
			sb.append("Case ").append(Integer.toString(i++)).append(": ").append(Integer.toString(x)).append("\n")+
			                                                                                                      ^
2 errors
Language: Java

import java.io.*;

public class Main{
	public static void main(String[] args) throws IOException{
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		StringBuilder sb = "";
		int i =1;
		while(true){
			int x = Integer.parseInt(br.readLine());
			if (x==0) {
				break;
			}
			sb.append("Case ").append(Integer.toString(i++)).append(": ").append(Integer.toString(x)).append("\n")+
		}
		System.out.printf(sb);
	}
}
}

Compiler output:
Main.java:14: error: illegal start of expression
		}
		^
Main.java:13: error: not a statement
			sb.append("Case ").append(Integer.toString(i++)).append(": ").append(Integer.toString(x)).append("\n")+
			                                                                                                      ^
Main.java:18: error: class, interface, enum, or record expected
}
^
3 errors
Language: Java

import java.io.*;

public class Main{
	public static void main(String[] args) throws IOException{
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		StringBuilder sb = "";
		int i =1;
		while(true){
			int x = Integer.parseInt(br.readLine());
			if (x==0) {
				break;
			}
			sb.append("Case ").append(Integer.toString(i++)).append(": ").append(Integer.toString(x)).append("\n");
		}
		System.out.printf(sb);
	}
}
}

Compiler output:
Main.java:18: error: class, interface, enum, or record expected
}
^
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));
		StringBuilder sb = "";
		int i =1;
		while(true){
			int x = Integer.parseInt(br.readLine());
			if (x==0) {
				break;
			}
			sb.append("Case ").append(Integer.toString(i++)).append(": ").append(Integer.toString(x)).append("\n");
		}
		System.out.printf(sb);
	}
}

Compiler output:
Main.java:6: error: incompatible types: String cannot be converted to StringBuilder
		StringBuilder sb = "";
		                   ^
Main.java:15: error: no suitable method found for printf(StringBuilder)
		System.out.printf(sb);
		          ^
    method PrintStream.printf(String,Object...) is not applicable
      (argument mismatch; StringBuilder cannot be converted to String)
    method PrintStream.printf(Locale,String,Object...) is not applicable
      (argument mismatch; StringBuilder cannot be converted to Locale)
2 errors
Language: Java

import java.util.Scanner;

public class Main{
  public static void main(String[] args){
    Scanner in = new Scanner(System.in);
    int x = in.nextInt();
    int i = 1;
    while(1){
    if( x != 0 )break;{
    System.out.println("Case "+i+": "+x+"");
    i++;
    Scanner scan = new Scanner(System.in);
    x = scan.nextInt();
   }
   }
  }
}

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

import java.util.Scanner;

public class Main{
  public static void main(String[] args){
    int i = 1;
    while( x != 0 ){
    Scanner scan = new Scanner(System.in);
    int x = scan.nextInt();
    System.out.println("Case "+i+": "+x+"");
    i++;
       
   }
  }
}

Compiler output:
Main.java:6: error: cannot find symbol
    while( x != 0 ){
           ^
  symbol:   variable x
  location: class Main
1 error
Language: Java

import java.util.Scanner;

public class Main{
  public static void main(String[] args)throws IOException{
    int i = 1;
    Scanner scan = new Scanner(System.in);
    int x = scan.nextInt();
    while( x != 0 ){
    Scanner in = new Scanner(System.in);
    x = in.nextInt();
    System.out.println("Case "+i+": "+x+"");
    i++;
       
   }
  }
}

Compiler output:
Main.java:4: error: cannot find symbol
  public static void main(String[] args)throws IOException{
                                               ^
  symbol:   class IOException
  location: class Main
1 error
Language: Java

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

public class Main {
	public static void main(String[] a) throws IOException {
		 BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
	        StringBuilder sb = new StringBuilder();
	        int i =1;
	        while(true){
	            int x = Integer.parseInt(br.readLine());
	            if (x==0) {
	                break;
	            }
	            sb.append("Case ").append(Integer.toString(i++)).append(": ").append(Integer.toString(x)).append("\n");
	        }
	        System.out.print(sb);
	}

}

Compiler output:
Main.java:1: error: class, interface, enum, or record expected
mport java.io.BufferedReader;
^
Main.java:2: error: class, interface, enum, or record expected
import java.io.IOException;
^
Main.java:3: error: class, interface, enum, or record expected
import java.io.InputStreamReader;
^
3 errors
Language: Java

package test;

import java.util.Scanner;

public class PrintTestCases
{

	public static void main(String[] args)
	{
		Scanner in =new Scanner(System.in);
		StringBuilder str=new StringBuilder() ;
		int i=0;
		String temp=in.nextLine();
		while(Integer.parseInt(temp)!=0)
		{
			str.append("Case " + (i+1) + ": " + Integer.parseInt(temp) + "\n");
			temp=in.nextLine();
			i++;			
		}
		
		System.out.println(str);

	}
}

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

import java.util.Scanner;
class Main{
public static void main(String[] args){
Scanner scan=new Scanner(System.in);
int a=1;
while(1){
String b=scan.next();
if(b==0)
break;
println("Case"+a+": "+b);
a=a+1;
}
}
}

Compiler output:
Main.java:6: error: incompatible types: int cannot be converted to boolean
while(1){
      ^
Main.java:8: error: bad operand types for binary operator '=='
if(b==0)
    ^
  first type:  String
  second type: int
Main.java:10: error: cannot find symbol
println("Case"+a+": "+b);
^
  symbol:   method println(String)
  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 a=1;
String b;
while(b!="0"){
b=scan.next();
System.out.println("Case "+a+": "+b);
a=a+1;
}
}
}

Compiler output:
Main.java:7: error: variable b might not have been initialized
while(b!="0"){
      ^
1 error
Language: Java

import java.util.Scanner;

public class Main {

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


		Scanner scan = new Scanner(System.in);
		
		for (i=1; i>0; i++) {
			int x = scan.nextInt();
			if(x == 0) {
				break;
			}
			else{
				System.out.println("Case " + i + ": " + x);
			}
		}
	}

}

Compiler output:
Main.java:11: error: cannot find symbol
		for (i=1; i>0; i++) {
		     ^
  symbol:   variable i
  location: class Main
Main.java:11: error: cannot find symbol
		for (i=1; i>0; i++) {
		          ^
  symbol:   variable i
  location: class Main
Main.java:11: error: cannot find symbol
		for (i=1; i>0; i++) {
		               ^
  symbol:   variable i
  location: class Main
Main.java:17: error: cannot find symbol
				System.out.println("Case " + i + ": " + x);
				                             ^
  symbol:   variable i
  location: class Main
4 errors
Language: Java

import java.util.Scanner;

public class sample3b {
	public static void main(String[] args) {
			Scanner scan = new Scanner(System.in);
			for (int i = 1; i > 0; i++){
				int x = scan.nextInt(); //????????§???????????\???
				if(x == 0){
					break;
				}
				System.out.println("case " + i + ": " + x);
			}
	}
}

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

import java.util.Scanner;

public class sample3b {
	public static void main(String[] args) {
			Scanner scan = new Scanner(System.in);
			for (int i = 1; i > 0; i++){
				int x = scan.nextInt(); //????????§???????????\???

				if(x == 0){
					break;
				}
				System.out.println("Case " + i + ": " + x);
			}
	}
}

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

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

public class ITP1ITP13B {

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

		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		 
        int idx = 1;
        String str;
 
        StringBuilder output = new StringBuilder();
        try {
 
            while(true){
                str = br.readLine();
                if (str.equals("0")) {
                    break;
                } else {
                    output.append("Case ").append(String.valueOf(idx))
                            .append(": ").append(str).append("\n");
                }
                if (idx % 100 == 0) {
                    System.out.print(output.toString());
                    output.setLength(0);
                }
                idx++;
            }
            if (output.length() > 0) {
                System.out.print(output.toString());
            }
 
        } catch (IOException e) {
            e.printStackTrace();
        }
		
	}

}

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

import java.util.Scanner;

public class PrintTestCases {

	private static Scanner scan;

	public static void main(String[] args) {

		scan = new Scanner(System.in);
		int i = scan.nextInt();
		int x = 1;
		while(1!=0){
			System.out.println("case "+x+": "+i);
			x++;
			i = scan.nextInt();
		}
	}
}

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

import java.util.Scanner;

public class Main {

    public static void main(String[] args){
		Scanner scan = new Scanner(System.in);
		int date, cnt = 1;
		while(scan.hasNext()){
			date = scan.nextInt();
			System.out.println("Case " + cnt++ + ": " + date);
		}
        scan.close();
    }

}
}

Compiler output:
Main.java:16: 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 scan = new Scanner(System.in);

		long d, r;//d = ??????r = ?????????
		double f;//f = ???????°???°
		long a = scan.nextInt();//a = ??????????????°
		int b = scan.nextInt();//b = ????????°

		d = a / b;
		r = a % b;
		f = (double)a / b;

		System.out.println(String.format("%d %d %f", d, r, f));
        scan.close();

Compiler output:
Main.java:19: error: reached end of file while parsing
        scan.close();
                     ^
1 error
Language: Java

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

public class Main3b {

	public static void main(String[] args) throws IOException
	{
		int[] n = new int[65535];
		int i=0,j;

		BufferedReader br = new BufferedReader(new InputStreamReader(System.in) );

		while(true)
		{
			n[i] = Integer.parseInt(br.readLine() );

			if(n[i]==0) break;
			else i++;
		}

		for(j=0; j<i; j++) System.out.println("Case " + (j+1) + ": " + n[j]);

	}
}

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

import java.util.Scanner;

class Main{
    public static void main(String[] a) throws IOException{
    	int c, no=0;
    	Scanner in = new Scanner(System.in);
      while (true){
      	c = in.nextInt();
      	if(c == 0) break;
      	no++;
        System.out.println("Case " + no + ": " + c);
      }
    }
}

Compiler output:
Main.java:4: error: cannot find symbol
    public static void main(String[] a) throws IOException{
                                               ^
  symbol:   class IOException
  location: class Main
1 error
Language: Java

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

class Main {
	public static void main(String[] args) throws IOException {
			BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
			
			int times = 1;
			while(true) {
				String str = br.readLine();
				int n = Integer.parseInt(str);
				System.out.println("Case " + times + ": " + n);
				if (n == 0) {
					break;
				}
				times++;
			}
	}

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

import java.util.*;
class Main {
	public static void main (String[] args) throws java.lang.Exception {
		Scanner sc = new Scanner(System.in);
		int a, c;
		while(true) {
			a = sc.nextInt();
			if(a == 0) break;
			System.out.println("Case " + (++c) + ": " + a);
		}
	}
}

Compiler output:
Main.java:9: error: variable c might not have been initialized
			System.out.println("Case " + (++c) + ": " + a);
			                                ^
1 error
Language: Java

import java.util.Scanner;
 
class Main {
    public static void main(String args[]) {
        StringBuilder sb = new StringBuilder();
        Scanner scanner = new Scanner(System.in);
  
        int i = 0;
        while (true) {
            i++;
            int x = scanner.nextInt();
            if(x == 0) {
                break;                                              
            }
            sb.append("Case" + i + ":" + x).append(\n);
        }  
            System.out.println(sb);
            sb.setLength(0);
    }
}

Compiler output:
Main.java:15: error: illegal character: '\'
            sb.append("Case" + i + ":" + x).append(\n);
                                                   ^
Main.java:15: error: not a statement
            sb.append("Case" + i + ":" + x).append(\n);
                                                    ^
Main.java:15: error: ';' expected
            sb.append("Case" + i + ":" + x).append(\n);
                                                     ^
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 reader = new BufferedReader(new InputStreamReader(System.in));
        StringBuilder builder = new StringBuilder();
        int i=1;
        while(true){
            int data= Integer.parseInt(reader.readLine());
            if(data==0)
                break;                  builder.append("Case").append(Integer.toString(i++)).append(":")
                         .append(Integer.toString(data)).append("\n");
        }
        print(builder);
    }
}

Compiler output:
Main.java:17: error: cannot find symbol
        print(builder);
        ^
  symbol:   method print(StringBuilder)
  location: class Main
1 error
Language: Java

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
 
 
public class Main {
    public static void main(String args[]) throws IOException{
        BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
        StringBuilder builder = new StringBuilder();
        int i=1;
        while(true){
            int data= Integer.parseInt(reader.readLine());
            if(data==0)
                break;                  builder.append("Case").append(Integer.toString(i++)).append(":")
                         .append(Integer.toString(data)).append("\n");
        }
        println(builder);
    }
}

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

import java.io.IOException;
import java.io.BufferedReader;
import java.io.InputStreamReader;
class Main {
	public static void main(String[] args) throws IOException {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String str = br.readLine();
		int count = 1;
		while(true)) {
			System.out.println( "Case " + count + ": " + str );
			if ( str.equals("0") == true ) {
				break;
			}
			count++;
			str = br.readLine();
		}
	}
}

Compiler output:
Main.java:9: error: illegal start of expression
		while(true)) {
		           ^
1 error
Language: Java


class Main{
	public static void main(String[] args){
		BufferedReader br =
				new BufferedReader(new InputStreamReader(System.in)); //?¨??????\???
		String str = br.readLine();
		int count = 1;
		while(!str.equals("0")){   //???????????°
				System.out.println("Case" + count + ":" + str);  //"Case ????????\?????°???"?????¢?????§??????
				count++;    
				str = br.readLine();
		}
	}
}
		

Compiler output:
Main.java:4: error: cannot find symbol
		BufferedReader br =
		^
  symbol:   class BufferedReader
  location: class Main
Main.java:5: error: cannot find symbol
				new BufferedReader(new InputStreamReader(System.in)); //????????\???
				    ^
  symbol:   class BufferedReader
  location: class Main
Main.java:5: error: cannot find symbol
				new BufferedReader(new InputStreamReader(System.in)); //????????\???
				                       ^
  symbol:   class InputStreamReader
  location: class Main
3 errors
Language: Java

/* 
 * ???????????§??????????´? PrintTestCases.java
 *
 * Copyright(C) 2016 Nagasaki Team All Rights Reserved.
 */
/**
 * ??°?????????????????????(ITP1_9-B)
 *
 * @author Yamashita
 * @version 1.00
 */

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


class Main{
	/*
	 * ??°?????????????????????
	 */
	public static void main(String[] args) throws IOException{	//try????????\????????????
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));	//?¨??????????
		String str = br.readLine();	//1???????????????
		int coun t= 1;	//???????????°
		
		while(!str.equals("0"))	//0?????\?????????????????????
		{
			System.out.println("Case "+count+": "+str);	//"Case 1:??\?????°???"?????¢?????§??????
			count++;	//?????°????????????????????????
			str=br.readLine();	//1???????????????
		}
	}
}

Compiler output:
Main.java:25: error: ';' expected
		int coun t= 1;	//????????????
		        ^
1 error
Language: Java

import java.util.Scanner
public class Main{
  public static void main(String[] args){
  Scanner sc = new Scanner(System.in);
  for(int i = 1;;i++){
   int x = nextInt();
   if(x == 0){
     break;
    }
    System.out.println("Case i: %d" x);
  }
 }
}

Compiler output:
Main.java:1: error: ';' expected
import java.util.Scanner
                        ^
Main.java:10: error: ')' or ',' expected
    System.out.println("Case i: %d" x);
                                   ^
Main.java:10: error: not a statement
    System.out.println("Case i: %d" x);
                                    ^
Main.java:10: error: ';' expected
    System.out.println("Case i: %d" x);
                                     ^
4 errors
Language: Java

import java.util.Scanner
public class Main{
  public static void main(String[] args){
  Scanner sc = new Scanner(System.in);
  while(5){
   int x = nextInt();
   if(x == 0){
     break;
    }
    System.out.println("Case i: %d" x);
  }
 }
}

Compiler output:
Main.java:1: error: ';' expected
import java.util.Scanner
                        ^
Main.java:10: error: ')' or ',' expected
    System.out.println("Case i: %d" x);
                                   ^
Main.java:10: error: not a statement
    System.out.println("Case i: %d" x);
                                    ^
Main.java:10: error: ';' expected
    System.out.println("Case i: %d" x);
                                     ^
4 errors
Language: Java

import java.util.Scanner;

public class Main{
 public static void main)String[] args){
 Scanner sc = new Scanner(System.in);
 for(int i=1;;i++){
 int x = sc.nextInt();
 if(x==0){
 break;
}
 System.out.printf("Case %d: %d\n",i,x);
}
}
}

Compiler output:
Main.java:4: error: '(' expected
 public static void main)String[] args){
                        ^
Main.java:4: error: ';' expected
 public static void main)String[] args){
                                      ^
2 errors
Language: Java

import java.util.Scanner;
public class Main{
  public static void main(String[] args){
  Scanner sc = new Scanner(System.in);
  while(9){
   int x = nextInt();
   if(x == 0){
     break;
    }
    System.out.println("Case i: %d" x);
  }
 }
}

Compiler output:
Main.java:10: error: ')' or ',' expected
    System.out.println("Case i: %d" x);
                                   ^
Main.java:10: error: not a statement
    System.out.println("Case i: %d" x);
                                    ^
Main.java:10: error: ';' expected
    System.out.println("Case i: %d" x);
                                     ^
3 errors
Language: Java

import java.util.Scanner;
public class Main{
  public static void main(String[] args){
  Scanner sc = new Scanner(System.in);
  for(i=1;;i==){
   int x = nextInt();
   if(x == 0){
     break;
    }
    System.out.printf("Case %d: %d\n" ,i,x);
  }
 }
}

Compiler output:
Main.java:5: error: illegal start of expression
  for(i=1;;i==){
              ^
Main.java:5: error: not a statement
  for(i=1;;i==){
            ^
2 errors
Language: Java

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

Compiler output:
Main.java:5: error: cannot find symbol
  for(i=1;;i++){
      ^
  symbol:   variable i
  location: class Main
Main.java:5: error: cannot find symbol
  for(i=1;;i++){
           ^
  symbol:   variable i
  location: class Main
Main.java:6: error: cannot find symbol
   int x = nextInt();
           ^
  symbol:   method nextInt()
  location: class Main
Main.java:10: error: cannot find symbol
    System.out.printf("Case %d: %d\n" ,i,x);
                                       ^
  symbol:   variable i
  location: class Main
4 errors
Language: Java

import java.util.Scanner;

public class Main{
  public static void main(String[] args){
    Scanner sc=new Scanner(System.in);
    int y=1;
    for(int i=1;y=0;i++){
      int x=sc.nextInt();
      if(x!=0){
        System.out.printf("case %d %d\n",i,x);
      }else{
        y=0;
      }
    }
  }
}

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