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

import java.util.Scanner;

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

Compiler output:
Main.java:10: error: no suitable method found for println(String,int,int)
			System.out.println("Case %d: %d", i, num);
			          ^
    method PrintStream.println() is not applicable
      (actual and formal argument lists differ in length)
    method PrintStream.println(boolean) is not applicable
      (actual and formal argument lists differ in length)
    method PrintStream.println(char) is not applicable
      (actual and formal argument lists differ in length)
    method PrintStream.println(int) is not applicable
      (actual and formal argument lists differ in length)
    method PrintStream.println(long) is not applicable
      (actual and formal argument lists differ in length)
    method PrintStream.println(float) is not applicable
      (actual and formal argument lists differ in length)
    method PrintStream.println(double) is not applicable
      (actual and formal argument lists differ in length)
    method PrintStream.println(char[]) is not applicable
      (actual and formal argument lists differ in length)
    method PrintStream.println(String) is not applicable
      (actual and formal argument lists differ in length)
    method PrintStream.println(Object) is not applicable
      (actual and formal argument lists differ in length)
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.printf("Case %d: %d\n" ,i,x);
  }
 }
}

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

import java.util.Scatter;

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

		for(int i = 1;;i++){
			int x = sc.nectInt();
			if(x!=0){
			System.out.printf("Case %d: %d\n",i,x);
			}else{
				break;
			}
		}
	}
}

Compiler output:
Main.java:1: error: cannot find symbol
import java.util.Scatter;
                ^
  symbol:   class Scatter
  location: package java.util
Main.java:5: error: cannot find symbol
		Scatter sc = new Scatter(System.in);
		^
  symbol:   class Scatter
  location: class Main
Main.java:5: error: cannot find symbol
		Scatter sc = new Scatter(System.in);
		                 ^
  symbol:   class Scatter
  location: class Main
3 errors
Language: Java

import java.util.Scanner;

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

		for(int i = 1;;i++){
			int x = sc.nectInt();
			if(x!=0){
			System.out.printf("Case %d: %d\n",i,x);
			}else{
				break;
			}
		}
	}
}

Compiler output:
Main.java:5: error: cannot find symbol
		Scanner sc = new Scatter(System.in);
		                 ^
  symbol:   class Scatter
  location: class Main
Main.java:8: error: cannot find symbol
			int x = sc.nectInt();
			          ^
  symbol:   method nectInt()
  location: variable sc of type Scanner
2 errors
Language: Java

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

int i;

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


}

}
}

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

public class Main {

    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
         int a=0;
        while(true){
            a++;
            int b = scanner.nextInt();
            if(b==0){break}
            System.out.println("case "+a+": "+b);
            
        }
    }
}

Compiler output:
Main.java:9: error: ';' expected
            if(b==0){break}
                          ^
1 error
Language: Java

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


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

}

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

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


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

}

Compiler output:
Main.java:6: error: class Cases is public, should be declared in a file named Cases.java
public class Cases {
       ^
Main.java:12: error: cannot find symbol
			System.out.println("Case " + i +": " + n);
			                                       ^
  symbol:   variable n
  location: class Cases
2 errors
Language: Java

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

}

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

import java.io.*;

 public class case1 {
	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 a = Integer.parseInt(br.readLine());
		if( a == 0 ){
		break;
			}

		sb.append("case").append(Integer.toString(i++)).append(":").append(Integer.toString(a)).append("/n");
	 	}
	System.out.println(sb);
	}
}

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

import java.io.*;

public class case1 {
	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 a = Integer.parseInt(br.readLine());
		if( a == 0 ){
		break;
			}

		sb.append("case").append(Integer.toString(i++)).append(":").append(Integer.toString(a)).append("/n");
	 	}
	System.out.println(sb);
	}
}

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

import java.util.Scanner;

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

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

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

public class PrintTestCases {
	public static void main(String args[]) throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		int dataSet;
		for (int i = 0; (dataSet = Integer.parseInt(br.readLine())) != 0; i++) {
			System.out.println("Case " + (i + 1) + ": " + dataSet);
		}
		br.close();
	}
}

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

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

import java.io.*;

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

		String value[] = inputed.split("[\\s]+");
		//int intInputed = Integer.parseInt(inputed);

		int intValue = Integer.parseInt(value[0]);

		if intValue == 0 { break; }

		System.out.println("case " + i + ": " + intValue)
		}


	}

}

Compiler output:
Main.java:5: error: '(' expected
		while true {
		     ^
Main.java:5: error: ')' expected
		while true {
		          ^
Main.java:14: error: '(' expected
		if intValue == 0 { break; }
		  ^
Main.java:14: error: ')' expected
		if intValue == 0 { break; }
		                ^
Main.java:16: error: ';' expected
		System.out.println("case " + i + ": " + intValue)
		                                                 ^
5 errors
Language: Java

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

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

		Scanner in = new Scanner(System.in);
		String inputed = new String();

		while (in.hasNext()) {
			String buf = in.nextLine();

			int i = 0;
			if (intValue == 0) { break; }

			System.out.println("case " + (i + 1) + ": " + intValue);
			i++;

		}

		//String value[] = inputed.split("\n");
		////int intInputed = Integer.parseInt(inputed);



		//while (true) {
		//	int i = 0;
		//	int intValue = Integer.parseInt(value[i]);

		//	if (intValue == 0) { break; }

		//	System.out.println("case " + (i + 1) + ": " + intValue);
		//	i++;
		//}


	}

}

Compiler output:
Main.java:14: error: cannot find symbol
			if (intValue == 0) { break; }
			    ^
  symbol:   variable intValue
  location: class Main
Main.java:16: error: cannot find symbol
			System.out.println("case " + (i + 1) + ": " + intValue);
			                                              ^
  symbol:   variable intValue
  location: class Main
2 errors
Language: Java

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

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

		Scanner in = new Scanner(System.in);

		while (true) {
			String inputed = in.nextLine();
			int intInputed = Integer.parseInt(inputed);

			int i = 0;
			int intValue = Integer.parseInt(value[i]);

			if (intValue == 0) { break; }

			System.out.println("case " + (i + 1) + ": " + intValue);
			i++;
		}


	}

}

Compiler output:
Main.java:14: error: cannot find symbol
			int intValue = Integer.parseInt(value[i]);
			                                ^
  symbol:   variable value
  location: class Main
1 error
Language: Java

import java.io.InputStreamReader;
 
public class Main {
    public static void main(String[] args) throws Exception {
        // Here your code !
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
 
        int i=1;
 
        while(true){
            String x = br.readLine();
            if(Integer.parseInt(x)==0){
                break;
            }
            System.out.println("Case "+i+": "+Integer.parseInt(x));
            i++;
        }
    }
}

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

import static java.lang.System.out;
import java.util.List;
import java.util.LinkedList;
import java.util.Scanner;

class PrintTestCases {
    private StringBuilder msg;

    PrintTestCases(List<Integer> data) {
        // create a message
        this.msg = new StringBuilder();
        for (int i = 0; i < data.size(); i++) {
            if (data.get(i) == 0) break;
            this.msg.append(String.format("Case %d: %d\n", i+1, data.get(i)));
        }
        this.msg.trim();
    }

    @Override
    public String toString() {
        return msg.toString();
    }
}

public class Main {
    public static void main(String... args) {
        List<Integer> data = new LinkedList<>();

        // input
        Scanner scan = new Scanner(System.in);
        while (scan.hasNext()) {
            data.add(scan.nextInt());
        }

        // output
        out.println(new PrintTestCases(data));

        /*
        for (int i = 0; i < data.size(); i++) {
            if (data.get(i) == 0) break; // 0???????????????
            out.printf("Case %d: %d\n", i+1, data.get(i) );
        }
        */
    }
}

Compiler output:
Main.java:16: error: cannot find symbol
        this.msg.trim();
                ^
  symbol:   method trim()
  location: variable msg of type StringBuilder
1 error
Language: Java

class Main{
 public static void main{
 	BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
 	StringBuilder sb = new StringBuilder();
 	int i=0;
 	while(true){
 		int data = Integer.parseInt(br.readLine());
 		if(data = 0){
 			break;
 		}
 		else{
 			sb.append("Case ").append(Integer.toString(i++).append(": ").append(Integer.toString(data)).append("\n");
 		}
 	}
 	System.out.println(sb);
}

Compiler output:
Main.java:2: error: '(' expected
 public static void main{
                        ^
Main.java:12: error: ')' or ',' expected
 			sb.append("Case ").append(Integer.toString(i++).append(": ").append(Integer.toString(data)).append("\n");
 			                                                                                                        ^
Main.java:16: error: reached end of file while parsing
}
 ^
3 errors
Language: Java

import java.util.Scanner;

public class Algorithm {

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

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

#include<stdio.h>

int main(){
    
    printf("Hello World\n");    

    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:7: error: class, interface, enum, or record expected
    return 0;
    ^
Main.java:8: error: class, interface, enum, or record expected
}
^
4 errors
Language: Java

import java.util.Scanner;

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


}

Compiler output:
Main.java:6: error: ';' expected
		int[] a = new int[10000]
		                        ^
1 error
Language: Java

import java.util.Scanner;

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


}

Compiler output:
Main.java:9: error: incompatible types: int cannot be converted to boolean
					if(a[i]=0) break;
					       ^
Main.java:14: error: incompatible types: int cannot be converted to boolean
		if(a[i]=0) break;
		       ^
2 errors
Language: Java

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

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

		Scanner scan = new Scanner(System.in);

		ArrayList<Integer> numbers = new ArrayList<Integer>();

		int x = scan.nextInt();
		numbers.add(x);

		while(1){
			x = scan.nextInt();
			numbers.add(x);
			if(x == 0){
				 break;
			}
		}

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

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

File Edit Options Buffers Tools Java Help                                                              
import java.io.*;

public class Main {
    public static void main(String[] args) {
        BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
        try {
            for (int i = 1; ; i++) {
                String line = reader.readLine();
                int n = Integer.parseInt(line);
                if (n == 0) {
                    break;
                } else {
                    System.out.println("Case " + i + ": " + n);
                }
            }
        } catch (IOException e) {
            System.out.println(e);
        } catch (NumberFormatException e) {
            System.out.println("??°????????¢????????£????????????????????????");
        }
    }
}

Compiler output:
Main.java:1: error: class, interface, enum, or record expected
File Edit Options Buffers Tools Java Help                                                              
^
1 error
Language: Java


public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int counter = 1;
		while (sc.hasNext()) {
			String s1 = sc.next();
			if (s1.equals("0")) {
				break;
			}
			System.out.println("Case "+counter+": "+s1);
			counter++;
		}
	}
}

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

import java.io.*;

public class JavaApplication10 {


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

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

import java.util.*;
public class Main10{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    //int a = sc.nextInt();
    int a = 0;

    int i = 1;

    do{
	a = sc.nextInt();
	
        System.out.println("Case" + i + ":"  + a );

        i++;
    }while(a != 0);
       
    if(i >= 10000){
    System.out.println("Too Large");
    }
   
  }

}

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

import java.util.*;
public class Main10{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    //int a = sc.nextInt();
    int a = 0;

    int i = 1;

    do{
	a = sc.nextInt();
         if(a == 0)
             break;
         if(i >= 10000){
             System.out.println("Too Large");
         }
	System.out.println("Case" + i + ":"  + a );
        i++;
    }while(a != 0);
    
    
    
   
   
   
  }

}

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

import java.util.Scanner;
import java.util.*;
import java.util.Iterator;
public class Main{
	public static void main(String[] args){
		Scanner input = new Scanner(System.in);
		String line;
		while(input.hasnext()){
			int i = 1;
			line = input.next();
			int intLine = Integer.parseInt(line);
			if(intLine!=0){
				System.out.print("Case"+i+":"+" "+intLine);
			}
		}
	}
}
		

Compiler output:
Main.java:8: error: cannot find symbol
		while(input.hasnext()){
		           ^
  symbol:   method hasnext()
  location: variable input of type Scanner
1 error
Language: Java

import java.io.*;
 
class Prg {
    public static void main(String args[]) throws IOException{
        BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
        int t;
        String ans = "";
        for(int i = 1;; i++){
            t =  Integer.parseInt(reader.readLine());
            if(t == 0)) break;
            System.out.println("Case " + i + ": " + t);
        }
    }
}

Compiler output:
Main.java:10: error: illegal start of expression
            if(t == 0)) break;
                      ^
1 error
Language: Java


import java.io.IOException;
import java.io.BufferedReader;
 
class Prg {
    public static void main(String args[]) throws IOException{
        BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
        int t = -1;
        String ans = "";
        for(int i = 1;t != 0; i++){
            t =  Integer.parseInt(reader.readLine());
            if(t == 0) {}
            else System.out.println("Case " + i + ": " + t);
        }
    }
}

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

import java.io.IOException;
import java.io.BufferedReader;
import java.io.InputStreamReader;
 
class Prg {
    public static void main(String args[]) throws IOException{
        BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
        String t = "";
        int i = 1;
        t =  reader.readLine();
        while(!t.equals("0")){
            t =  reader.readLine();
            system.out.println("Case " + i + ": " + t);
        }
    }
}

Compiler output:
Main.java:13: error: package system does not exist
            system.out.println("Case " + i + ": " + t);
                  ^
1 error
Language: Java

import java.io.*;

class PrintTestCases {
    public static void main(String args[]) throws IOException {
        DataInputStream scan = new DataInputStream(System.in);

        while(true) {
            String s = scan.readLine();
            if(s == null) break;

            int a = Integer.parseInt(s);
            System.out.println(a);
        }
    }
}

Compiler output:
Note: Main.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Language: Java

import java.util.*;

public class Main{
	public static void main(String[] args){
		List<Integer> numbers = new ArrayList<Integer>();
		Scanner scan = new Scanner(System.in);
		for(;;){
			int n = scan.nextInt();
			if(n == 0){
				break;
			}
			numbers.add(n);
		}

		int i = 0;
		for(Integer n : numbers){
			System.out.printf("Case %d: %d\n", ++i, n);
		}
	}

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

import java.util.*;

public class Main{
	private static final Scanner scan = new Scanner(System.in);

	public static void main(String[] args){
		List<Integer> list = new ArrayList<Integer>();
		for(;;){
			int x = scan.nextInt();
			if(x == 0){
				break;
			}
			list.add(x);
		}

		for(int i = 0; i < list.size(); i++){
			System.out.printf("Case %d: %d\n", i + 1, list.get(i));
		}
	}

Compiler output:
Main.java:19: 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);
    long count = 1;

        while(true){
            String x = sc.nextLine();
            if(x == 0){
                break;
            }else{
                System.out.println("Case " + count + " " + x);
                System.out.println("\n");
                count++;
            }
        }
    }
}

Compiler output:
Main.java:11: error: bad operand types for binary operator '=='
            if(x == 0){
                 ^
  first type:  String
  second type: int
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 sb = new StringBuilder();
    long count = 1;

        while(true){
            int x = Integer.parseInt(sc.nextLine());
            if(x == 0) break;
                sb.append("Case " + count + ": " + x + "\n");
                count++;
        }
        System.out.println(sb);
    }
}

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

public class Main {
	
	public static void main(String[] args) {
		try {
			BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
			int i = 1;
			while (true) {
				String str = reader.readLine();
				if ("0".equals(str)) {
					break;
				}
				System.out.println("Case " + i + ":" + str);
				i++;
			}
		} catch (IOException e) {
			e.printStackTrace();
		}
	}

}

Compiler output:
Main.java:5: error: cannot find symbol
			BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
			^
  symbol:   class BufferedReader
  location: class Main
Main.java:5: error: cannot find symbol
			BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
			                            ^
  symbol:   class BufferedReader
  location: class Main
Main.java:5: error: cannot find symbol
			BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
			                                               ^
  symbol:   class InputStreamReader
  location: class Main
Main.java:15: error: cannot find symbol
		} catch (IOException e) {
		         ^
  symbol:   class IOException
  location: class Main
4 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) {
		try {
			BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
			int i = 1;
			while (true) {
				String str = reader.readLine();
				if ("0".equals(str)) {
					break;
				}
				System.out.println("Case " + i + ":" + str);
				i++;
			}
		} catch (IOException e) {
			e.printStackTrace();
		}
	}

}

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 Main {
	static StringBuffer buf = new StringBuffer();
    public static void main (String args[]){
    	int count=1;

    	while(1){

        Scanner sc = new Scanner(System.in);
    	    int a = sc.nextInt();
    	    if(1<=a&&a<=10000){
                  String i = Integer.toString(count);
                  System.out.println("Case "+ i +": "+Integer.toString(a) );
                  count++;
    	    }
    	    if(a==0){
    	    	break;
    	    }

    	}
    }
}

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


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

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

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

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

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

public class Main{
	public static void main(String[] args){
		//
    int[] data = new int [10000];
		for(int i=0; i < 10000; i++){
			String input = new java.util.Scanner(System.in).nextLine();
			data[i] = Integer.parseInt(input);
			if( data[i] == 0){
				break;
			}
		}
		for(int i=0; i < 10000; i++){
			if( data[i] == 0){
				break;
			}
			System.out.print("Case "+ i + ":" + data[i]);
		//
	}
}

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

import java.io.*;

public class Main{
	public static void main(String[] args) throws IOException{
		//
		int[] data = new int[10001]
		BufferedReader input = new BufferedReader(new InputStreamReader(System.in));
		StringBuilder output = new StringBuilder();
		for(int i=0; i < 10001; i++){
			data[i] = Integer.parseInt(input.readLine());
			if( data == 0){
				break;
			}
			output.append("Case ").append(Integer.toString(i+1)).append(": ").append(Integer.toString(data[i])).append("\n");
		}
		System.out.print(output);
		//
	}
}

Compiler output:
Main.java:6: error: ';' expected
		int[] data = new int[10001]
		                           ^
1 error
Language: Java

import java.io.*;

public class Main{
	public static void main(String[] args) throws IOException{
		//
		int[] data = new int[10001];
		BufferedReader input = new BufferedReader(new InputStreamReader(System.in));
		StringBuilder output = new StringBuilder();
		for(int i=0; i < 10001; i++){
			data[i] = Integer.parseInt(input.readLine());
			if( data == 0){
				break;
			}
			output.append("Case ").append(Integer.toString(i+1)).append(": ").append(Integer.toString(data[i])).append("\n");
		}
		System.out.print(output);
		//
	}
}

Compiler output:
Main.java:11: error: bad operand types for binary operator '=='
			if( data == 0){
			         ^
  first type:  int[]
  second type: int
1 error
Language: Java

import java.util.Scanner;

public class Main3B {
	public static void main(String[] args){
		//????????£?????????????????§????????????????????????
		Scanner sc = new Scanner(System.in);
		 int x = sc.nextInt();
		 int i =  1;
		//????????°?????????
		while(i < x){

			System.out.println(x);
			//?????¶??? ??????0?????´?????????
			if(x == 0){
				break;
			}
			System.out.println(x);
		}
	}
}

Compiler output:
Main.java:3: 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;

public class Main3B {
	public static void main(String[] args){
		//????????£?????????????????§????????????????????????
		Scanner sc = new Scanner(System.in);
		 int x = sc.nextInt();
		 //??£?¨?
		int i =0;
		 while(i !=0){
			 System.out.println("Case" + i + ":" + x);
			 i++;
		//???????????§??????
			//?????¶??? ??????0?????´?????????
			if(x == 0){
				break;
			}
		}
	}
}

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

import java.util.*;

class Main{

     static final int N = 4;

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

     String str = br.readLine();

     String[] strAry = str.split(" ",N);
    
     int ar[] = new int[N];
   
     for(int i=0;i<strAry.length;i++){
	ar[i] = Integer.parseInt(strAry[i]);
     }

    for(int j=0;j<N;j++){
    if(ar[j]==0){
	break;
     }
     else{
        System.out.println("Case " + j + ":" +ar[j]);
     }

     }
    
     
}

}

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

#include <cstdio>
 
 
int main(){
    int b,i;
    i=0;
    while(1){
    scanf("%d",&b);
    if(b==0)break;
    i += 1;
    printf("Case %d: %d\n",i,b);
    }
    return 0;
}

Compiler output:
Main.java:1: error: illegal character: '#'
#include <cstdio>
^
Main.java:1: error: unnamed classes are a preview feature and are disabled by default.
#include <cstdio>
         ^
  (use --enable-preview to enable unnamed classes)
Main.java:8: error: illegal start of expression
    scanf("%d",&b);
               ^
3 errors
Language: Java

import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		// TODO ?????????????????????????????????????????????
		Scanner kb=new Scanner(System.in);
		int a[]=new int[10000];
		int j=0;
		int t=0,i=0;
a[0]=kb.nextInt();
while(a[i]!=0){	
	i++;
	a[i]=kb.nextInt();
	t=i;
}
		for(int k=0;k<t;k++){
			System.out.printf("Case %d: %d\n",k+1,a[k]);
		}

	}

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

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class 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));
}
System.out.print(builder);
}
}

Compiler output:
Main.java:13: error: illegal start of expression
}????
 ^
Main.java:13: error: illegal start of expression
}????
  ^
Main.java:13: error: illegal start of expression
}????
   ^
Main.java:13: error: illegal start of expression
}????
    ^
Main.java:14: error: : expected
builder.append("Case ").append(Integer.toString(i++)).append(": ").append(Integer.toString(data));
                                                                                                 ^
5 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"));
}
System.out.println(builder);
}
}

Compiler output:
Main.java:14: error: cannot find symbol
builder.append("Case ").append(Integer.toString(i++)).append(": ").append(Integer.toString(data).append("\n"));
                                                                                                ^
  symbol:   method append(String)
  location: class String
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");
}
System.out.println(builder);
}
}

Compiler output:
Main.java:14: error: illegal start of expression
??builder.append("Case ").append(Integer.toString(i++)).append(": ").append(Integer.toString(data)).append("\n");
^
Main.java:14: error: illegal start of expression
??builder.append("Case ").append(Integer.toString(i++)).append(": ").append(Integer.toString(data)).append("\n");
 ^
Main.java:14: error: : expected
??builder.append("Case ").append(Integer.toString(i++)).append(": ").append(Integer.toString(data)).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");
}
System.out.println(builder);
}
}

Compiler output:
Main.java:13: error: illegal start of expression
??
^
Main.java:13: error: illegal start of expression
??
 ^
Main.java:14: error: : expected
builder.append("Case ").append(Integer.toString(i++)).append(": ").append(Integer.toString(data)).append("\n");
                                                                                                              ^
3 errors
Language: Java




public class Main {
	public static void main(String []args){
		//????????£?????????????????????
		Scanner sc = new Scanner(System.in);
		//?????°?????£?¨?
		int i = 1;

		//??°?????????
		while(true){

		//????????£??????????????§????????????
		int num = sc.nextInt();
		//?????¶???0?????????????????´??? ??????
		if(num == 0){
			break;
		}
		//??¨???
		System.out.println("Case" + i + ":" + num);
		i++;
		}
	}
}

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

public class Main {
	public static void main(String[] args){
	    Scanner std = new Scanner(System.in);
	    int num = 1;
	    while(true){
	    	int n = Integer.parseInt(std.next());
	    	if(n!=0){
	    		System.out.println("Case "+num+": "+n);
	    		num++;
	    	}else{
	    		break;
	    	}
	    }
	}
}

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

import java.util.Scanner;
public class Aizu1_1{

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        // TODO code application logic here
        Scanner stdIn = new Scanner(System.in);
        
        for(int i = 1;i <= 10000;i++){
            int x = stdIn.nextInt();
            System.out.println("Case "+i+":"+x);
        }
    
}
}

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

import java.util.Scanner;
public class Aizu1_1{

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        // TODO code application logic here
        Scanner stdIn = new Scanner(System.in);
        
        for(int i = 1;i <= 10000;i++){
            int x = stdIn.nextInt();
            System.out.println("Case "+i+": "+x);
        }
    
}
}

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

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

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

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

Compiler output:
Main.java:7: error: not a statement
			S
			^
Main.java:7: error: ';' expected
			S
			 ^
2 errors
Language: Java

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

Compiler output:
Main.java:8: error: incompatible types: int cannot be converted to int[]
			x = scan.nextInt();
			                ^
Main.java:9: error: bad operand types for binary operator '=='
			if(x == 0){
			     ^
  first type:  int[]
  second type: int
2 errors
Language: Java

import java.io.BufferedReader;
import java.io.InputStreamReader;
class Main{
	public static void main(String[] args){
	int i = 1;
	//int[] x = new int[10000];
		while(i>0){
			BufferedReader scan = new BufferedReader(new InputStreamReader(System.in));
			String text = in.readLine();
			int x = Integer.parseInt(text);
			
			
			
			if(x == 0){
				break;
			}
			else{
				System.out.println("Case "+i+": "+x[i]);
			}
		}
	}
}

Compiler output:
Main.java:9: error: cannot find symbol
			String text = in.readLine();
			              ^
  symbol:   variable in
  location: class Main
Main.java:18: error: array required, but int found
				System.out.println("Case "+i+": "+x[i]);
				                                   ^
2 errors
Language: Java

import java.io.BufferedReader;
import java.io.InputStreamReader;
class Main{
	public static void main(String[] args){
	int i = 1;
	//int[] x = new int[10000];
		while(i>0){
			BufferedReader scan = new BufferedReader(new InputStreamReader(System.in));
			String text = in.readLine();
			int x = Integer.parseInt(text);
			
			
			
			if(x == 0){
				break;
			}
			else{
				System.out.println("Case "+i+": "+x);
			}
		}
	}
}

Compiler output:
Main.java:9: error: cannot find symbol
			String text = in.readLine();
			              ^
  symbol:   variable in
  location: class Main
1 error
Language: Java

import java.io.BufferedReader;
import java.io.InputStreamReader;
class Main{
	public static void main(String[] args){
	int i = 1;
	//int[] x = new int[10000];
		while(i>0){
			BufferedReader scan = new BufferedReader(new InputStreamReader(System.in));
			String line;
			int x = Integer.parseInt(line);
			
			
			
			if(x == 0){
				break;
			}
			else{
				System.out.println("Case "+i+": "+x);
			}
		}
	}
}

Compiler output:
Main.java:10: error: variable line might not have been initialized
			int x = Integer.parseInt(line);
			                         ^
1 error
Language: Java

import java.io.BufferedReader;
import java.io.InputStreamReader;
class Main{
	public static void main(String[] args){
	int i = 1;
	//int[] x = new int[10000];
	int x =0;
		while(i>0){
			BufferedReader scan = new BufferedReader(new InputStreamReader(System.in));
			String line;
			x = Integer.parseInt(line);
			
			
			
			if(x == 0){
				break;
			}
			else{
				System.out.println("Case "+i+": "+x);
			}
		}
	}
}

Compiler output:
Main.java:11: error: variable line might not have been initialized
			x = Integer.parseInt(line);
			                     ^
1 error
Language: Java

import java.io.BufferedReader;
import java.io.InputStreamReader;
class Main{
	public static void main(String[] args){
	int i = 1;
	//int[] x = new int[10000];
	int x =0;
		while(i>0){
			BufferedReader scan = new BufferedReader(new InputStreamReader(System.in));
			String line = 0;
			x = Integer.parseInt(line);
			
			
			
			if(x == 0){
				break;
			}
			else{
				System.out.println("Case "+i+": "+x);
			}
		}
	}
}

Compiler output:
Main.java:10: error: incompatible types: int cannot be converted to String
			String line = 0;
			              ^
1 error
Language: Java

import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.*;
class Main{
	public static void main(String[] args){
	int x =0;
	Scanner scan = new Scanner(System.in);
	ArrayList<Integer> list = new ArrayList<Integer>();
		while(i>0){
			x = scan.nextInt();			
			if(x == 0){
				break;
			}
			else{
				list.add(x);
			}
		}
		for(int i=0;i<list.size();i++){
			System.out.println("Case "+(i+1)+": "+list.get(i));
		}
	}
}

Compiler output:
Main.java:9: error: cannot find symbol
		while(i>0){
		      ^
  symbol:   variable i
  location: class Main
1 error
Language: Java

import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.*;
class Main{
	public static void main(String[] args){
	int x =0;
	Scanner scan = new Scanner(System.in);
	ArrayList<Integer> list = new ArrayList<Integer>();
	int i = 0;
		while(i>0){
			x = scan.nextInt();			
			if(x == 0){
				break;
			}
			else{
				list.add(x);
			}
		}
		for(int i=0;i<list.size();i++){
			System.out.println("Case "+(i+1)+": "+list.get(i));
		}
	}
}

Compiler output:
Main.java:19: error: variable i is already defined in method main(String[])
		for(int i=0;i<list.size();i++){
		        ^
1 error
Language: Java

import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.*;
class Main{
	public static void main(String[] args){
	int x =0;
	Scanner scan = new Scanner(System.in);
	ArrayList<Integer> list = new ArrayList<Integer>();
	int ii = 0;
		while((scan.hasNextInt()){
			x = scan.nextInt();			
			if(x == 0){
				break;
			}
			else{
				list.add(x);
			}
		}
		for(int i=0;i<list.size();i++){
			System.out.println("Case "+(i+1)+": "+list.get(i));
		}
	}
}

Compiler output:
Main.java:10: error: ')' expected
		while((scan.hasNextInt()){
		                         ^
1 error