criyle/codenet-compile-errors huggingface dataset:
Language: C++

#inclide<iostream>
using namespace std;



int main()
{
	int H, W, x, y, r;

	cin >> H >> W >> x >> y >> r;

	if (x - r >= 0 && x + r <= W && y + r <= H && y - r >= 0) {
		cout << "Yes" << endl;

	}else if(x - r < 0 && x + r > W && y + r > H && y - r < 0) {
		cout << "No" << endl;

	}
    return 0;
}


Compiler output:
a.cc:1:2: error: invalid preprocessing directive #inclide; did you mean #include?
    1 | #inclide<iostream>
      |  ^~~~~~~
      |  include
a.cc: In function 'int main()':
a.cc:10:9: error: 'cin' was not declared in this scope
   10 |         cin >> H >> W >> x >> y >> r;
      |         ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | #inclide<iostream>
a.cc:13:17: error: 'cout' was not declared in this scope
   13 |                 cout << "Yes" << endl;
      |                 ^~~~
a.cc:13:17: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:13:34: error: 'endl' was not declared in this scope
   13 |                 cout << "Yes" << endl;
      |                                  ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | #inclide<iostream>
a.cc:16:17: error: 'cout' was not declared in this scope
   16 |                 cout << "No" << endl;
      |                 ^~~~
a.cc:16:17: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:16:33: error: 'endl' was not declared in this scope
   16 |                 cout << "No" << endl;
      |                                 ^~~~
a.cc:16:33: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
Language: C++

#inclde<iostream>
using namespace std;



int main()
{
	int H, W, x, y, r;

	cin >> H >> W >> x >> y >> r;

	if (x - r >= 0 && x + r <= W && y + r <= H && y - r >= 0) {
		cout << "Yes" << endl;

	}else if(x - r < 0 && x + r > W && y + r > H && y - r < 0) {
		cout << "No" << endl;

	}
    return 0;
}


Compiler output:
a.cc:1:2: error: invalid preprocessing directive #inclde; did you mean #include?
    1 | #inclde<iostream>
      |  ^~~~~~
      |  include
a.cc: In function 'int main()':
a.cc:10:9: error: 'cin' was not declared in this scope
   10 |         cin >> H >> W >> x >> y >> r;
      |         ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | #inclde<iostream>
a.cc:13:17: error: 'cout' was not declared in this scope
   13 |                 cout << "Yes" << endl;
      |                 ^~~~
a.cc:13:17: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:13:34: error: 'endl' was not declared in this scope
   13 |                 cout << "Yes" << endl;
      |                                  ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | #inclde<iostream>
a.cc:16:17: error: 'cout' was not declared in this scope
   16 |                 cout << "No" << endl;
      |                 ^~~~
a.cc:16:17: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:16:33: error: 'endl' was not declared in this scope
   16 |                 cout << "No" << endl;
      |                                 ^~~~
a.cc:16:33: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
Language: C++

#include <iostream>
using namespace std;
int main() {
	int a,b,c,d,e;
	cin >> w >> h >> x >> y >> r;
	if (x-r>0&&x+r<w&&y-r>0&&y+r<h)
		cout << "Yes";
	else cout << "No";
	cout << endl;
	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:5:16: error: 'w' was not declared in this scope
    5 |         cin >> w >> h >> x >> y >> r;
      |                ^
a.cc:5:21: error: 'h' was not declared in this scope
    5 |         cin >> w >> h >> x >> y >> r;
      |                     ^
a.cc:5:26: error: 'x' was not declared in this scope
    5 |         cin >> w >> h >> x >> y >> r;
      |                          ^
a.cc:5:31: error: 'y' was not declared in this scope
    5 |         cin >> w >> h >> x >> y >> r;
      |                               ^
a.cc:5:36: error: 'r' was not declared in this scope
    5 |         cin >> w >> h >> x >> y >> r;
      |                                    ^
Language: C++

#include <stdio.h>
int main(void)
{
w,h,x,y,r = gets.split.map(&:to_i)
xmax = w - r
ymax = h - r
puts r<=x&&x<=xmax&&r<=y&&y<=ymax ? :Yes : :No
return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:4:1: error: 'w' was not declared in this scope
    4 | w,h,x,y,r = gets.split.map(&:to_i)
      | ^
a.cc:4:3: error: 'h' was not declared in this scope
    4 | w,h,x,y,r = gets.split.map(&:to_i)
      |   ^
a.cc:4:5: error: 'x' was not declared in this scope
    4 | w,h,x,y,r = gets.split.map(&:to_i)
      |     ^
a.cc:4:7: error: 'y' was not declared in this scope
    4 | w,h,x,y,r = gets.split.map(&:to_i)
      |       ^
a.cc:4:9: error: 'r' was not declared in this scope
    4 | w,h,x,y,r = gets.split.map(&:to_i)
      |         ^
a.cc:4:13: error: 'gets' was not declared in this scope; did you mean 'getw'?
    4 | w,h,x,y,r = gets.split.map(&:to_i)
      |             ^~~~
      |             getw
a.cc:4:29: error: expected primary-expression before ':' token
    4 | w,h,x,y,r = gets.split.map(&:to_i)
      |                             ^
Language: C++

#include<iostream>
void main(){
	int W, H, x, y, r;
	std::cin >> W >> H >> x >> y >> r;
	if (W < x || H < y || r > W || r > H || x + r > W || y + r > H){
		std::cout << "No" << std::endl;
	}
	else {
		std::cout << "Yes" << std::endl;
	}
}

Compiler output:
a.cc:2:1: error: '::main' must return 'int'
    2 | void main(){
      | ^~~~
Language: Java

import java.utill.Scanner;
class Try{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    int get,num = 1;
    while ((get=sc.nextInt()) != 0){
      SYstem.out.println("Case "+num+": "+get);
      num++;
    }
  }
}



Compiler output:
Main.java:1: error: package java.utill does not exist
import java.utill.Scanner;
                 ^
Main.java:4: error: cannot find symbol
    Scanner sc = new Scanner(System.in);
    ^
  symbol:   class Scanner
  location: class Try
Main.java:4: error: cannot find symbol
    Scanner sc = new Scanner(System.in);
                     ^
  symbol:   class Scanner
  location: class Try
Main.java:7: error: package SYstem does not exist
      SYstem.out.println("Case "+num+": "+get);
            ^
4 errors
Language: Java

import java.utill.Scanner;
class Try{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    int get,num = 1;
    get=sc.nextInt();
    while (get != 0){
      get=sc.nextInt();
      SYstem.out.println("Case "+num+": "+get);
      num++;
    }
  }
}



Compiler output:
Main.java:1: error: package java.utill does not exist
import java.utill.Scanner;
                 ^
Main.java:4: error: cannot find symbol
    Scanner sc = new Scanner(System.in);
    ^
  symbol:   class Scanner
  location: class Try
Main.java:4: error: cannot find symbol
    Scanner sc = new Scanner(System.in);
                     ^
  symbol:   class Scanner
  location: class Try
Main.java:9: error: package SYstem does not exist
      SYstem.out.println("Case "+num+": "+get);
            ^
4 errors
Language: Java

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

class Main{
  public static void main(String[] args){
    try{
      for(int i = 0; i < 7; i++){
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String str = br.readLine();
        if !(Integer.parseInt(str) == 0){
          System.out.println("Case " + i + ":" + Integer.parseInt(str));
        }
      }
    } catch (IOException e){
      System.out.println(e.toString());
    }
  }
}


Compiler output:
Main.java:11: error: '(' expected
        if !(Integer.parseInt(str) == 0){
          ^
Main.java:11: error: ')' expected
        if !(Integer.parseInt(str) == 0){
                                        ^
2 errors
Language: Java

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

class Main{
  public static void main(String[] args){
    try{
      for(int i = 0; i < 7; i++){
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String str = br.readLine();
        if (!Integer.parseInt(str) == 0){
          System.out.println("Case " + i + ":" + Integer.parseInt(str));
        }
      }
    } catch (IOException e){
      System.out.println(e.toString());
    }
  }
}


Compiler output:
Main.java:11: error: bad operand type int for unary operator '!'
        if (!Integer.parseInt(str) == 0){
            ^
1 error
Language: Java

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

class Main{
  public static void main(String[] args){
    try{
      for(int i = 1; i <= 10000; i++){
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String str = br.readLine();
        if (Integer.parseInt(str) == 0){
          break;
        }
        System.out.println("Case " + i + ": + Integer.parseInt(str));
      }
    } catch (IOException e){
      System.out.println(e.toString());
    }
  }
}


Compiler output:
Main.java:14: error: unclosed string literal
        System.out.println("Case " + i + ": + Integer.parseInt(str));
                                         ^
1 error
Language: Java

import java.util.Scanner;

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


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

import java.util.Scanner;

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


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

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


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

import java.util.Scanner;

public class Main { // クラス名はMain
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);

		int x = sc.nextInt();
		int i = 1;
		while(a <= 10000){
			if(x==0)
			{
			break;
			}

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

		}
	}

}


Compiler output:
Main.java:9: error: cannot find symbol
		while(a <= 10000){
		      ^
  symbol:   variable a
  location: class Main
1 error
Language: Java

import java.util.Scanner;

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);
      }
    }
  }
}



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

import java.io.*;

public class PrintTestClass {
    /**
     *
     */

    private static final int _10000 = 10000;

    public static void main(String[] args) {
        BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
        int i = 1;
        try {
            while (i < 10000) {
            String line = reader.readLine();
            int x = Integer.parseInt(line);
            if (x == 0) break;
            System.out.println("Case" + i + ": " + x);
            i++;
            }
        } catch (IOException e) {
            System.out.println(e);
        } catch (NumberFormatException e){
            System.out.println("falese");
        }
    }
}


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

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



Compiler output:
Main.java:8: error: unclosed character literal
        System.out.printf("%c %d: %d\n", 'Case', x, x[i]);
                                         ^
Main.java:8: error: unclosed character literal
        System.out.printf("%c %d: %d\n", 'Case', x, x[i]);
                                              ^
Main.java:8: error: not a statement
        System.out.printf("%c %d: %d\n", 'Case', x, x[i]);
                                           ^
Main.java:8: error: not a statement
        System.out.printf("%c %d: %d\n", 'Case', x, x[i]);
                                                 ^
Main.java:8: error: ';' expected
        System.out.printf("%c %d: %d\n", 'Case', x, x[i]);
                                                  ^
Main.java:8: error: not a statement
        System.out.printf("%c %d: %d\n", 'Case', x, x[i]);
                                                     ^
Main.java:8: error: ';' expected
        System.out.printf("%c %d: %d\n", 'Case', x, x[i]);
                                                        ^
7 errors
Language: Java

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



Compiler output:
Main.java:7: error: cannot find symbol
      for(int i = 0; i<x.length; i++){
                        ^
  symbol:   variable length
  location: variable x of type Scanner
Main.java:8: error: array required, but Scanner found
        System.out.printf("%s %d: %d\n", "Case", x, x[i]);
                                                     ^
2 errors
Language: Java

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



Compiler output:
Main.java:7: error: incompatible types: Scanner cannot be converted to int
      for(int i = x; i<x.length; i++){
                  ^
Main.java:7: error: cannot find symbol
      for(int i = x; i<x.length; i++){
                        ^
  symbol:   variable length
  location: variable x of type Scanner
Main.java:8: error: array required, but Scanner found
        System.out.printf("%s %d: %d\n", "Case", x, x[i]);
                                                     ^
3 errors
Language: Java

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



Compiler output:
Main.java:7: error: incompatible types: int cannot be converted to Scanner
      x = x.nextInt();
                   ^
Main.java:8: error: incompatible types: Scanner cannot be converted to int
      for(int i = x; i<x.length; i++){
                  ^
Main.java:8: error: cannot find symbol
      for(int i = x; i<x.length; i++){
                        ^
  symbol:   variable length
  location: variable x of type Scanner
Main.java:9: error: array required, but Scanner found
        System.out.printf("%s %d: %d\n", "Case", x, x[i]);
                                                     ^
4 errors
Language: Java

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



Compiler output:
Main.java:9: error: int cannot be dereferenced
      for(int i = x; i<x.length; i++){
                        ^
Main.java:10: error: array required, but int found
        System.out.printf("%s %d: %d\n", "Case", x, x[i]);
                                                     ^
2 errors
Language: Java

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



Compiler output:
Main.java:9: error: int cannot be dereferenced
      for(int i = 0; i<x.length; i++){
                        ^
Main.java:10: error: array required, but int found
        System.out.printf("%s %d: %d\n", "Case", x, x[i]);
                                                     ^
2 errors
Language: Java

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



Compiler output:
Main.java:8: error: incompatible types: int cannot be converted to int[]
      x = stdln.nextInt();
                       ^
1 error
Language: Java

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



Compiler output:
Main.java:7: error: incompatible types: int cannot be converted to int[]
      int x[] = stdln.nextInt();
                             ^
1 error
Language: Java

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



Compiler output:
Main.java:7: error: cannot find symbol
      x = stdln.nextInt();
      ^
  symbol:   variable x
  location: class Main
Main.java:8: error: cannot find symbol
      for(int i = 0; i < x.length ; i++){
                         ^
  symbol:   variable x
  location: class Main
Main.java:9: error: cannot find symbol
        System.out.printf("%s %d: %d\n", "Case", x, x[i]);
                                                 ^
  symbol:   variable x
  location: class Main
Main.java:9: error: cannot find symbol
        System.out.printf("%s %d: %d\n", "Case", x, x[i]);
                                                    ^
  symbol:   variable x
  location: class Main
4 errors
Language: Java

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



Compiler output:
Main.java:9: error: int cannot be dereferenced
      for(int i = 0; i < x.length ; i++){
                          ^
Main.java:10: error: array required, but int found
        System.out.printf("%s %d: %d\n", "Case", x, x[i]);
                                                     ^
2 errors
Language: Java

import java.util.Scanner;
class Main
 {
   public static void main(String[] args)
      {
      Scanner stdln = new Scanner(System.in);
      int x;
      x = stdln.nextInt();
      while(boolen b = true)
        System.out.printf("%s %d: %d\n", "Case", x, x[i]);
      break;
 }
}



Compiler output:
Main.java:9: error: ')' expected
      while(boolen b = true)
                  ^
Main.java:9: error: ';' expected
      while(boolen b = true)
                           ^
2 errors
Language: Java

import java.util.Scanner;
class Main
 {
   public static void main(String[] args)
      {
      Scanner stdln = new Scanner(System.in);
      int x;
      
      x = stdln.nextInt();
      while(boolean b = true)
        System.out.printf("%s %d: %d\n", "Case", x, x[i]);
      break;
 }
}



Compiler output:
Main.java:10: error: '.class' expected
      while(boolean b = true)
                    ^
Main.java:10: error: ';' expected
      while(boolean b = true)
                            ^
2 errors
Language: Java

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



Compiler output:
Main.java:10: error: incompatible types: int cannot be converted to boolean
      while(b = 0){
                ^
Main.java:11: error: cannot find symbol
        System.out.printf("%s %d: %d\n", "Case", x, x[i]);
                                                      ^
  symbol:   variable i
  location: class Main
Main.java:11: error: array required, but int found
        System.out.printf("%s %d: %d\n", "Case", x, x[i]);
                                                     ^
3 errors
Language: Java

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



Compiler output:
Main.java:10: error: cannot find symbol
      while(i = 0){
            ^
  symbol:   variable i
  location: class Main
Main.java:11: error: cannot find symbol
        System.out.printf("%s %d: %d\n", "Case", x, x[i]);
                                                      ^
  symbol:   variable i
  location: class Main
Main.java:11: error: array required, but int found
        System.out.printf("%s %d: %d\n", "Case", x, x[i]);
                                                     ^
3 errors
Language: Java

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



Compiler output:
Main.java:10: error: incompatible types: int cannot be converted to boolean
      while(i = 0){
              ^
Main.java:11: error: array required, but int found
        System.out.printf("%s %d: %d\n", "Case", x, x[i]);
                                                     ^
2 errors
Language: Java

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



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

import java.util.Scanner;
class Main
 {
   public static void main(String[] args)
      {
      Scanner stdln = new Scanner(System.in);
      int x;
      boolean b = true;
      x = stdln.nextInt();
      while(b = true){
        System.out.printf("%s %d: %d\n", "Case", x.length, x.l);
      break;
      }
 }
}



Compiler output:
Main.java:11: error: int cannot be dereferenced
        System.out.printf("%s %d: %d\n", "Case", x.length, x.l);
                                                  ^
Main.java:11: error: int cannot be dereferenced
        System.out.printf("%s %d: %d\n", "Case", x.length, x.l);
                                                            ^
2 errors
Language: Java

import java.util.Scanner;
class Main
 {
   public static void main(String[] args)
      {
      Scanner stdln = new Scanner(System.in);
      int x;
      boolean b = true;
      x = stdln.nextInt();
      while(b = true){
        System.out.printf("%s %d: %d\n", "Case", x.length, x);
      break;
      }
 }
}



Compiler output:
Main.java:11: error: int cannot be dereferenced
        System.out.printf("%s %d: %d\n", "Case", x.length, x);
                                                  ^
1 error
Language: Java

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



Compiler output:
Main.java:11: error: illegal character: '\u201c'
        System.out.printf(?Case%d: %d\n", i++, x);
                          ^
Main.java:11: error: not a statement
        System.out.printf(?Case%d: %d\n", i++, x);
                               ^
Main.java:11: error: ';' expected
        System.out.printf(?Case%d: %d\n", i++, x);
                                 ^
Main.java:11: error: illegal character: '\'
        System.out.printf(?Case%d: %d\n", i++, x);
                                     ^
Main.java:11: error: not a statement
        System.out.printf(?Case%d: %d\n", i++, x);
                                    ^
Main.java:11: error: unclosed string literal
        System.out.printf(?Case%d: %d\n", i++, x);
                                       ^
Main.java:11: error: not a statement
        System.out.printf(?Case%d: %d\n", i++, x);
                                      ^
7 errors
Language: Java

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

Compiler output:
Main.java:2: error: cannot find symbol
	public static void main(String[] args) throws IOException
	                                              ^
  symbol:   class IOException
  location: class Main
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
Main.java:7: error: cannot find symbol
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		                                           ^
  symbol:   class InputStreamReader
  location: class Main
4 errors
Language: Java

import java.util.Scanner;


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

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

class Main{
	public static void main(String[] args)throws java.io.IOException {
		BufferedReader input = new BufferedReader(new InputStreamReader(System.in));
		
		ArrayList<Integer> x = new ArrayList<Integer>(100);
		int i = 0;
		while(true){
			String tmp = input.readLine();
			int num = Integer.parseInt(tmp);
			x.add(num);
			i++;
			if(num == 0) break;
		}
		
		for(int j = 1;j<i;j++){
			System.out.println("case "+j+": "+x.get(j-1));
		}
		
	}
}

Compiler output:
Main.java:3: error: cannot find symbol
		BufferedReader input = new BufferedReader(new InputStreamReader(System.in));
		^
  symbol:   class BufferedReader
  location: class Main
Main.java:3: error: cannot find symbol
		BufferedReader input = new BufferedReader(new InputStreamReader(System.in));
		                           ^
  symbol:   class BufferedReader
  location: class Main
Main.java:3: error: cannot find symbol
		BufferedReader input = new BufferedReader(new InputStreamReader(System.in));
		                                              ^
  symbol:   class InputStreamReader
  location: class Main
Main.java:5: error: cannot find symbol
		ArrayList<Integer> x = new ArrayList<Integer>(100);
		^
  symbol:   class ArrayList
  location: class Main
Main.java:5: error: cannot find symbol
		ArrayList<Integer> x = new ArrayList<Integer>(100);
		                           ^
  symbol:   class ArrayList
  location: class Main
5 errors
Language: Java

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

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

import java.util.Scanner;

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

	}
}

Compiler output:
Main.java:21: error: cannot find symbol
		MAin run =new Main();
		^
  symbol:   class MAin
  location: class Main
1 error
Language: Java

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

Compiler output:
Main.java:10: error: variable i is already defined in method main(String[])
			int i=s.nextInt();
			    ^
1 error
Language: Java

public class Main {

    private static final String LINE_SEPARATOR = System.getProperty("line.separator");

    public static void main(String[] args) {
        System.out.println(process(readAll(System.in)));
    }

    protected static String process(String data) {
        final String[] split = data.split("\\n");

        int i = 1;
        StringBuilder sb = new StringBuilder();
        for (String s : split) {
            if ("0".equals(s)) {
                break;
            }
            sb.append("Case ").append(i++).append(": ").append(s).append(LINE_SEPARATOR);
        }

        return sb.toString();
    }

    protected static String readAll(InputStream is) {
        InputStreamReader r = null;
        BufferedReader br = null;

        try {
            r = new InputStreamReader(is);
            br = new BufferedReader(r);
            StringBuilder sb = new StringBuilder();
            String s;

            while ((s = br.readLine()) != null) {
                sb.append(s).append('\n');
            }

            return sb.toString();
        } catch (IOException e) {
            throw new RuntimeException(e);
        } finally {
            if (br != null) {
                try {
                    br.close();
                } catch (IOException e) {
                }
            }
            if (r != null) {
                try {
                    r.close();
                } catch (IOException e) {
                }
            }
        }
    }
}

Compiler output:
Main.java:24: error: cannot find symbol
    protected static String readAll(InputStream is) {
                                    ^
  symbol:   class InputStream
  location: class Main
Main.java:25: error: cannot find symbol
        InputStreamReader r = null;
        ^
  symbol:   class InputStreamReader
  location: class Main
Main.java:26: error: cannot find symbol
        BufferedReader br = null;
        ^
  symbol:   class BufferedReader
  location: class Main
Main.java:29: error: cannot find symbol
            r = new InputStreamReader(is);
                    ^
  symbol:   class InputStreamReader
  location: class Main
Main.java:30: error: cannot find symbol
            br = new BufferedReader(r);
                     ^
  symbol:   class BufferedReader
  location: class Main
Main.java:39: error: cannot find symbol
        } catch (IOException e) {
                 ^
  symbol:   class IOException
  location: class Main
Main.java:45: error: cannot find symbol
                } catch (IOException e) {
                         ^
  symbol:   class IOException
  location: class Main
Main.java:51: error: cannot find symbol
                } catch (IOException e) {
                         ^
  symbol:   class IOException
  location: class Main
8 errors
Language: Java

import java.util.*;

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

		for(int i = 0; nums != 0 ; i++) {
			int nums = scan.nextInt();
			System.out.println("Case " + i+1 + ": " + nums);
		}
 }
}

Compiler output:
Main.java:7: error: cannot find symbol
		for(int i = 0; nums != 0 ; i++) {
		               ^
  symbol:   variable nums
  location: class Main
1 error
Language: Java

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

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

public class Main {

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

		List<Integer> l = new ArrayList<>();
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		while (true) {
			String inputNum = br.readLine();
			if (inputNum.equals("0")) {
				break;
			}

			l.add(Integer.parseInt(inputNum));
		}

		for (Integer num : l) {
			System.out.println(num);
		}


	}

}

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

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

		List<Integer> l = new ArrayList<>();
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		while (true) {
			String inputNum = br.readLine();
			if (inputNum.equals("0")) {
				break;
			}

			l.add(Integer.parseInt(inputNum));
		}

		for (int i = 1; i <= l.size(); i++) {

			System.out.println("Case " + i + ": " + l.get(i-1));
		}


	}

Compiler output:
Main.java:1: error: unnamed classes are a preview feature and are disabled by default.
	public static void main(String[] args) throws IOException{
	              ^
  (use --enable-preview to enable unnamed classes)
1 error
Language: Java

public class Main {

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

		List<Integer> l = new ArrayList<>();
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		while (true) {
			String inputNum = br.readLine();
			if (inputNum.equals("0")) {
				break;
			}

			l.add(Integer.parseInt(inputNum));
		}

		for (int i = 1; i <= l.size(); i++) {

			System.out.println("Case " + i + ": " + l.get(i-1));
		}


	}

}

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

public class Main {

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

		ArrayList<Integer> l = new ArrayList<>();
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		while (true) {
			String inputNum = br.readLine();
			if (inputNum.equals("0")) {
				break;
			}

			l.add(Integer.parseInt(inputNum));
		}

		for (int i = 1; i <= l.size(); i++) {

			System.out.println("Case " + i + ": " + l.get(i-1));
		}


	}

}

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

public class Main {

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

		ArrayList<Integer> l = new ArrayList<Integer>();
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		while (true) {
			String inputNum = br.readLine();
			if (inputNum.equals("0")) {
				break;
			}

			l.add(Integer.parseInt(inputNum));
		}

		for (int i = 1; i <= l.size(); i++) {

			System.out.println("Case " + i + ": " + l.get(i-1));
		}


	}

}

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

import java.io.*;
class Main{
    public static void main(String args[]) throws IOException{
	int j=0,x=0,l=1;
	int[] arry = new int[10000];
	for(;;)
	{
	    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
	    String str = br.readLine();
	    j=Integer.parseInt(str);
	    if(j==0)break;
	    arry[l]=j;
	    l++;
	}
	for(int i=1;i<l;i++){
	    x=arry[i];
	    System.out.println("Case "+ i +": "+x);
	}
      return 0;
    }
}

Compiler output:
Main.java:19: error: incompatible types: unexpected return value
      return 0;
             ^
1 error
Language: Java

import java.io.*;
class Main{
    public static void main(String args[]) throws IOException{
	int j=0,x=0,l=1;
	int[] arry = new int[1000];
	for(;;)
	{
	    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
	    String str = br.readLine();
	    j=Integer.parseInt(str);
	    if(j==0)break;
	    arry[l]=j;
	    l++;
	}
	for(int i=1;i<l;i++){
	    x=arry[i];
	    System.out.println("Case "+ i +": "+x);
	}
	return 0;
    }
}

Compiler output:
Main.java:19: error: incompatible types: unexpected return value
	return 0;
	       ^
1 error
Language: Java

import java.io.*;
class Main{
    public static void main(String args[]) throws IOException{
	int j=0,x=0;
	ArrayList<Integer> list=new ArrayList<Integer>();

	for(;;)
	{
	    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
	    String str = br.readLine();
	    j=Integer.parseInt(str);
	    if(j==0)break;
	    list.push(j);
	}
	for(int i=0;i<list.size();i++){
	    int x=list.get(i);
            System.out.println("Case "+ (i+1) +": "+x);
	}
    }
}

Compiler output:
Main.java:5: error: cannot find symbol
	ArrayList<Integer> list=new ArrayList<Integer>();
	^
  symbol:   class ArrayList
  location: class Main
Main.java:5: error: cannot find symbol
	ArrayList<Integer> list=new ArrayList<Integer>();
	                            ^
  symbol:   class ArrayList
  location: class Main
Main.java:16: error: variable x is already defined in method main(String[])
	    int x=list.get(i);
	        ^
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));
        String str = str.readLine();
    while(str != null){
        str = str.readLine();}

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

Compiler output:
Main.java:10: error: ';' expected
        String[] str_div = str.split("\n")
                                          ^
Main.java:13: error: ';' expected
        System.out.println("Case " + i + "; " + str_div[i])}                
                                                           ^
2 errors
Language: Java

import java.io.*;

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

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

Compiler output:
Main.java:10: error: ';' expected
        String[ ] str_div = str.split("\n")
                                           ^
Main.java:13: error: ';' expected
        System.out.println("Case " + i + "; " + str_div[i])}                
                                                           ^
2 errors
Language: Java

import java.io.*;

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

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

Compiler output:
Main.java:13: error: ';' expected
        System.out.println("Case " + i + "; " + str_div[i])}                
                                                           ^
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 str = str.readLine();
    while(str != null)
        str = str.readLine();

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

Compiler output:
Main.java:13: error: ';' expected
        System.out.println("Case " + i + "; " + str_div[i])} ;               
                                                           ^
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 str = str.readLine();
    while(str != null)
        str = str.readLine();

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

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