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

import java.io.FileReader;
import java.io.BufferedReader;
import java.io.IOException;
class Main{
public static void main(String[] args){
BufferedReader br=new BufferedReader(new FileReader(System.in));
int x,i =1;
while((x=br.readLine()) != 0){
System.out.println("Case "+i+": "+x);
i++;
}
br.close();
}} 

Compiler output:
Main.java:6: error: no suitable constructor found for FileReader(InputStream)
BufferedReader br=new BufferedReader(new FileReader(System.in));
                                     ^
    constructor FileReader.FileReader(String) is not applicable
      (argument mismatch; InputStream cannot be converted to String)
    constructor FileReader.FileReader(File) is not applicable
      (argument mismatch; InputStream cannot be converted to File)
    constructor FileReader.FileReader(FileDescriptor) is not applicable
      (argument mismatch; InputStream cannot be converted to FileDescriptor)
Main.java:8: error: incompatible types: String cannot be converted to int
while((x=br.readLine()) != 0){
                    ^
Note: Some messages have been simplified; recompile with -Xdiags:verbose to get full output
2 errors
Language: Java

import java.io.*; 
class Main {
public static void main(String[] args){
BufferedReader input = new BufferedReader(new FileReader(System.in));
int i=0;
int x;
while((x=Integer.parseInt(br.readLine())) != 0){
i++;
System.out.println("Case " +i+ ": " + x);
}
}
}

Compiler output:
Main.java:4: error: no suitable constructor found for FileReader(InputStream)
BufferedReader input = new BufferedReader(new FileReader(System.in));
                                          ^
    constructor FileReader.FileReader(String) is not applicable
      (argument mismatch; InputStream cannot be converted to String)
    constructor FileReader.FileReader(File) is not applicable
      (argument mismatch; InputStream cannot be converted to File)
    constructor FileReader.FileReader(FileDescriptor) is not applicable
      (argument mismatch; InputStream cannot be converted to FileDescriptor)
Main.java:7: error: cannot find symbol
while((x=Integer.parseInt(br.readLine())) != 0){
                          ^
  symbol:   variable br
  location: class Main
Note: Some messages have been simplified; recompile with -Xdiags:verbose to get full output
2 errors
Language: Java

import java.io.*; 
class Main {
public static void main(String[] args){
BufferedReader input = new BufferedReader(new InputStreamReader(System.in));
int i=0;
int x;
while((x=Integer.parseInt(br.readLine())) != 0){
i++;
System.out.println("Case " +i+ ": " + x);
}
}
}

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

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

Compiler output:
Main.java:7: error: unreported exception IOException; must be caught or declared to be thrown
while((x=Integer.parseInt(br.readLine())) != 0){
                                     ^
1 error
Language: Java

import java.io.*; 
class Main {
public static void main(String[] args) thrown IOException{
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
int i=0;
int x;
while((x=Integer.parseInt(br.readLine())) != 0){
i++;
System.out.println("Case " +i+ ": " + x);
}
br.close();
}
}

Compiler output:
Main.java:3: error: ';' expected
public static void main(String[] args) thrown IOException{
                                      ^
1 error
Language: Java

import java.io.*; 
class Main {
public static void main(String[] args) throws IOException{
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
int i=0;
int x;
while((x=Integer.parseInt(br.read())) != 0){
i++;
System.out.println("Case " +i+ ": " + x);
}
br.close();
}
}

Compiler output:
Main.java:7: error: incompatible types: int cannot be converted to String
while((x=Integer.parseInt(br.read())) != 0){
                                 ^
Note: Some messages have been simplified; recompile with -Xdiags:verbose to get full output
1 error
Language: Java

import java.io.*;
class Main{
public static void main(String[] args) throws IOException{
BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
int x, y;
while(readStrToInt()){
swapNum();
System.out.(x+" "+y);
}
br.close();
}
static boolean readStrToInt(){
String str=br.readLine();
String[] arr=str.split(" ");
x=Integer.parseInt(arr[0]);
y=Integer.parseInt(arr[1]);
if(x==0 &&y==0) return false;
return true;
}
static void swapNum(){
int tmp;
if(x<=y) return;
tmp=x;
x=y;
y=tmp;
return;
}
}

Compiler output:
Main.java:8: error: <identifier> expected
System.out.(x+" "+y);
           ^
1 error
Language: Java

import java.io.*;
class Main{
public static void main(String[] args) throws IOException{
BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
int x, y;
while(readStrToInt()){
swapNum();
System.out.println(x+" "+y);
}
br.close();
}
static boolean readStrToInt(){
String str=br.readLine();
String[] arr=str.split(" ");
x=Integer.parseInt(arr[0]);
y=Integer.parseInt(arr[1]);
if(x==0 &&y==0) return false;
return true;
}
static void swapNum(){
int tmp;
if(x<=y) return;
tmp=x;
x=y;
y=tmp;
return;
}
}

Compiler output:
Main.java:13: error: cannot find symbol
String str=br.readLine();
           ^
  symbol:   variable br
  location: class Main
Main.java:15: error: cannot find symbol
x=Integer.parseInt(arr[0]);
^
  symbol:   variable x
  location: class Main
Main.java:16: error: cannot find symbol
y=Integer.parseInt(arr[1]);
^
  symbol:   variable y
  location: class Main
Main.java:17: error: cannot find symbol
if(x==0 &&y==0) return false;
   ^
  symbol:   variable x
  location: class Main
Main.java:17: error: cannot find symbol
if(x==0 &&y==0) return false;
          ^
  symbol:   variable y
  location: class Main
Main.java:22: error: cannot find symbol
if(x<=y) return;
   ^
  symbol:   variable x
  location: class Main
Main.java:22: error: cannot find symbol
if(x<=y) return;
      ^
  symbol:   variable y
  location: class Main
Main.java:23: error: cannot find symbol
tmp=x;
    ^
  symbol:   variable x
  location: class Main
Main.java:24: error: cannot find symbol
x=y;
^
  symbol:   variable x
  location: class Main
Main.java:24: error: cannot find symbol
x=y;
  ^
  symbol:   variable y
  location: class Main
Main.java:25: error: cannot find symbol
y=tmp;
^
  symbol:   variable y
  location: class Main
11 errors
Language: Java

import java.io.*;
class Main{
public static void main(String[] args) throws IOException{
BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
int x, y;
while(readStrToInt(br)){
swapNum();
System.out.println(x+" "+y);
}
br.close();
}
static boolean readStrToInt(String br){
String str=br.readLine();
String[] arr=str.split(" ");
x=Integer.parseInt(arr[0]);
y=Integer.parseInt(arr[1]);
if(x==0 &&y==0) return false;
return true;
}
static void swapNum(){
int tmp;
if(x<=y) return;
tmp=x;
x=y;
y=tmp;
return;
}
}

Compiler output:
Main.java:6: error: incompatible types: BufferedReader cannot be converted to String
while(readStrToInt(br)){
                   ^
Main.java:13: error: cannot find symbol
String str=br.readLine();
             ^
  symbol:   method readLine()
  location: variable br of type String
Main.java:15: error: cannot find symbol
x=Integer.parseInt(arr[0]);
^
  symbol:   variable x
  location: class Main
Main.java:16: error: cannot find symbol
y=Integer.parseInt(arr[1]);
^
  symbol:   variable y
  location: class Main
Main.java:17: error: cannot find symbol
if(x==0 &&y==0) return false;
   ^
  symbol:   variable x
  location: class Main
Main.java:17: error: cannot find symbol
if(x==0 &&y==0) return false;
          ^
  symbol:   variable y
  location: class Main
Main.java:22: error: cannot find symbol
if(x<=y) return;
   ^
  symbol:   variable x
  location: class Main
Main.java:22: error: cannot find symbol
if(x<=y) return;
      ^
  symbol:   variable y
  location: class Main
Main.java:23: error: cannot find symbol
tmp=x;
    ^
  symbol:   variable x
  location: class Main
Main.java:24: error: cannot find symbol
x=y;
^
  symbol:   variable x
  location: class Main
Main.java:24: error: cannot find symbol
x=y;
  ^
  symbol:   variable y
  location: class Main
Main.java:25: error: cannot find symbol
y=tmp;
^
  symbol:   variable y
  location: class Main
Note: Some messages have been simplified; recompile with -Xdiags:verbose to get full output
12 errors
Language: Java

import java.io.*;
class Main{
public static void main(String[] args) throws IOException{
BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
int x, y;
while(readStrToInt(br)){
swapNum();
System.out.println(x+" "+y);
}
br.close();
}
static boolean readStrToInt(Bufferedreader br){
String str=br.readLine();
String[] arr=str.split(" ");
x=Integer.parseInt(arr[0]);
y=Integer.parseInt(arr[1]);
if(x==0 &&y==0) return false;
return true;
}
static void swapNum(){
int tmp;
if(x<=y) return;
tmp=x;
x=y;
y=tmp;
return;
}
}

Compiler output:
Main.java:12: error: cannot find symbol
static boolean readStrToInt(Bufferedreader br){
                            ^
  symbol:   class Bufferedreader
  location: class Main
Main.java:15: error: cannot find symbol
x=Integer.parseInt(arr[0]);
^
  symbol:   variable x
  location: class Main
Main.java:16: error: cannot find symbol
y=Integer.parseInt(arr[1]);
^
  symbol:   variable y
  location: class Main
Main.java:17: error: cannot find symbol
if(x==0 &&y==0) return false;
   ^
  symbol:   variable x
  location: class Main
Main.java:17: error: cannot find symbol
if(x==0 &&y==0) return false;
          ^
  symbol:   variable y
  location: class Main
Main.java:22: error: cannot find symbol
if(x<=y) return;
   ^
  symbol:   variable x
  location: class Main
Main.java:22: error: cannot find symbol
if(x<=y) return;
      ^
  symbol:   variable y
  location: class Main
Main.java:23: error: cannot find symbol
tmp=x;
    ^
  symbol:   variable x
  location: class Main
Main.java:24: error: cannot find symbol
x=y;
^
  symbol:   variable x
  location: class Main
Main.java:24: error: cannot find symbol
x=y;
  ^
  symbol:   variable y
  location: class Main
Main.java:25: error: cannot find symbol
y=tmp;
^
  symbol:   variable y
  location: class Main
11 errors
Language: Java

import java.io.*;
class Main{
public static void main(String[] args) throws IOException{
BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
int x, y;
while(readStrToInt(br)){
swapNum(x,y);
System.out.println(x+" "+y);
}
br.close();
}
static boolean readStrToInt(Bufferedreader br){
String str=br.readLine();
String[] arr=str.split(" ");
x=Integer.parseInt(arr[0]);
y=Integer.parseInt(arr[1]);
if(x==0 &&y==0) return false;
return true;
}
static void swapNum(int x,int y){
int tmp;
if(x<=y) return;
tmp=x;
x=y;
y=tmp;
return;
}
}

Compiler output:
Main.java:12: error: cannot find symbol
static boolean readStrToInt(Bufferedreader br){
                            ^
  symbol:   class Bufferedreader
  location: class Main
Main.java:15: error: cannot find symbol
x=Integer.parseInt(arr[0]);
^
  symbol:   variable x
  location: class Main
Main.java:16: error: cannot find symbol
y=Integer.parseInt(arr[1]);
^
  symbol:   variable y
  location: class Main
Main.java:17: error: cannot find symbol
if(x==0 &&y==0) return false;
   ^
  symbol:   variable x
  location: class Main
Main.java:17: error: cannot find symbol
if(x==0 &&y==0) return false;
          ^
  symbol:   variable y
  location: class Main
5 errors
Language: Java

import java.io.*;
class Main{
public static void main(String[] args) throws IOException{
BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
int x, y;
while(readStrToInt(br, x, y)){
swapNum(x,y);
System.out.println(x+" "+y);
}
br.close();
}
static boolean readStrToInt(Bufferedreader br){
String str=br.readLine();
String[] arr=str.split(" ");
x=Integer.parseInt(arr[0]);
y=Integer.parseInt(arr[1]);
if(x==0 &&y==0) return false;
return true;
}
static void swapNum(int x,int y){
int tmp;
if(x<=y) return;
tmp=x;
x=y;
y=tmp;
return;
}
}

Compiler output:
Main.java:12: error: cannot find symbol
static boolean readStrToInt(Bufferedreader br){
                            ^
  symbol:   class Bufferedreader
  location: class Main
Main.java:6: error: method readStrToInt in class Main cannot be applied to given types;
while(readStrToInt(br, x, y)){
      ^
  required: Bufferedreader
  found:    BufferedReader,int,int
  reason: actual and formal argument lists differ in length
Main.java:15: error: cannot find symbol
x=Integer.parseInt(arr[0]);
^
  symbol:   variable x
  location: class Main
Main.java:16: error: cannot find symbol
y=Integer.parseInt(arr[1]);
^
  symbol:   variable y
  location: class Main
Main.java:17: error: cannot find symbol
if(x==0 &&y==0) return false;
   ^
  symbol:   variable x
  location: class Main
Main.java:17: error: cannot find symbol
if(x==0 &&y==0) return false;
          ^
  symbol:   variable y
  location: class Main
6 errors
Language: Java

import java.io.*;
class Main{
public static void main(String[] args) throws IOException{
BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
int x, y;
while(readStrToInt(br, x, y)){
swapNum(x,y);
System.out.println(x+" "+y);
}
br.close();
}
static boolean readStrToInt(BufferedReader br){
String str=br.readLine();
String[] arr=str.split(" ");
x=Integer.parseInt(arr[0]);
y=Integer.parseInt(arr[1]);
if(x==0 &&y==0) return false;
return true;
}
static void swapNum(int x,int y){
int tmp;
if(x<=y) return;
tmp=x;
x=y;
y=tmp;
return;
}
}

Compiler output:
Main.java:6: error: method readStrToInt in class Main cannot be applied to given types;
while(readStrToInt(br, x, y)){
      ^
  required: BufferedReader
  found:    BufferedReader,int,int
  reason: actual and formal argument lists differ in length
Main.java:15: error: cannot find symbol
x=Integer.parseInt(arr[0]);
^
  symbol:   variable x
  location: class Main
Main.java:16: error: cannot find symbol
y=Integer.parseInt(arr[1]);
^
  symbol:   variable y
  location: class Main
Main.java:17: error: cannot find symbol
if(x==0 &&y==0) return false;
   ^
  symbol:   variable x
  location: class Main
Main.java:17: error: cannot find symbol
if(x==0 &&y==0) return false;
          ^
  symbol:   variable y
  location: class Main
5 errors
Language: Java

import java.io.*;
class Main{
int x,y;
public static void main(String[] args) throws IOException{
BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
while(readStrToInt(br)){
swapNum();
System.out.println(x+" "+y);
}
br.close();
}
static boolean readStrToInt(BufferedReader br){
String str=br.readLine();
String[] arr=str.split(" ");
x=Integer.parseInt(arr[0]);
y=Integer.parseInt(arr[1]);
if(x==0 &&y==0) return false;
return true;
}
static void swapNum(){
int tmp;
if(x<=y) return;
tmp=x;
x=y;
y=tmp;
return;
}
}

Compiler output:
Main.java:8: error: non-static variable x cannot be referenced from a static context
System.out.println(x+" "+y);
                   ^
Main.java:8: error: non-static variable y cannot be referenced from a static context
System.out.println(x+" "+y);
                         ^
Main.java:15: error: non-static variable x cannot be referenced from a static context
x=Integer.parseInt(arr[0]);
^
Main.java:16: error: non-static variable y cannot be referenced from a static context
y=Integer.parseInt(arr[1]);
^
Main.java:17: error: non-static variable x cannot be referenced from a static context
if(x==0 &&y==0) return false;
   ^
Main.java:17: error: non-static variable y cannot be referenced from a static context
if(x==0 &&y==0) return false;
          ^
Main.java:22: error: non-static variable x cannot be referenced from a static context
if(x<=y) return;
   ^
Main.java:22: error: non-static variable y cannot be referenced from a static context
if(x<=y) return;
      ^
Main.java:23: error: non-static variable x cannot be referenced from a static context
tmp=x;
    ^
Main.java:24: error: non-static variable x cannot be referenced from a static context
x=y;
^
Main.java:24: error: non-static variable y cannot be referenced from a static context
x=y;
  ^
Main.java:25: error: non-static variable y cannot be referenced from a static context
y=tmp;
^
12 errors
Language: Java

import java.io.*;
class Main{
public static void main(String[] args) throws IOException{
BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
int x,y;
while(readStrToInt(br, x, y)){
swapNum(x, y);
System.out.println(x+" "+y);
}
br.close();
}
static boolean readStrToInt(BufferedReader br, int x, int y){
String str=br.readLine();
String[] arr=str.split(" ");
x=Integer.parseInt(arr[0]);
y=Integer.parseInt(arr[1]);
if(x==0 &&y==0) return false;
return true;
}
static void swapNum(int x, int y){
int tmp;
if(x<=y) return;
tmp=x;
x=y;
y=tmp;
return;
}
}

Compiler output:
Main.java:6: error: variable x might not have been initialized
while(readStrToInt(br, x, y)){
                       ^
Main.java:6: error: variable y might not have been initialized
while(readStrToInt(br, x, y)){
                          ^
Main.java:13: error: unreported exception IOException; must be caught or declared to be thrown
String str=br.readLine();
                      ^
3 errors
Language: Java

import java.io.*;
class Main{
public static void main(String[] args) throws IOException{
BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
int x,y;
while(readStrToInt(br, x, y)){
swapNum(x, y);
System.out.println(x+" "+y);
}
br.close();
}
static boolean readStrToInt(BufferedReader br, int x, int y)throws IOException{
String str=br.readLine();
String[] arr=str.split(" ");
x=Integer.parseInt(arr[0]);
y=Integer.parseInt(arr[1]);
if(x==0 &&y==0) return false;
return true;
}
static void swapNum(int x, int y){
int tmp;
if(x<=y) return;
tmp=x;
x=y;
y=tmp;
return;
}
}

Compiler output:
Main.java:6: error: variable x might not have been initialized
while(readStrToInt(br, x, y)){
                       ^
Main.java:6: error: variable y might not have been initialized
while(readStrToInt(br, x, y)){
                          ^
2 errors
Language: Java

import java.util.scanner;

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


    
  }
}

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

import java.util.Scanner;


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


    
  }
}

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

import java.util.Scanner;


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


    
  }
}

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

import java.util.Scanner;


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

if(int < 10000){
        int n = scan.nextInt();
        System.out.println("Case "+ i + ": "+n);
      }else{
        break;
      }


    
  }
}

Compiler output:
Main.java:11: error: '.class' expected
if(int < 10000){
       ^
Main.java:21: error: reached end of file while parsing
}
 ^
2 errors
Language: Java

import java.io.*;
public class Main{
	public static void main(String[] args)throws Exception{
		BufferedReader input=new BufferedReader(new InputStreamReader(System.in));
		StringBuilder sb=new StringBuilder();
		int i=1;
		String str=input.readLine();
		int a=Interger.parseInt(str);
		while(true){
		if(a==0){
			break;
		}
		sb.append("Case ").append(Integer.toString(i++)).append(": ").append("Integer.toString(a)).append("\n");
		System.out.print(sb);

		}
	}
}

Compiler output:
Main.java:13: error: illegal character: '\'
		sb.append("Case ").append(Integer.toString(i++)).append(": ").append("Integer.toString(a)).append("\n");
		                                                                                                   ^
Main.java:13: error: unclosed string literal
		sb.append("Case ").append(Integer.toString(i++)).append(": ").append("Integer.toString(a)).append("\n");
		                                                                                                     ^
Main.java:13: error: not a statement
		sb.append("Case ").append(Integer.toString(i++)).append(": ").append("Integer.toString(a)).append("\n");
		                                                                                                    ^
3 errors
Language: Java

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

        }

    }


}

Compiler output:
Main.java:8: error: incompatible types: int cannot be converted to boolean
            if(Array[n]=0)
                       ^
1 error
Language: Java

import java.util.Scanner;

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

 Scanner a =  new Scanner(System.in);
      int x,i = 0;
        do{
             i++;
             x = a.nextInt();
             System.out.println("Case " + i + ": " + x);
        }while(x%10!=0);

    }
}

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

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

public class Main {
    public static void main(String[] args) throws NumberFormatException, IOException {

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

        int i = 1;
        while (true) {
            int n = Integer.parseInt(br.readLine());
            if (n == 0) {
                break;
            }
            sb.append("Case ").append(i).append(": ").append(n).append("\n");
            i++;
        }
        System.out.print(sb);
    }

}

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

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

public class Main {
	public static void main(String[] args) throws IOException {
        BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
        System.out.println(reader.read());
}

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

import java.io.*;

class Main{
	public static void main(String[]args)throws IOException{
		BufferedReader br=
			new BufferedReader(new InputStreamReader(System.in));
		
		int[] x=new int[10000];
		int i=0,j;
		
		do{
			i++;
			String str=br.readLine();
			int num=Integer.parseInt(str);
			x[i]=Integer.parseInt(num);
		
		}while(x[i]!=0);
		
		for(j=1;j<i;j++){
			System.out.println("Case "+j+":"+x[j]);
		}
	}
}

Compiler output:
Main.java:15: error: incompatible types: int cannot be converted to String
			x[i]=Integer.parseInt(num);
			                      ^
Note: Some messages have been simplified; recompile with -Xdiags:verbose to get full output
1 error
Language: Java

import java.util.Scanner;

class Main{
	public static void main(String[] args){
		for(int i = 1; i <= 10000; i ++){
			int num = scanner.nextInt();
			if(num == 0){
				break;
			}else{
				System.out.println("Case " + i + ": " + num);
			}
		}
		
	}
}

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

import java.util.Scanner;

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

Compiler output:
Main.java:4: error: no suitable constructor found for Scanner(no arguments)
	Scanner scanner = new Scanner();
	                  ^
    constructor Scanner.Scanner(Readable,Pattern) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(Readable) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(InputStream) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(InputStream,String) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(InputStream,Charset) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(File) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(File,String) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(File,Charset) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(File,CharsetDecoder) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(Path) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(Path,String) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(Path,Charset) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(String) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(ReadableByteChannel) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(ReadableByteChannel,String) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(ReadableByteChannel,Charset) is not applicable
      (actual and formal argument lists differ in length)
Main.java:7: error: non-static variable scanner cannot be referenced from a static context
			int num = scanner.nextInt();
			          ^
2 errors
Language: Java

import java.util.Scanner;

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

Compiler output:
Main.java:7: error: non-static variable scanner cannot be referenced from a static context
			int num = scanner.nextInt();
			          ^
1 error
Language: Java

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:3: error: cannot find symbol
            BufferedReader br = new BufferedReader(new InputStreamReader(System.in));// ??\????????????????????????
            ^
  symbol:   class BufferedReader
  location: class Main
Main.java:3: error: cannot find symbol
            BufferedReader br = new BufferedReader(new InputStreamReader(System.in));// ??\????????????????????????
                                    ^
  symbol:   class BufferedReader
  location: class Main
Main.java:3: error: cannot find symbol
            BufferedReader br = new BufferedReader(new InputStreamReader(System.in));// ??\????????????????????????
                                                       ^
  symbol:   class InputStreamReader
  location: class Main
3 errors
Language: Java

public class Main {
@SuppressWarnings("resource")
public static void main(String[] args) {
Scanner scan=new Scanner(System.in);
int i = 0;
int a;
String b="";
do{
	a=scan.nextInt();
	if(a==0)break;
		b+="Case "+i+": "+a+"\n";
		i++;
}while(true);
System.out.println(b);
	}
}

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

import java.io.*;

public class main{
    public static void main(String[] args){
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));//?????????String br?????????System.in
        String st = new StringBuilder();//st???Systm.in?????¨????????????????????£??????

        int k = 0;
        
        while(true){
            int num = Integer.parseInt(br.readLine());//????????\??????????????????
            
                if(num != 0){
                    k++;
                    String Ans ="Case " + k +": " + num; 
                    System.out.println(Ans);
                }

            }
        }




    }
}

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

import java.io.*;

public class main{
    public static void main(String[] args){
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));//?????????String br?????????System.in
        String st = new StringBuilder();//st???Systm.in?????¨????????????????????£??????

        int k = 0;
        
        while(true){
            int num = Integer.parseInt(br.readLine());//????????\??????????????????
            
                if(num != 0){
                    k++;
                    String Ans ="Case " + k +": " + num; 
                    System.out.println(Ans);
                }

            }
        }




    }

Compiler output:
Main.java:3: error: class main is public, should be declared in a file named main.java
public class main{
       ^
Main.java:6: error: incompatible types: StringBuilder cannot be converted to String
        String st = new StringBuilder();//st???Systm.in?????????????????????????????????
                    ^
2 errors
Language: Java

import java.io.*;

public class Main{
    public static void main(String[] args)throws Exception{
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        StringBuilder st = new StringBuilder();
        
        int k = 0;
        
        while(true){
            int num = Integer.parseInt(br.readLine());
            
                if(num != 0){
                    k++;
                    String Ans ="Case " + k +": " + num; 
                    System.out.println(Ans);
                }

            }
        }
    }
}

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

import java.io.*;

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

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

import java.io.*;

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

    int i = 1;

    while(true){
      int line = Integer.parseInt(br.readLine());
      if (line == 0){
        break;
      }
      sb.append("Case ").append(i).append(": ").append(line).append("\n");
      i++;
    }
      System.out.print(sb);
  }

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

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

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

    int i = 1;

    while(true){
      int line = Integer.parseInt(br.readLine());
      if (line == 0){
        break;
      }
      sb.append("Case ").append(i).append(": ").append(line).append("\n");
      i++;
    }
      System.out.print(sb);
  }
}

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

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

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

    int i = 1;

    while(true){
      int line = Integer.parseInt(br.readLine());
      if (line == 0){
        break;
      }
      sb.append("Case ").append(i).append(": ").append(line).append("\n");
      i++;
    }
      System.out.print(sb);
  }
}

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

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

public class Main3B {

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

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

		int i = 1;

		while(true) {

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

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

}

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

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

public class Main3{

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

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

		int i = 1;

		while(true) {

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

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

}

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

import java.util.*;

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

		for (int i = i; sc.hasNextInt(); i++) {
			if (sc.nextInt() == 0) {
				break;
			}
			System.out.println(str + i + delimeter + sc.nextInt());
		}
	}
}
}

Compiler output:
Main.java:17: error: class, interface, enum, or record expected
}
^
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 be =new BufferedReader(
			new InputStreamReader(System.in));
		StringBuffer str =new StringBuffer();
		int i=1;
		while(true){
			int data = Integer.parseInt(br.readLine());
			if(data==0)
				break
			str.append("Case").append(Integer.toString(i))
			.append(":").append(Integer.toString(data)).append("\n")
		}
		System.out.println(str);
	}
}

Compiler output:
Main.java:18: error: ';' expected
			str.append("Case").append(Integer.toString(i))
			   ^
Main.java:19: error: ';' expected
			.append(":").append(Integer.toString(data)).append("\n")
			                                                        ^
2 errors
Language: Java

import java.util.*;

class main{
	public static void main(String args[]){
		Scanner sc = new Scanner(System.in);
		List<String> srt= new ArrayList<String>();
		while(sc.hasNextLine()){
			str.add(sc.nextLine());
		}
		for(int i=0; i<str.size();i++){
			if(Integer.parseInt(str.get(i))==0){
				break;
			}
			System.out.println("Case "+(i+1)+": "+str.get(i));
		}
	}
}

Compiler output:
Main.java:8: error: cannot find symbol
			str.add(sc.nextLine());
			^
  symbol:   variable str
  location: class main
Main.java:10: error: cannot find symbol
		for(int i=0; i<str.size();i++){
		               ^
  symbol:   variable str
  location: class main
Main.java:11: error: cannot find symbol
			if(Integer.parseInt(str.get(i))==0){
			                    ^
  symbol:   variable str
  location: class main
Main.java:14: error: cannot find symbol
			System.out.println("Case "+(i+1)+": "+str.get(i));
			                                      ^
  symbol:   variable str
  location: class main
4 errors
Language: Java

import java.util.*;

class main{
	public static void main(String args[]){
		Scanner sc = new Scanner(System.in);
		while(sc.hasNextLine()){
			String str = sc.nextLine();
			if(!(str.equals("0"))){
				System.out.println("Case "+(i+1)+": "+str.get(i));
			}
		}
	}
}

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

import java.util.*;

class main{
	public static void main(String args[]){
		Scanner sc = new Scanner(System.in);
		while(sc.hasNextLine()){
			String str = sc.nextLine();
			if(!(str.equals("0"))){
				System.out.println("Case "+(i+1)+": "+str);
			}
		}
	}
}

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

import java.util.Scanner;

public class Main{

public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
int p = 9;
int counter = 1;
while (p != 0) {
p = scan.nextLine();
System.out.println("Case " + counter +": " + p);
counter++;
} 

}
}



Compiler output:
Main.java:10: error: incompatible types: String cannot be converted to int
p = scan.nextLine();
                 ^
1 error
Language: Java

import java.util.Scanner;

public class Main{

public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
int p = 9;
int counter = 1;
while (p != 0) {
p = (Integer) scan.nextLine();
System.out.println("Case " + counter +": " + p);
counter++;
} 

}
}



Compiler output:
Main.java:10: error: incompatible types: String cannot be converted to Integer
p = (Integer) scan.nextLine();
                           ^
1 error
Language: Java

import java.util.Scanner;

public class Main{

public static void main(String[] args) {
int p = 9;
int counter = 1;
while (p != 0) {
Scanner scan = new Scanner(System.in);
p = scan.nextLine();
System.out.println("Case " + counter +": " + p);
counter++;
} 

}
}



Compiler output:
Main.java:10: error: incompatible types: String cannot be converted to int
p = scan.nextLine();
                 ^
1 error
Language: Java

class Main{
	public static void main(String[] args){
		while(true){
			Scanner in = new Scanner(System.in);
			int x = in.nextInt();
			if(x == 0){
				break;
			}
		}
	}
}


Compiler output:
Main.java:4: error: cannot find symbol
			Scanner in = new Scanner(System.in);
			^
  symbol:   class Scanner
  location: class Main
Main.java:4: error: cannot find symbol
			Scanner in = 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 in = new Scanner(System.in);
		while(true){
			int i = 1;
			int x = in.nextInt();
			if(x == 0){
				break;
			}
			System.out.println("Case" + i" + :" + x);
                        i++;
		}
	}
}


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

import java.util.Scanner;

public class Main2 {

	public static void main(String[] args) {

		int i = 0;

		while( true ) {
		Scanner sc = new Scanner(System.in);

		i++;

		int x = sc.nextInt();

		if( x == 0 || i > 10000 ) {
			break;
		}

		System.out.println("Case " + i + ": " + x);

		}
	}
}


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

import java.util.Scanner;

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


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

import java.util.*;

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

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

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


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

import java.util.Scanner;

public class Main {
  public static void main(String[] args) {
    System.out.println("入力してください。");
    Scanner input = new Scanner(System.in);
    int count = 1;
    while(true) {
      int value = input.nextline();
      if(value == 0) {
        break;
      }
      System.out.println("Case " + count + ": " + value);
      count++;
    }
  }
}


Compiler output:
Main.java:9: error: cannot find symbol
      int value = input.nextline();
                       ^
  symbol:   method nextline()
  location: variable input of type Scanner
1 error
Language: Java

import java.util.Scanner;

public class Main {
  public static void main(String[] args) {
    System.out.println("入力してください。");
    Scanner input = new Scanner(System.in);
    Long count = 1;
    while(true) {
      String value = input.nextLine();
      if(value.equals("0")) {
        break;
      }
      System.out.println("Case " + count + ": " + value);
      count++;
    }
  }
}


Compiler output:
Main.java:7: error: incompatible types: int cannot be converted to Long
    Long count = 1;
                 ^
1 error
Language: Java

public class STNS {

    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        String inputNums;
        while (true) {
            inputNums = scan.nextLine();
            if ("0 0".equals(inputNums)) {
                break;
            }
            System.out.println(compNumers(inputNums));
        }
    }
    private static String compNumers(String inputNums) {
        String space = " ";
        String nums[] = inputNums.split(space);
        long x = Long.parseLong(nums[0]);
        long y = Long.parseLong(nums[1]);
        if (x > y) {
            return (y + space + x);
        }
        return (x + space + y);
    }
}


Compiler output:
Main.java:1: error: class STNS is public, should be declared in a file named STNS.java
public class STNS {
       ^
Main.java:4: error: cannot find symbol
        Scanner scan = new Scanner(System.in);
        ^
  symbol:   class Scanner
  location: class STNS
Main.java:4: error: cannot find symbol
        Scanner scan = new Scanner(System.in);
                           ^
  symbol:   class Scanner
  location: class STNS
3 errors
Language: Java

import java.util.Scanner;

public class STNS {

    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        String inputNums;
        while (true) {
            inputNums = scan.nextLine();
            if ("0 0".equals(inputNums)) {
                break;
            }
            System.out.println(compNumers(inputNums));
        }
    }
    private static String compNumers(String inputNums) {
        String space = " ";
        String nums[] = inputNums.split(space);
        long x = Long.parseLong(nums[0]);
        long y = Long.parseLong(nums[1]);
        if (x > y) {
            return (y + space + x);
        }
        return (x + space + y);
    }
}


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

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

		int data[] = new int[10000];
		for(int i = 0; i < 10000; i ++) {
			data[i] = sc.nextInt();
			System.out.println("Case " + i+1 + ": data[i");

		}


	}
}


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

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

		int x, t = 1;
		while(true) {
			x = sc.nextInt();
			if(x == 0)break;
			System.out.println("Case "+ t++ + ": " + 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);

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


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