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


import java.util.Scanner;

public class B3 {
	public static void main(String[] args) {
		int x, i = 0, j, t[];
		t = new int[10000];
		while(i < 10000){
			Scanner sc = new Scanner(System.in);
			x = sc.nextInt();
			if(x == 0)
				break;
			t[i] = x;
			i++;
		}
		j = i;
		if(i == 10000){
			System.out.println("Too Large");
		}else{
			for(i = 1; i - 1 != j; i++){
				System.out.println("case " + i + ":" + " " + t[i-1]);
			}
		}
	}
}

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

import java.util.Scanner;

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

        Scanner as = new Scanner(System.in);
        int x = as.nextInt();
        int i=0;

        while(x!=0){
           i++;
           System.out.println("Case "+i+": "+x);
           x = as.nextInt();
 
 
   }
 
 
}

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


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

public class B3 {
	public static void main(String[] args) {
		int x, i = 0, j;
		ArrayList<Integer> t = new ArrayList<Integer>();
		Scanner sc = new Scanner(System.in);
		while(i < 10000){
			x = sc.nextInt();
			if(x == 0)
				break;
			t.add(new Integer(x));
			i++;
		}
		j = i;
		if(i != 10000){
			for(i = 1; i - 1 != j; i++){
				System.out.println("case " + i + ":" + " " + t.get(new Integer(i - 1)));
			}
		}
	}
}

Compiler output:
Main.java:5: error: class B3 is public, should be declared in a file named B3.java
public class B3 {
       ^
Main.java:14: warning: [removal] Integer(int) in Integer has been deprecated and marked for removal
			t.add(new Integer(x));
			      ^
Main.java:20: warning: [removal] Integer(int) in Integer has been deprecated and marked for removal
				System.out.println("case " + i + ":" + " " + t.get(new Integer(i - 1)));
				                                                   ^
1 error
2 warnings
Language: Java

import java.io.*;

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

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

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

Compiler output:
Main.java:4: error: incompatible types: int cannot be converted to boolean
       while(1){
             ^
Main.java:8: error: cannot find symbol
         System.out.println("Case " + i + " " + x);
                                      ^
  symbol:   variable i
  location: class Main
2 errors
Language: Java

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

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

import java.utll.*;

class Main{
 public static void main(String[] args){
  int x,i;

  Scanner scan = new Scanner;  

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

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

import java.utll.*;

class Main{
 public static void main(String[] args){
  int x,i;

  Scanner scan = new Scanner();  

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

Compiler output:
Main.java:1: error: package java.utll does not exist
import java.utll.*;
^
Main.java:7: error: cannot find symbol
  Scanner scan = new Scanner();  
  ^
  symbol:   class Scanner
  location: class Main
Main.java:7: error: cannot find symbol
  Scanner scan = new Scanner();  
                     ^
  symbol:   class Scanner
  location: class Main
Main.java:9: error: incompatible types: int cannot be converted to boolean
  while(1){
        ^
4 errors
Language: Java

import java.utll.*;

class Main{
 public static void main(String[] args){
  int x,i;

  Scanner scan = new Scanner(System.in);  

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

Compiler output:
Main.java:1: error: package java.utll does not exist
import java.utll.*;
^
Main.java:7: error: cannot find symbol
  Scanner scan = new Scanner(System.in);  
  ^
  symbol:   class Scanner
  location: class Main
Main.java:7: error: cannot find symbol
  Scanner scan = new Scanner(System.in);  
                     ^
  symbol:   class Scanner
  location: class Main
Main.java:9: error: incompatible types: int cannot be converted to boolean
  while(1){
        ^
4 errors
Language: Java

import java.utll.*;

class Main{
 public static void main(String[] args){
  int x,i=0;

  Scanner scan = new Scanner(System.in);  

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

Compiler output:
Main.java:1: error: package java.utll does not exist
import java.utll.*;
^
Main.java:7: error: cannot find symbol
  Scanner scan = new Scanner(System.in);  
  ^
  symbol:   class Scanner
  location: class Main
Main.java:7: error: cannot find symbol
  Scanner scan = new Scanner(System.in);  
                     ^
  symbol:   class Scanner
  location: class Main
Main.java:9: error: incompatible types: int cannot be converted to boolean
  while(1){
        ^
4 errors
Language: Java

import java.util.*;

class Main{
 public static void main(String[] args){
  int x,i=0;

  Scanner scan = new Scanner(System.in);  

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

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

import java.util.*;

class Main{
 public static void main(String[] args){
  int x,i=0;

  Scanner scan = new Scanner(System.in);  

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

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

import java.util.Scanner;

public class Test10 {

	public static void main(String[] args) {
		for (int number = 1;; number++) {
			Scanner sc = new Scanner(System.in);
			int kari = Integer.parseInt(sc.nextLine());
			if (kari == 0) {
				break;
			} else {
				System.out.print("Case ");
				System.out.print(number);
				System.out.print(": ");
				System.out.println(kari);
			}
		}
	}

}

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

/**
 * Created by kaki on 2017/04/18.
 */

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

public class Main {
    public static void main(String args[]) {
        ArrayList<Integer> number = new ArrayList<Integer>();
        Scanner scan = new Scanner(System.in);
        int i = 0;
       
        for (int j = 0; scan.hasNext(); j++) {
            System.out.println("Case" + (j + 1) + ": " + number.set(j));
        }
    }
}

Compiler output:
Main.java:15: error: method set in class ArrayList<E> cannot be applied to given types;
            System.out.println("Case" + (j + 1) + ": " + number.set(j));
                                                               ^
  required: int,Integer
  found:    int
  reason: actual and formal argument lists differ in length
  where E is a type-variable:
    E extends Object declared in class ArrayList
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 = sc.nextInt();
			if(x == 0){
				break;
			}
			System.out.println("Case" + I + ":" + x);
		}
	}
}

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

import java.util.Scanner;

public class PrintChessboard{
 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.println("Case" + i + ":" + x);
   }
  }
}

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

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

public class Main {

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

		int[] data = new int[10000];
		Arrays.fill(data, 0);
		
		for(int i = 0; i < 10000; i++){

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

			String sNum = br.readLine();
			int iNum = Integer.parseInt(sNum);

			if(iNum == 0 || (iNum < 1 || iNum > 10000)){
				break;
			}

			data[i] = iNum;
		}

		for(int i = 0; i < data.length; i++){
			if(data[i] == 0){
				break;
				
			}
			System.out.println("Case "+ (i+1).toString() + ": " + data[i].toString());
		}
	}

}

Compiler output:
Main.java:34: error: int cannot be dereferenced
			System.out.println("Case "+ (i+1).toString() + ": " + data[i].toString());
			                                 ^
Main.java:34: error: int cannot be dereferenced
			System.out.println("Case "+ (i+1).toString() + ": " + data[i].toString());
			                                                             ^
2 errors
Language: Java

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

public class Main {

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

		int[] data = new int[10000];
		Arrays.fill(data, 0);
		
		for(int i = 0; i < 10000; i++){

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

			String sNum = br.readLine();
			int iNum = Integer.parseInt(sNum);

			if(iNum == 0 || (iNum < 1 || iNum > 10000)){
				break;
			}

			data[i] = iNum;
		}

		for(int i = 0; i < data.length; i++){
			if(data[i] == 0){
				break;
				
			}
			System.out.println("Case "+ new String(i+1) + ": " + new String(data[i]));
		}
	}

}
//????±???????????????????????????????????????????????????????AOJ??§???"Runtime Error"

Compiler output:
Main.java:34: error: no suitable constructor found for String(int)
			System.out.println("Case "+ new String(i+1) + ": " + new String(data[i]));
			                            ^
    constructor String.String(String) is not applicable
      (argument mismatch; int cannot be converted to String)
    constructor String.String(char[]) is not applicable
      (argument mismatch; int cannot be converted to char[])
    constructor String.String(byte[]) is not applicable
      (argument mismatch; int cannot be converted to byte[])
    constructor String.String(StringBuffer) is not applicable
      (argument mismatch; int cannot be converted to StringBuffer)
    constructor String.String(StringBuilder) is not applicable
      (argument mismatch; int cannot be converted to StringBuilder)
Main.java:34: error: no suitable constructor found for String(int)
			System.out.println("Case "+ new String(i+1) + ": " + new String(data[i]));
			                                                     ^
    constructor String.String(String) is not applicable
      (argument mismatch; int cannot be converted to String)
    constructor String.String(char[]) is not applicable
      (argument mismatch; int cannot be converted to char[])
    constructor String.String(byte[]) is not applicable
      (argument mismatch; int cannot be converted to byte[])
    constructor String.String(StringBuffer) is not applicable
      (argument mismatch; int cannot be converted to StringBuffer)
    constructor String.String(StringBuilder) is not applicable
      (argument mismatch; int cannot be converted to StringBuilder)
Note: Some messages have been simplified; recompile with -Xdiags:verbose to get full output
2 errors
Language: Java

import java.util.*;

public class PrintTestCases{
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		ArrayList<Integer> n = new ArrayList<Integer>();

		while(sc.hasNextInt()){
			int value = sc.nextInt();
			if(value != 0){
				n.add(value);
			}
			else{
				break;
			}
		}

		for(int i = 0; i < n.size(); i++){
			System.out.println("Case " + (i + 1) + ": " + n.get(i));
		}
	}
}

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

public class Main{

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

		List<String> list = new ArrayList<String>();
		for (int i = 0; i < 10000; i++) {
			String line = sc.nextLine();
			if (line.equals("0")) {
				break;
			}
			list.add(line);
		}

		for (int j = 1; j < list.size(); j++) {
			String string = list.get(j - 1);
			System.out.println("Case " + j + ": " + string);
		}

	}

}

Compiler output:
Main.java:5: error: cannot find symbol
		Scanner sc = new Scanner(System.in);
		^
  symbol:   class Scanner
  location: class Main
Main.java:5: error: cannot find symbol
		Scanner sc = new Scanner(System.in);
		                 ^
  symbol:   class Scanner
  location: class Main
Main.java:7: error: cannot find symbol
		List<String> list = new ArrayList<String>();
		^
  symbol:   class List
  location: class Main
Main.java:7: error: cannot find symbol
		List<String> list = new ArrayList<String>();
		                        ^
  symbol:   class ArrayList
  location: class Main
4 errors
Language: Java

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

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

    int = 1;

        while (i <= 10000){
        int x = scan.nextInt();
        System.out.println(x);
        i++;
        }
    }
}

Compiler output:
Main.java:8: error: not a statement
    int = 1;
    ^
Main.java:8: error: ';' expected
    int = 1;
       ^
2 errors
Language: Java

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

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

    int i = 1;

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

Compiler output:
Main.java:11: error: orphaned case
        case i:x
        ^
Main.java:11: error: not a statement
        case i:x
               ^
Main.java:11: error: ';' expected
        case i:x
                ^
3 errors
Language: Java

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

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

    int i = 1;

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

Compiler output:
Main.java:11: error: orphaned case
        case i:x;{
        ^
Main.java:11: error: not a statement
        case i:x;{
               ^
2 errors
Language: Java

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

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

    int i = 1;
    int x = scan.nextInt();

    which(1 <= 10000){
        swich(x){
        case 0:
            break;
        default:
        System.out.println(x);
        i++;
        }
    }
    }
}

Compiler output:
Main.java:11: error: ';' expected
    which(1 <= 10000){
                     ^
Main.java:12: error: ';' expected
        swich(x){
                ^
Main.java:13: error: orphaned case
        case 0:
        ^
3 errors
Language: Java

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

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

    int i = 1;

    which(i <= 10000){
    int x = scan.nextInt();
        swich(x){
        case 0:
            break;
        default:
        System.out.println(x);
        i++;
        }
    }
    }
}

Compiler output:
Main.java:10: error: ';' expected
    which(i <= 10000){
                     ^
Main.java:12: error: ';' expected
        swich(x){
                ^
Main.java:13: error: orphaned case
        case 0:
        ^
3 errors
Language: Java

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

class Main{
    public static void main(String[] args){
    
    int x;
    1 <= x && x <= 10000; 
    int i = 1;

    while(i <= 10000){
    Scanner scan = new Scanner(System.in);
        x = scan.nextInt();
        switch(x){
        case 0:
            break;
        default:
        System.out.println(x);
        i++;
        }
    }
    }
}

Compiler output:
Main.java:8: error: not a statement
    1 <= x && x <= 10000; 
           ^
1 error
Language: Java

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

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

public class hanawa {
			
				
		public static void main(String[] args) {
			java.util.Scanner scan = new java.util.Scanner(System.in);
		int x;
		int i = 0;
			while(true){
		x = scan.nextInt();
		
			if(1<=x && x<= 10000){
				i+= 1;
			}
		if(x == 0){
			break;
		}System.out.println("case "+i+" : "+x);
		
		}
		}
					
					
					
		}

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 Main{
public static void main(String[] args){
Scanner scan=new Scanner(System.in);
int x=sc.nextInt();
for(int i=1;i++;){
if(x==0){break;}
else{System.out.println("Case" + i + ": " + x );}
}}}

Compiler output:
Main.java:5: error: cannot find symbol
int x=sc.nextInt();
      ^
  symbol:   variable sc
  location: class Main
Main.java:6: error: incompatible types: int cannot be converted to boolean
for(int i=1;i++;){
             ^
2 errors
Language: Java

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

Compiler output:
Main.java:5: error: cannot find symbol
int x=sc.nextInt();
      ^
  symbol:   variable sc
  location: class Main
Main.java:6: error: incompatible types: int cannot be converted to boolean
for(int i=1;i++;){
             ^
2 errors
Language: Java

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

Compiler output:
Main.java:6: error: ')' expected
for(int i;i=1;i++;){
                 ^
Main.java:6: error: illegal start of expression
for(int i;i=1;i++;){
                  ^
2 errors
Language: Java

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

Compiler output:
Main.java:6: error: ')' expected
do{for(int i;i=1;i++;){
                    ^
Main.java:6: error: illegal start of expression
do{for(int i;i=1;i++;){
                     ^
Main.java:9: error: while expected
}}}}
  ^
3 errors
Language: Java

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

Compiler output:
Main.java:5: error: cannot find symbol
int x=sc.nextInt();
      ^
  symbol:   variable sc
  location: class Main
Main.java:6: error: incompatible types: int cannot be converted to boolean
for(int i=1;i++;){
             ^
2 errors
Language: Java

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

Compiler output:
Main.java:5: error: cannot find symbol
int x=sc.nextInt();
      ^
  symbol:   variable sc
  location: class Main
1 error
Language: Java

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

Compiler output:
Main.java:6: error: cannot find symbol
int x=sc.nextInt();
      ^
  symbol:   variable sc
  location: class Main
1 error
Language: Java

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

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

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

Compiler output:
Main.java:10: error: variable i might not have been initialized
System.out.println("Case " + i + ": " + x );
                             ^
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 = 0;
		int x;
		while(x = sc.nextInt()){
			System.out.println("Case " + i++ ": " x);
		}
	}
}

Compiler output:
Main.java:4: error: ';' expected
	public static void main(String [] args)[
	                                       ^
Main.java:8: error: illegal start of type
		while(x = sc.nextInt()){
		^
Main.java:8: error: <identifier> expected
		while(x = sc.nextInt()){
		       ^
Main.java:8: error: ';' expected
		while(x = sc.nextInt()){
		                      ^
Main.java:9: error: ')' or ',' expected
			System.out.println("Case " + i++ ": " x);
			                                ^
Main.java:9: error: not a statement
			System.out.println("Case " + i++ ": " x);
			                                      ^
Main.java:9: error: ';' expected
			System.out.println("Case " + i++ ": " x);
			                                       ^
Main.java:12: error: class, interface, enum, or record expected
}
^
8 errors
Language: Java

import java.util.Scanner;

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

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

import java.util.Scanner;

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

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

import static java.lang.System.out;
import java.io.File;
import java.util.Scanner;

public class Main extends BaseExe {

    public static void main(String[] args) {
        new Main().exeSysIn();
    }

    @Override
    protected void execute() throws Exception {
        String data;
        for (int count = 1; count <= 10000; count++) {
            if ("0".equals(data = nextLine()))
                break;
            out.println("Case " + count + ": " + data);
        }
    }
}

abstract class BaseExe {

    private Scanner scan;

    private String inData;

    public void exeSysIn() {
        try (Scanner scan = new Scanner(System.in)) {
            exeCtrl(scan);
        } catch (Exception e) {
            e.printStackTrace();
        }
    }

    public void exeFileIn(String inDataPath) {
        try (Scanner scan = new Scanner(new File(inDataPath))) {
            exeCtrl(scan);
        } catch (Exception e) {
            e.printStackTrace();
        }
    }

    private void exeCtrl(Scanner scan) throws Exception {
        this.scan = scan;
        execute();
    }

    protected abstract void execute() throws Exception;

    protected String nextLine() {
        return scan.nextLine();
    }

    protected boolean judgeInData() {
        return hasNextLine() && isNotEmptyInData();
    }

    protected boolean hasNextLine() {
        return scan.hasNextLine();
    }

    protected boolean isNotEmptyInData() {
        inData = nextLine();
        return !inData.isEmpty();
    }

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

import java.util.Scanner;

public class Main {
 public static void main(String[] args) {
  Scanner sc = new Scanner(System.in);
  int count = 0;
  while(true) {
   count++;
   int input = sc.nextInt();
   if(input == 0) {
    break;
   } else {
    System.out.println("case " + count +": " + input);
  }
 }
}

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

import java.io.*;
import java.util.Arrays;
   
public class Main {
  public static void main(String[] args) throws Exception {
    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    String input;
    int count = 1;
    while ((input = br.readLine()) != 0) {
      System.out.println("Case " + count + ": " + input);
    }
  }
}

Compiler output:
Main.java:9: error: bad operand types for binary operator '!='
    while ((input = br.readLine()) != 0) {
                                   ^
  first type:  String
  second type: int
1 error
Language: Java

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

Compiler output:
Main.java:7: error: ';' expected
      int i++;
           ^
1 error
Language: Java

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

Compiler output:
Main.java:5: error: variable x is already defined in method main(String[])
      int x = new java.util.Scanner(System.in).nextInt();
          ^
1 error
Language: Java

import java.util.Scanner;

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

        int num = 10000;

        Scanner sc = new Scanner(System.in);

        for (int i = 1; i <= num; i++) {
            int x = sc.nextInt();
            if(x == 0){
                break;
            }
            System.out.println("Case "+ i + ": " + x[i]);
        }


    }
}

Compiler output:
Main.java:15: error: array required, but int found
            System.out.println("Case "+ i + ": " + x[i]);
                                                    ^
1 error
Language: Java

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

/**
 * Created 2017/06/01.
 */
  public class Main2 {
    public static void main(String[] args) {
      //??\?????¨?????????
      Scanner sc = new Scanner(System.in);
      ArrayList<Integer> ary = new ArrayList<>();

      while (true) {
        int input = Integer.parseInt(sc.next());
        ary.add(input);
        if (input == 0)break;
      }

      for(int i = 0; i < ary.size()-1; i++){
        System.out.println("Case " + (i+1) + ": " +ary.get(i));
      }

    }
  }

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

import java.util.Scanner;
 
class Main{
    public static void main(String[] args){
        Scanner stdIn = new Scanner(System.in);
        int s;
        int[] x = new int[10000];
        int i = 0;
        do{
            s = stdIn.nextInt();
            x[i] = s;
        }while(s!=0);
 
        for(i = 0; x[i] == 0; i++)
            System.out.println("Case " +(i+1)+ ": "x[i]);
    }
}

Compiler output:
Main.java:15: error: ')' or ',' expected
            System.out.println("Case " +(i+1)+ ": "x[i]);
                                                   ^
Main.java:15: error: not a statement
            System.out.println("Case " +(i+1)+ ": "x[i]);
                                                    ^
Main.java:15: error: ';' expected
            System.out.println("Case " +(i+1)+ ": "x[i]);
                                                       ^
3 errors
Language: Java

import java.util.Scanner;
   
class Main{
    public static void main(String[] args){
        Scanner stdIn = new Scanner(System.in);
        int s;
        int i = 0;
        do{
            s = stdIn.nextInt();
            if(s == 0) return;
            else{
                System.out.println("Case " +(i+1)+ ": " +s);
        }while(s!=0);
    }
}

Compiler output:
Main.java:14: error: while expected
    }
     ^
Main.java:15: error: illegal start of expression
}
^
Main.java:15: error: reached end of file while parsing
}
 ^
3 errors
Language: Java

import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int value[] = new int[100];
		value[0] = scan.nextInt();
		int ctr;
		
		for (ctr = 1; value[ctr-1] != 0 || i < 100; ctr++)
			value[ctr] = scan.nextInt();
		
		for (int i = 1; i < ctr-1; i++)
			System.out.printf("Case %d: %d\n", i, value[i]);
	}
}

Compiler output:
Main.java:10: error: cannot find symbol
		for (ctr = 1; value[ctr-1] != 0 || i < 100; ctr++)
		                                   ^
  symbol:   variable i
  location: class Main
1 error
Language: Java

#include <stdio.h>

int main(){
    int x;
    int i=0;
    while(1){
        scanf("%d", &x);
        if(x==0)break;
        printf("Case %d: %d\n", ++i, x);
    }
    return 0;
}

Compiler output:
Main.java:1: error: illegal character: '#'
#include <stdio.h>
^
Main.java:1: error: class, interface, enum, or record expected
#include <stdio.h>
         ^
Main.java:5: error: unnamed classes are a preview feature and are disabled by default.
    int i=0;
    ^
  (use --enable-preview to enable unnamed classes)
Main.java:6: error: class, interface, enum, or record expected
    while(1){
    ^
Main.java:8: error: class, interface, enum, or record expected
        if(x==0)break;
        ^
Main.java:9: error: class, interface, enum, or record expected
        printf("Case %d: %d\n", ++i, x);
        ^
Main.java:10: error: class, interface, enum, or record expected
    }
    ^
Main.java:12: error: class, interface, enum, or record expected
}
^
8 errors
Language: Java

import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int value[] = new int[10000];
		int i = 0;

		while(1){
			value[i] = scan.nextInt();
			if (value[i] == 0)
				break;
			System.out.printf("Case %d: %d\n", ++i, value[i]);
		}
	}
}

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

class Aoj_1_3_b {

    public static void main(String[] args) {

        try {
            BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
            String inputData;
            StringBuilder sb = new StringBuilder();
            int i = 0;
	            while(true){
	            i++;
	            inputData = reader.readLine();
	            if("0".equals(inputData)){
	            	break;
	            }else{
	            	sb.append("Case " + i + ": " + inputData + System.getProperty("line.separator"));
	            }
            }
            System.out.println(sb.toString());

        } catch (IOException e) {
            e.printStackTrace();
        }

    }

}

Compiler output:
Main.java:6: error: cannot find symbol
            BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
            ^
  symbol:   class BufferedReader
  location: class Aoj_1_3_b
Main.java:6: error: cannot find symbol
            BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
                                        ^
  symbol:   class BufferedReader
  location: class Aoj_1_3_b
Main.java:6: error: cannot find symbol
            BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
                                                           ^
  symbol:   class InputStreamReader
  location: class Aoj_1_3_b
Main.java:21: error: cannot find symbol
        } catch (IOException e) {
                 ^
  symbol:   class IOException
  location: class Aoj_1_3_b
4 errors
Language: Java

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

Compiler output:
Main.java:6: error: illegal start of expression
  for(int i = 1;???; i++){
                ^
Main.java:6: error: illegal start of expression
  for(int i = 1;???; i++){
                 ^
Main.java:6: error: illegal start of expression
  for(int i = 1;???; i++){
                  ^
Main.java:6: error: illegal start of expression
  for(int i = 1;???; i++){
                   ^
4 errors
Language: Java

package jp.co.ws.training.study01;

import java.util.Scanner;

public class Training01_04 {

	public static void main(String[] args) {

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

}

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

import java.util.*;
   
public class Main
{
    public static void main (String[] args)
    {
        Scanner scanner = new Scanner(System.in);
   
for(int i = 0; i<1000; i++){
        int a = scanner.nextInt();
        System.out.println("Case" i": "+a);
     }
   }
}

Compiler output:
Main.java:11: error: ')' or ',' expected
        System.out.println("Case" i": "+a);
                                 ^
Main.java:11: error: not a statement
        System.out.println("Case" i": "+a);
                                  ^
Main.java:11: error: ';' expected
        System.out.println("Case" i": "+a);
                                   ^
Main.java:11: error: not a statement
        System.out.println("Case" i": "+a);
                                        ^
Main.java:11: error: ';' expected
        System.out.println("Case" i": "+a);
                                         ^
5 errors
Language: Java

import java.util.*;
    
public class Main
{
    public static void main (String[] args)
    {
        Scanner scanner = new Scanner(System.in);
    
for(int i = 0; i<10000; i++){
        int a = scanner.nextInt();
        System.out.println("Case" i": "+a);
     }
   }
}

Compiler output:
Main.java:11: error: ')' or ',' expected
        System.out.println("Case" i": "+a);
                                 ^
Main.java:11: error: not a statement
        System.out.println("Case" i": "+a);
                                  ^
Main.java:11: error: ';' expected
        System.out.println("Case" i": "+a);
                                   ^
Main.java:11: error: not a statement
        System.out.println("Case" i": "+a);
                                        ^
Main.java:11: error: ';' expected
        System.out.println("Case" i": "+a);
                                         ^
5 errors
Language: Java

import java.util.*;
    
public class Main
{
    public static void main (String[] args)
    {
        Scanner scanner = new Scanner(System.in);
    
        for(int i = 0; i<10000; i++){
         int x = scanner.nextInt();
         if(0 < x){
          System.out.println("Case" i": "+x);
         }else{
         }
        }
   }
}

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

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

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

import java.util.*;??
public class Main
{
	public static void main (String[] args)
{
	Scanner scanner = new Scanner(System.in);
    for(int i = 1; i++){
    	int x = scanner.nextInt();
        while(x < 0){
        System.out.println("Case " + i +": "+ x);
        }
    }  
}
}

Compiler output:
Main.java:1: error: class, interface, enum, or record expected
import java.util.*;??
                   ^
Main.java:7: error: ';' expected
    for(int i = 1; i++){
                      ^
2 errors
Language: Java

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

Compiler output:
Main.java:7: error: ';' expected
    for(int i = 1; i++){
                      ^
1 error
Language: Java

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

Compiler output:
Main.java:7: error: ';' expected
    for(int i = 1 i++){
                 ^
Main.java:7: error: ';' expected
    for(int i = 1 i++){
                     ^
2 errors
Language: Java

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

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

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

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

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

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

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

Compiler output:
Main.java:9: error: variable x might not have been initialized
            while(x == 0){
                  ^
1 error
Language: Java

public class Main {

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

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

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

Compiler output:
Main.java:7: error: cannot find symbol
            x[i] = nextInt();
                   ^
  symbol:   method nextInt()
  location: class Main
1 error
Language: Java

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

Compiler output:
Main.java:7: error: cannot find symbol
            x = scan.nextInt();
            ^
  symbol:   variable x
  location: class Main
Main.java:8: error: cannot find symbol
            if(x == 0){
               ^
  symbol:   variable x
  location: class Main
Main.java:11: error: cannot find symbol
            System.out.println("case " + i + ": " + x);
                                                    ^
  symbol:   variable x
  location: class Main
3 errors
Language: Java

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

public class Main {

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


		while(true){
			int testCase = Integer.parseInt(br.readLine());
			if(testCase==0){
				break;
			}
			int i=1;
			System.out.println("Case "+i+": "+testCase);
			i++;

			break;
		}


	}
}

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

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

public class ITP1_3_B {

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


		while(true){
			int testCase = Integer.parseInt(br.readLine());
			if(testCase==0){
				break;
			}
			int i=1;
			System.out.println("Case "+i+": "+testCase);
			i++;
		}


	}
}

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


import java.util.Scanner;

public class MainB {
	public static void main(String[] args){
		//????????£?????????????????????
		Scanner sc = new Scanner(System.in);
		int i = 1;
		//??°?????????
		while(true){
			//????????????
			int x = sc.nextInt();
			if(x == 0){
				break;
			}else{
				//??¨???
				System.out.println("Case" + i + ": " + x);
				i++;
			}
		}
	}
}

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