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

import java.util.Scanner;
public class Case {
	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;
			else{
			System.out.println("Case %d: %d",i,x);
			}
		}
	}		
}

Compiler output:
Main.java:2: error: class Case is public, should be declared in a file named Case.java
public class Case {
       ^
Main.java:9: error: no suitable method found for println(String,int,int)
			System.out.println("Case %d: %d",i,x);
			          ^
    method PrintStream.println() is not applicable
      (actual and formal argument lists differ in length)
    method PrintStream.println(boolean) is not applicable
      (actual and formal argument lists differ in length)
    method PrintStream.println(char) is not applicable
      (actual and formal argument lists differ in length)
    method PrintStream.println(int) is not applicable
      (actual and formal argument lists differ in length)
    method PrintStream.println(long) is not applicable
      (actual and formal argument lists differ in length)
    method PrintStream.println(float) is not applicable
      (actual and formal argument lists differ in length)
    method PrintStream.println(double) is not applicable
      (actual and formal argument lists differ in length)
    method PrintStream.println(char[]) is not applicable
      (actual and formal argument lists differ in length)
    method PrintStream.println(String) is not applicable
      (actual and formal argument lists differ in length)
    method PrintStream.println(Object) is not applicable
      (actual and formal argument lists differ in length)
2 errors
Language: Java

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

Compiler output:
Main.java:9: error: no suitable method found for println(String,int,int)
			System.out.println("Case %d: %d",i,x);
			          ^
    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 Case {
	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;
			}else{
				System.out.printf("Case %d : %d",i,x);
			}
		}
	}		
}

Compiler output:
Main.java:2: error: class Case is public, should be declared in a file named Case.java
public class Case {
       ^
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;
			}else{
				System.out.println("Case %d : %d",i,x);
			}
		}
	}		
}

Compiler output:
Main.java:9: error: no suitable method found for println(String,int,int)
				System.out.println("Case %d : %d",i,x);
				          ^
    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(i=1;;i++){
			int x = sc.nextInt();
			if(i>0){
				System.out.printf("case %d: %d",i,x);
			}else{
				break;
			}
		}
	}

}

Compiler output:
Main.java:6: error: cannot find symbol
		for(i=1;;i++){
		    ^
  symbol:   variable i
  location: class Main
Main.java:6: error: cannot find symbol
		for(i=1;;i++){
		         ^
  symbol:   variable i
  location: class Main
Main.java:8: error: cannot find symbol
			if(i>0){
			   ^
  symbol:   variable i
  location: class Main
Main.java:9: error: cannot find symbol
				System.out.printf("case %d: %d",i,x);
				                                ^
  symbol:   variable i
  location: class Main
4 errors
Language: Java

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 (i > 0) {
				System.out.printf("case %d: %d\n", i, x);
			} else {
				break;
			}
		}
	}

}

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

import java.util.Scanner;

public class PrintTestCases{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    int num[] = new int[1000];
    int i = -1;

    do{
      i++;
      num[i] = sc.nextInt();
    }while(num[i] != 0);
    
    for(int j = 0; j < i; j++){
      System.out.println("Case " + (j + 1) + ": " + num[j]);
    }
  }
}

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

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

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

		try {
			String line = reader.readLine();
			int i = 0;
			int j;
			int x[] = new int[100];
			
			for (j=0;j<100;j++)
			{
				x[j] = 1;
			}

			while(true)
			{
				x[i] = Integer.parseInt(line);
				if (x[i] == 0) break;
				line = reader.readLine();
				i++;
			}

			for (j=0;j<i;j++)
			{
				System.out.printf("Case %d: %d\n",j+1,x[j]);
			}
		

		} catch (IOException e) {
			System.out.println(e);
		}

		return;
	}
}

Compiler output:
Main.java:5: error: class PTC is public, should be declared in a file named PTC.java
public class PTC {
       ^
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) {
		BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));

		try {
			String line = reader.readLine();
			int i = 0;
			int j;
			int x[] = new int[10
			for (j=0;j<100;j++)
			{
				x[j] = 1;
			}

			while(true)
			{
				x[i] = Integer.parseInt(line);
				if (x[i] == 0) break;
				line = reader.readLine();
				i++;
			}

			for (j=0;j<i;j++)
			{
				System.out.printf("Case %d: %d\n",j+1,x[j]);
			}
		

		} catch (IOException e) {
			System.out.println(e);
		}

	}
}

Compiler output:
Main.java:13: error: ']' expected
			int x[] = new int[10
			                    ^
1 error
Language: Java



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

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

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

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

Compiler output:
Main.java:9: error: ';' expected
    System.out.println("Case " + t + ": " + x)
                                              ^
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) {
		BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));

			String line = reader.readLine();
			int i = 0;
			int j;
			int x[] = new int[100];


		try {

			for (j=0;j<100;j++)
			{
				x[j] = 1;
			}

			while(true)
			{
				x[i] = Integer.parseInt(line);
				if (x[i] == 0) break;
				line = reader.readLine();
				i++;
			}

			for (j=0;j<i;j++)
			{
				System.out.printf("Case %d: %d\n",j+1,x[j]);
			}
		

		} catch (IOException e) {
			System.out.println(e);
		}

	}
}

Compiler output:
Main.java:9: error: unreported exception IOException; must be caught or declared to be thrown
			String line = reader.readLine();
			                             ^
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;
            }
            else {
                System.out.println("Case " + i + " :" + x\n);
            }
        }
    }
}

Compiler output:
Main.java:13: error: illegal character: '\'
                System.out.println("Case " + i + " :" + x\n);
                                                         ^
Main.java:13: error: not a statement
                System.out.println("Case " + i + " :" + x\n);
                                                          ^
Main.java:13: error: ';' expected
                System.out.println("Case " + i + " :" + x\n);
                                                           ^
3 errors
Language: Java

import java.util.Scanner;

public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		for(int i = 1;;i++){
			int x = sc.nextInt();
			if(i==0)break;
			System.out.priontln('Case '+i+"; "+x);
			
		}
	}

}

Compiler output:
Main.java:9: error: unclosed character literal
			System.out.priontln('Case '+i+"; "+x);
			                    ^
Main.java:9: error: unclosed character literal
			System.out.priontln('Case '+i+"; "+x);
			                          ^
Main.java:9: error: not a statement
			System.out.priontln('Case '+i+"; "+x);
			                      ^
Main.java:9: error: not a statement
			System.out.priontln('Case '+i+"; "+x);
			                                  ^
Main.java:9: error: ';' expected
			System.out.priontln('Case '+i+"; "+x);
			                                    ^
5 errors
Language: Java

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

}

Compiler output:
Main.java:8: error: unclosed character literal
			System.out.priontln('Case '+i+"; "+x);
			                    ^
Main.java:8: error: unclosed character literal
			System.out.priontln('Case '+i+"; "+x);
			                          ^
Main.java:8: error: not a statement
			System.out.priontln('Case '+i+"; "+x);
			                      ^
Main.java:8: error: not a statement
			System.out.priontln('Case '+i+"; "+x);
			                                  ^
Main.java:8: error: ';' expected
			System.out.priontln('Case '+i+"; "+x);
			                                    ^
5 errors
Language: Java

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

}

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

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

}

Compiler output:
Main.java:7: error: illegal start of expression
			if(x==0)[
			        ^
Main.java:9: error: unclosed character literal
			System.out.println('Case '+i+"; "+x);
			                   ^
Main.java:9: error: unclosed character literal
			System.out.println('Case '+i+"; "+x);
			                         ^
Main.java:9: error: not a statement
			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);
			                                   ^
6 errors
Language: Java

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

}

Compiler output:
Main.java:9: error: unclosed character literal
			System.out.println('Case '+i+"; "+x);
			                   ^
Main.java:9: error: unclosed character literal
			System.out.println('Case '+i+"; "+x);
			                         ^
Main.java:9: error: not a statement
			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:14: error: reached end of file while parsing
}
 ^
6 errors
Language: Java

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

}

Compiler output:
Main.java:9: error: unclosed character literal
			System.out.println('Case '+i+"; "+x);
			                   ^
Main.java:9: error: unclosed character literal
			System.out.println('Case '+i+"; "+x);
			                         ^
Main.java:9: error: not a statement
			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:14: error: reached end of file while parsing
}
 ^
6 errors
Language: Java

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

}

Compiler output:
Main.java:14: 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);
		for(int i = 1; ; i++){
			int x = sc.nextInt();
			if(x==0){
                          break;
			System.out.println("Case "+i+"; "+x);
			
		}
	}

Compiler output:
Main.java:12: 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);
		for(int i = 1; ; i++){
			int x = sc.nextInt();
			if(x==0){
                          break;
			System.out.println("Case "+i+"; "+x);
			
		}
	}
}
}

Compiler output:
Main.java:9: error: unreachable statement
			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);
		for(int i = 1; ; i++){
			int x = sc.nextInt();
			if(x==0){
                          break;
			System.out.printf("Case "+i+"; "+x);
			
		}
	}
}
}

Compiler output:
Main.java:9: error: unreachable statement
			System.out.printf("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);
		for(int i = 1; ; i++){
			int x = sc.nextInt();
			if(x==0){
                          break;
			System.out.println("Case " + I +"; " + x);
			
		}
	}
}
}

Compiler output:
Main.java:9: 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 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:9: error: unreachable statement
			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);
		for(int i = 1; ; i++){
			int x = sc.nextInt();
			if(x==0){
                          break;
			System.out.println("Case " + i +": " + x);
			
		}
	}
}
}

Compiler output:
Main.java:9: error: unreachable statement
			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);
		for(int i = 1; ; i++){
			int x = sc.nextInt();
			if(x==0){
                          break;
			system.out.println("Case " + i +": " + x);
			
		}
	}
}
}

Compiler output:
Main.java:9: error: package system does not exist
			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);
		for(int i = 1; ; i++){
			int x = sc.nextInt();
			if(x==0){
                          break;
			System.out.println("Case " +"i"+": " +"x");
			
		}
	}
}
}

Compiler output:
Main.java:9: error: unreachable statement
			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);

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

Compiler output:
Main.java:8: error: ';' expected
int x = sc,nextInt();
                  ^
Main.java:10: error: unclosed string literal
            System.out.println("Case " + i +i "  + x );
                                              ^
2 errors
Language: Java

import java.util.Scanner;
public class Main{
public static void Main(String[] args){

Scanner sc = new Scanner(System.in);

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

Compiler output:
Main.java:7: error: cannot find symbol
for (int I = 1; ; i++){
                  ^
  symbol:   variable i
  location: class Main
Main.java:10: error: cannot find symbol
System.out.println("Case "+i+":"+x);
                           ^
  symbol:   variable i
  location: class Main
2 errors
Language: Java


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);
		}
		// x???0?????????????????????????????? Case i: x ?????¢?????§???????????????!
		// ...
	}
}

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


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

import java.util.Scanner;

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

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

public class Main{

    public static void main(String[] args) {
        try {
            File inputFile = new File("src/ITP1/dataSetPTC.txt");
            Scanner scan = new Scanner(inputFile);
            String caseStr = "Case ";
            String colonStr = ": ";
            int line = 1;
            while (scan.hasNext()) {
                int inputNum = scan.nextInt();
                if(inputNum == 0) {
                    break;
                }
                System.out.println(caseStr + line + colonStr + inputNum);
                line ++;
            }
        } catch (FileNotFoundException e) {
            e.printStackTrace();
        }
    }
}

Compiler output:
Main.java:5: error: cannot find symbol
            File inputFile = new File("src/ITP1/dataSetPTC.txt");
            ^
  symbol:   class File
  location: class Main
Main.java:5: error: cannot find symbol
            File inputFile = new File("src/ITP1/dataSetPTC.txt");
                                 ^
  symbol:   class File
  location: class Main
Main.java:6: error: cannot find symbol
            Scanner scan = new Scanner(inputFile);
            ^
  symbol:   class Scanner
  location: class Main
Main.java:6: error: cannot find symbol
            Scanner scan = new Scanner(inputFile);
                               ^
  symbol:   class Scanner
  location: class Main
Main.java:18: error: cannot find symbol
        } catch (FileNotFoundException e) {
                 ^
  symbol:   class FileNotFoundException
  location: class Main
5 errors
Language: Java

public class Main {

    public static void main(String[] args) {
        try {
            Scanner scan = new Scanner(inputFile);
            String caseStr = "Case ";
            String colonStr = ": ";
            int line = 1;
            while (scan.hasNext()) {
                int inputNum = scan.nextInt();
                if(inputNum == 0) {
                    break;
                }
                System.out.println(caseStr + line + colonStr + inputNum);
                line ++;
            }
        } catch (FileNotFoundException e) {
            e.printStackTrace();
        }
    }
}

Compiler output:
Main.java:5: error: cannot find symbol
            Scanner scan = new Scanner(inputFile);
            ^
  symbol:   class Scanner
  location: class Main
Main.java:5: error: cannot find symbol
            Scanner scan = new Scanner(inputFile);
                               ^
  symbol:   class Scanner
  location: class Main
Main.java:5: error: cannot find symbol
            Scanner scan = new Scanner(inputFile);
                                       ^
  symbol:   variable inputFile
  location: class Main
Main.java:17: error: cannot find symbol
        } catch (FileNotFoundException e) {
                 ^
  symbol:   class FileNotFoundException
  location: class Main
4 errors
Language: Java

import java.io.BufferedReader;
import java.io.InputStreamReader;
 
public class Main {
    public static void main(String[] args) {
        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.print(st);
    }
}

Compiler output:
Main.java:11: error: unreported exception IOException; must be caught or declared to be thrown
            int line = Integer.parseInt(br.readLine());
                                                   ^
1 error
Language: Java

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

Compiler output:
Main.java:9: error: variable a is already defined in method main(String[])
            int a = Integer.parseInt(read.readLine());
                ^
Main.java:13: error: cannot find symbol
            System.out.println("Case " + i + ": " + x);
                                                    ^
  symbol:   variable x
  location: class Main
2 errors
Language: Java

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

Compiler output:
Main.java:8: error: variable a is already defined in method main(String[])
            int a = Integer.parseInt(read.readLine());
                ^
Main.java:12: error: cannot find symbol
            System.out.println("Case " + i + ": " + x);
                                                    ^
  symbol:   variable x
  location: class Main
2 errors
Language: Java

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

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

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

Compiler output:
Main.java:3: error: cannot find symbol
	Scanner sc = new Scanner(System.in);
	^
  symbol:   class Scanner
  location: class Main
Main.java:3: error: cannot find symbol
	Scanner sc = new Scanner(System.in);
	                 ^
  symbol:   class Scanner
  location: class Main
Main.java:6: error: package system does not exist
system.out.printf("Case %d: %d\n",i,x);
      ^
3 errors
Language: Java

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

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

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

public class test{
	public static void main(String[] args) throws IOException{
		BufferedReader r = new BufferedReader(new InputStreamReader(System.in));
		String s;
		while(true){
			s = r.readLine();
			int a;
			a = Integer.parseInt(s);
			if (a==0) {
				break;
			}
			System.out.println(a);
		}
	}
}

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

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

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

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

import java.util.*;

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

Compiler output:
Main.java:9: error: package Syste does not exist
	    Syste.out.println("Case"+i+": "+a);
	         ^
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) {
		int count=0;
		while(true){
		int i=0;
		count++;
			BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
			try {
				i=Integer.parseInt(br.readLine());
			} catch (NumberFormatException e) {
				count--;
				continue;
			} catch (IOException e) {
				e.printStackTrace();
			}
			if(i==0){
				break;
			}
			System.out.println("Case "+count+": "+i);
		}
	}
}

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

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

Compiler output:
Main.java:5: error: ',', ')', or '[' expected
    while ((int x = sc.nextInt()) != 0) {
                 ^
Main.java:5: error: illegal start of expression
    while ((int x = sc.nextInt()) != 0) {
                  ^
Main.java:5: error: illegal start of expression
    while ((int x = sc.nextInt()) != 0) {
                                  ^
Main.java:5: error: ';' expected
    while ((int x = sc.nextInt()) != 0) {
                                      ^
4 errors
Language: Java

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

while(hasNext()){
   int i =1;
   int x = kbd.nextInt();
   System.out.println("Case "+i+": "+x);
}
}
}

Compiler output:
Main.java:6: error: cannot find symbol
while(hasNext()){
      ^
  symbol:   method hasNext()
  location: class Main
1 error
Language: Java

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

Compiler output:
Main.java:4: error: <identifier> expected
    public Static void main(String[] args){
                 ^
1 error
Language: Java

import java.util.*;
public class AOJ10006 {
	public static void main(String[] args) {
		Scanner a = new Scanner(System.in);
		int cnt=1;
		while(true){
			int input = a.nextInt();
			if(input == 0)break;
			System.out.println("Case "+cnt+": "+input);
			cnt++;
		}
	}
}

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

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

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

import java.io.*;

public class Q10006 {
	public static void main(String[] args) throws IOException {
		int i=0,x;
		while(true){
			BufferedReader buf = new BufferedReader(new InputStreamReader(System.in));

			String s = buf.readLine();
			String[] st = s.split(" ");

			x = Integer.parseInt(st[i]);
			if(x == 0) break;
			i++;
			System.out.println("Case "+i+": "+x);
		}
	}

}

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

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

Compiler output:
Main.java:4: error: illegal start of expression
        static Scanner input = new Scanner(System.in);
        ^
Main.java:7: error: illegal start of type
        while(n != 0){
        ^
Main.java:7: error: <identifier> expected
        while(n != 0){
               ^
Main.java:13: error: class, interface, enum, or record expected
}
^
4 errors
Language: Java

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

Compiler output:
Main.java:4: error: illegal start of expression
        static Scanner input = new Scanner(System.in);
        ^
Main.java:7: error: illegal start of type
        while(n != 0){
        ^
Main.java:7: error: <identifier> expected
        while(n != 0){
               ^
Main.java:13: error: class, interface, enum, or record expected
}
^
4 errors
Language: Java

import java.util.Scanner;

public class AOJprobrem10006{
    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 AOJprobrem10006 is public, should be declared in a file named AOJprobrem10006.java
public class AOJprobrem10006{
       ^
1 error
Language: Java

import java.util.*;

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

Compiler output:
Main.java:8: error: illegal start of expression
if(x=sc.nextInt())==0 break;
                  ^
Main.java:8: error: ';' expected
if(x=sc.nextInt())==0 break;
                     ^
Main.java:11: error: reached end of file while parsing
}
 ^
3 errors
Language: Java

import java.util.*;

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

Compiler output:
Main.java:8: error: illegal start of expression
if(x=sc.nextInt())==0 break;
                  ^
Main.java:8: error: ';' expected
if(x=sc.nextInt())==0 break;
                     ^
Main.java:11: error: reached end of file while parsing
}
 ^
3 errors
Language: Java

import java.util.*;

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

Compiler output:
Main.java:8: error: illegal start of expression
if(x=sc.nextInt())==0 break;
                  ^
Main.java:8: error: ';' expected
if(x=sc.nextInt())==0 break;
                     ^
2 errors
Language: Java

import java.util.*;

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

Compiler output:
Main.java:8: error: illegal start of expression
if(x=sc.nextInt())==0 break;
                  ^
Main.java:8: error: ';' expected
if(x=sc.nextInt())==0 break;
                     ^
2 errors
Language: Java

import java.util.*;

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

Compiler output:
Main.java:8: error: illegal start of expression
if(x=sc.nextInt())==0 break;
                  ^
Main.java:8: error: ';' expected
if(x=sc.nextInt())==0 break;
                     ^
2 errors
Language: Java

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

Compiler output:
Main.java:8: error: cannot find symbol
	    if(j == 0) break;
	       ^
  symbol:   variable j
  location: class Main
1 error
Language: Java


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

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

public class Main {


	public static void main(String[] args) {

	int x = 1;
	int i = 1;

     while(x != 0){



		Scanner sc = new Scanner(System.in);
		x = sc.nextInt();
		if(x == 0){
			break;
		}
		System.out.println("Case" + i + ":" + x);
		i++;

     }

	}

}

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

import java.util.Scanner;


class Main{

	public static void main(String[] args){

		Scanner sc = new Scanner(System.in);
		int num;
		while( (num = sc.next()) != 0 ){
			System.out.printf("Case i: %d\n",num);
		}

    }
}

Compiler output:
Main.java:10: error: incompatible types: String cannot be converted to int
		while( (num = sc.next()) != 0 ){
		                     ^
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, i = 1;
		while (true) {
			x = scan.nextInt();
			if (x == 0)
				break;
			System.out.println("Case" + i + ": " + x);
			i++;
		}
	}

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

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

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

import java.util.*;

public class AOJ10006 {

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

}

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

import java.util.Scanner;

public class AOJ10006 {

	public static void main(String[] args) {
		// TODO Auto-generated method stub

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

}

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

#include <stdio.h>

int main(void) {
    int i, n;
    i = 1;
    while(scanf("%d\n", &n) == 1) {
        if(n == 0) break;

        printf("Case %d: %d\n", i, n);
        i++;
    }

     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: class, interface, enum, or record expected
    i = 1;
    ^
Main.java:6: error: class, interface, enum, or record expected
    while(scanf("%d\n", &n) == 1) {
    ^
Main.java:9: error: class, interface, enum, or record expected
        printf("Case %d: %d\n", i, n);
        ^
Main.java:10: error: class, interface, enum, or record expected
        i++;
        ^
Main.java:11: error: class, interface, enum, or record expected
    }
    ^
Main.java:14: error: class, interface, enum, or record expected
}
^
8 errors
Language: Java


import java.io.*;

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

}

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

#include <stdio.h>

int main(){
a[1000];
int i=1;

while(1){
scanf("%d",a[i]);
if(a[i]==0){
break;
}
i++;
}
i=1;
while(a[i]!=0){
printf("Case %d: %d\n",i,a[i]);
}
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:4:1: error: 'a' undeclared (first use in this function)
    4 | a[1000];
      | ^
main.c:4:1: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include <stdio.h>

int main(){

	int i;
	int a;
	for(i=0; ;i++) {

			scanf("%d", &a);
			if (a == 0)
				return;
			pirntf("Case %d: %d", i, a);
			
		}

}

Compiler output:
main.c: In function 'main':
main.c:11:33: error: 'return' with no value, in function returning non-void [-Wreturn-mismatch]
   11 |                                 return;
      |                                 ^~~~~~
main.c:3:5: note: declared here
    3 | int main(){
      |     ^~~~
main.c:12:25: error: implicit declaration of function 'pirntf'; did you mean 'printf'? [-Wimplicit-function-declaration]
   12 |                         pirntf("Case %d: %d", i, a);
      |                         ^~~~~~
      |                         printf
Language: C

#include <stdio.h>

int main(){

	int i;
	int a;
	for(i=0; ;i++) {

			scanf("%d", &a);
			if (a == 0)
				return 0;
			pirntf("Case %d: %d", i, a);

		}

	return 0;

}

Compiler output:
main.c: In function 'main':
main.c:12:25: error: implicit declaration of function 'pirntf'; did you mean 'printf'? [-Wimplicit-function-declaration]
   12 |                         pirntf("Case %d: %d", i, a);
      |                         ^~~~~~
      |                         printf
Language: C

include<stdio.h>
int main(void){

	int x[100],i;

	for (i = 0; x[i-1];i++)
	scanf("%d", &x[i]);

	for (i = 0; x[i]; i++)
		printf("Case %d : %d\n", i + 1, x[i]);
}

Compiler output:
main.c:1:8: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
    1 | include<stdio.h>
      |        ^
Language: C

#include <stdio.h>

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

Compiler output:
main.c: In function 'main':
main.c:9:31: error: expected ')' before ';' token
    9 |         while (scanf("%d", &x); != 0){
      |               ~               ^
      |                               )
Language: C

#include <stdio.h>
 
int main(void)
{
int x, i;
for(i=1;i>0;i++){
scanf("%d", &x);
}
if(x>0){
for(i=1;i>0;i++){
printf("Case %d: %d\n", i, x);
}
return 0;
}
 

Compiler output:
main.c: In function 'main':
main.c:14:1: error: expected declaration or statement at end of input
   14 | }
      | ^