Language: Java

import java.util.Scanner;

class Main {

	public static void main(String[] args) {

		int n, x;
		int i = 0, j = 0, k = 0;
		int count = 0;
		Scanner stdIn = new Scanner(System.in);

		boolean flag = true;
		while (flag) {
			n = stdIn.nextInt();
			x = stdIn.nextInt();

			if (n == 0 && x == 0) {
				flag = false;
				break;
			}

????????????????????????????????????count = 0;
			for (i = 1; i < n; i++) {
				for (j = i + 1; j < n; j++) {
					for (k = x - i - j; k > j; k--) {
//						System.out.print(i + " " + j + " " + k);
						if (x == i + j + k && k <= n) {
//							System.out.println(" count ");
							count++;
						} else {
//							System.out.println();
						}
					}
				}

			}
			System.out.println(count);
		}
		stdIn.close();
	}
}

Compiler output:
Main.java:22: error: illegal start of expression
????????????????????????????????????count = 0;
^
Main.java:22: error: illegal start of expression
????????????????????????????????????count = 0;
 ^
Main.java:22: error: illegal start of expression
????????????????????????????????????count = 0;
  ^
Main.java:22: error: illegal start of expression
????????????????????????????????????count = 0;
   ^
Main.java:22: error: illegal start of expression
????????????????????????????????????count = 0;
    ^
Main.java:22: error: illegal start of expression
????????????????????????????????????count = 0;
     ^
Main.java:22: error: illegal start of expression
????????????????????????????????????count = 0;
      ^
Main.java:22: error: illegal start of expression
????????????????????????????????????count = 0;
       ^
Main.java:22: error: illegal start of expression
????????????????????????????????????count = 0;
        ^
Main.java:22: error: illegal start of expression
????????????????????????????????????count = 0;
         ^
Main.java:22: error: illegal start of expression
????????????????????????????????????count = 0;
          ^
Main.java:22: error: illegal start of expression
????????????????????????????????????count = 0;
           ^
Main.java:22: error: illegal start of expression
????????????????????????????????????count = 0;
            ^
Main.java:22: error: illegal start of expression
????????????????????????????????????count = 0;
             ^
Main.java:22: error: illegal start of expression
????????????????????????????????????count = 0;
              ^
Main.java:22: error: illegal start of expression
????????????????????????????????????count = 0;
               ^
Main.java:22: error: illegal start of expression
????????????????????????????????????count = 0;
                ^
Main.java:22: error: illegal start of expression
????????????????????????????????????count = 0;
                 ^
Main.java:22: error: illegal start of expression
????????????????????????????????????count = 0;
                  ^
Main.java:22: error: illegal start of expression
????????????????????????????????????count = 0;
                   ^
Main.java:22: error: illegal start of expression
????????????????????????????????????count = 0;
                    ^
Main.java:22: error: illegal start of expression
????????????????????????????????????count = 0;
                     ^
Main.java:22: error: illegal start of expression
????????????????????????????????????count = 0;
                      ^
Main.java:22: error: illegal start of expression
????????????????????????????????????count = 0;
                       ^
Main.java:22: error: illegal start of expression
????????????????????????????????????count = 0;
                        ^
Main.java:22: error: illegal start of expression
????????????????????????????????????count = 0;
                         ^
Main.java:22: error: illegal start of expression
????????????????????????????????????count = 0;
                          ^
Main.java:22: error: illegal start of expression
????????????????????????????????????count = 0;
                           ^
Main.java:22: error: illegal start of expression
????????????????????????????????????count = 0;
                            ^
Main.java:22: error: illegal start of expression
????????????????????????????????????count = 0;
                             ^
Main.java:22: error: illegal start of expression
????????????????????????????????????count = 0;
                              ^
Main.java:22: error: illegal start of expression
????????????????????????????????????count = 0;
                               ^
Main.java:22: error: illegal start of expression
????????????????????????????????????count = 0;
                                ^
Main.java:22: error: illegal start of expression
????????????????????????????????????count = 0;
                                 ^
Main.java:22: error: illegal start of expression
????????????????????????????????????count = 0;
                                  ^
Main.java:22: error: illegal start of expression
????????????????????????????????????count = 0;
                                   ^
Main.java:22: error: : expected
????????????????????????????????????count = 0;
                                             ^
37 errors
printing javac parameters to: /w/javac.20260128_043912.args