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 br = new BufferedReader(new InputStreamReader(in.txt));
??????int count = 0;
??????while (true) {
?????????count++;
?????????int input = Integer.parseInt(br.readLine());
?????????if (input == 0) {
????????????break;
?????????} else {
????????????System.out.println("case " + count + ": " + input);
?????????}
??????}
??????br.close();
???}
}

Compiler output:
Main.java:6: error: illegal start of type
???public static void main(String[] args) throws IOException {
^
Main.java:7: error: illegal start of expression
??????BufferedReader br = new BufferedReader(new InputStreamReader(in.txt));
^
Main.java:7: error: illegal start of expression
??????BufferedReader br = new BufferedReader(new InputStreamReader(in.txt));
 ^
Main.java:7: error: illegal start of expression
??????BufferedReader br = new BufferedReader(new InputStreamReader(in.txt));
  ^
Main.java:7: error: illegal start of expression
??????BufferedReader br = new BufferedReader(new InputStreamReader(in.txt));
   ^
Main.java:7: error: illegal start of expression
??????BufferedReader br = new BufferedReader(new InputStreamReader(in.txt));
    ^
Main.java:7: error: illegal start of expression
??????BufferedReader br = new BufferedReader(new InputStreamReader(in.txt));
     ^
Main.java:7: error: : expected
??????BufferedReader br = new BufferedReader(new InputStreamReader(in.txt));
                    ^
Main.java:7: error: : expected
??????BufferedReader br = new BufferedReader(new InputStreamReader(in.txt));
                                                                           ^
Main.java:8: error: illegal start of expression
??????int count = 0;
^
Main.java:8: error: illegal start of expression
??????int count = 0;
 ^
Main.java:8: error: illegal start of expression
??????int count = 0;
  ^
Main.java:8: error: illegal start of expression
??????int count = 0;
   ^
Main.java:8: error: illegal start of expression
??????int count = 0;
    ^
Main.java:8: error: illegal start of expression
??????int count = 0;
     ^
Main.java:8: error: '.class' expected
??????int count = 0;
          ^
Main.java:8: error: : expected
??????int count = 0;
                   ^
Main.java:9: error: illegal start of expression
??????while (true) {
^
Main.java:9: error: illegal start of expression
??????while (true) {
 ^
Main.java:9: error: illegal start of expression
??????while (true) {
  ^
Main.java:9: error: illegal start of expression
??????while (true) {
   ^
Main.java:9: error: illegal start of expression
??????while (true) {
    ^
Main.java:9: error: illegal start of expression
??????while (true) {
     ^
Main.java:9: error: illegal start of expression
??????while (true) {
      ^
Main.java:10: error: illegal start of expression
?????????count++;
^
Main.java:10: error: illegal start of expression
?????????count++;
 ^
Main.java:10: error: illegal start of expression
?????????count++;
  ^
Main.java:10: error: illegal start of expression
?????????count++;
   ^
Main.java:10: error: illegal start of expression
?????????count++;
    ^
Main.java:10: error: illegal start of expression
?????????count++;
     ^
Main.java:10: error: illegal start of expression
?????????count++;
      ^
Main.java:10: error: illegal start of expression
?????????count++;
       ^
Main.java:10: error: illegal start of expression
?????????count++;
        ^
Main.java:10: error: : expected
?????????count++;
                ^
Main.java:11: error: illegal start of expression
?????????int input = Integer.parseInt(br.readLine());
^
Main.java:11: error: illegal start of expression
?????????int input = Integer.parseInt(br.readLine());
 ^
Main.java:11: error: illegal start of expression
?????????int input = Integer.parseInt(br.readLine());
  ^
Main.java:11: error: illegal start of expression
?????????int input = Integer.parseInt(br.readLine());
   ^
Main.java:11: error: illegal start of expression
?????????int input = Integer.parseInt(br.readLine());
    ^
Main.java:11: error: illegal start of expression
?????????int input = Integer.parseInt(br.readLine());
     ^
Main.java:11: error: illegal start of expression
?????????int input = Integer.parseInt(br.readLine());
      ^
Main.java:11: error: illegal start of expression
?????????int input = Integer.parseInt(br.readLine());
       ^
Main.java:11: error: illegal start of expression
?????????int input = Integer.parseInt(br.readLine());
        ^
Main.java:11: error: '.class' expected
?????????int input = Integer.parseInt(br.readLine());
             ^
Main.java:11: error: : expected
?????????int input = Integer.parseInt(br.readLine());
                                                    ^
Main.java:12: error: illegal start of expression
?????????if (input == 0) {
^
Main.java:12: error: illegal start of expression
?????????if (input == 0) {
 ^
Main.java:12: error: illegal start of expression
?????????if (input == 0) {
  ^
Main.java:12: error: illegal start of expression
?????????if (input == 0) {
   ^
Main.java:12: error: illegal start of expression
?????????if (input == 0) {
    ^
Main.java:12: error: illegal start of expression
?????????if (input == 0) {
     ^
Main.java:12: error: illegal start of expression
?????????if (input == 0) {
      ^
Main.java:12: error: illegal start of expression
?????????if (input == 0) {
       ^
Main.java:12: error: illegal start of expression
?????????if (input == 0) {
        ^
Main.java:12: error: illegal start of expression
?????????if (input == 0) {
         ^
Main.java:13: error: illegal start of expression
????????????break;
^
Main.java:13: error: illegal start of expression
????????????break;
 ^
Main.java:13: error: illegal start of expression
????????????break;
  ^
Main.java:13: error: illegal start of expression
????????????break;
   ^
Main.java:13: error: illegal start of expression
????????????break;
    ^
Main.java:13: error: illegal start of expression
????????????break;
     ^
Main.java:13: error: illegal start of expression
????????????break;
      ^
Main.java:13: error: illegal start of expression
????????????break;
       ^
Main.java:13: error: illegal start of expression
????????????break;
        ^
Main.java:13: error: illegal start of expression
????????????break;
         ^
Main.java:13: error: illegal start of expression
????????????break;
          ^
Main.java:13: error: illegal start of expression
????????????break;
           ^
Main.java:13: error: illegal start of expression
????????????break;
            ^
Main.java:14: error: illegal start of expression
?????????} else {
^
Main.java:14: error: illegal start of expression
?????????} else {
 ^
Main.java:14: error: illegal start of expression
?????????} else {
  ^
Main.java:14: error: illegal start of expression
?????????} else {
   ^
Main.java:14: error: illegal start of expression
?????????} else {
    ^
Main.java:14: error: illegal start of expression
?????????} else {
     ^
Main.java:14: error: illegal start of expression
?????????} else {
      ^
Main.java:14: error: illegal start of expression
?????????} else {
       ^
Main.java:14: error: illegal start of expression
?????????} else {
        ^
Main.java:14: error: illegal start of expression
?????????} else {
         ^
Main.java:15: error: illegal start of expression
????????????System.out.println("case " + count + ": " + input);
^
Main.java:15: error: illegal start of expression
????????????System.out.println("case " + count + ": " + input);
 ^
Main.java:15: error: illegal start of expression
????????????System.out.println("case " + count + ": " + input);
  ^
Main.java:15: error: illegal start of expression
????????????System.out.println("case " + count + ": " + input);
   ^
Main.java:15: error: illegal start of expression
????????????System.out.println("case " + count + ": " + input);
    ^
Main.java:15: error: illegal start of expression
????????????System.out.println("case " + count + ": " + input);
     ^
Main.java:15: error: illegal start of expression
????????????System.out.println("case " + count + ": " + input);
      ^
Main.java:15: error: illegal start of expression
????????????System.out.println("case " + count + ": " + input);
       ^
Main.java:15: error: illegal start of expression
????????????System.out.println("case " + count + ": " + input);
        ^
Main.java:15: error: illegal start of expression
????????????System.out.println("case " + count + ": " + input);
         ^
Main.java:15: error: illegal start of expression
????????????System.out.println("case " + count + ": " + input);
          ^
Main.java:15: error: illegal start of expression
????????????System.out.println("case " + count + ": " + input);
           ^
Main.java:15: error: : expected
????????????System.out.println("case " + count + ": " + input);
                                                              ^
Main.java:16: error: illegal start of expression
?????????}
^
Main.java:16: error: illegal start of expression
?????????}
 ^
Main.java:16: error: illegal start of expression
?????????}
  ^
Main.java:16: error: illegal start of expression
?????????}
   ^
Main.java:16: error: illegal start of expression
?????????}
    ^
Main.java:16: error: illegal start of expression
?????????}
     ^
Main.java:16: error: illegal start of expression
?????????}
      ^
Main.java:16: error: illegal start of expression
?????????}
       ^
Main.java:16: error: illegal start of expression
?????????}
        ^
100 errors
only showing the first 100 errors, of 119 total; use -Xmaxerrs if you would like to see more