Language: Java

import java.util.*;
public class Main {
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        // 整数の入力
        int n = sc.nextInt();
        a=n%10;
        b=n%100/10;
        c=n%1000/100;
        a=n>a*111?999:a*111;
        b=n>b*111?999:b*111;
        c=n>c*111?999:c*111;
        System.out.println((a<c?a:c)<b?(a<c?a:c):b);
        // 出力
        
    }
}


Compiler output:
Main.java:7: error: cannot find symbol
        a=n%10;
        ^
  symbol:   variable a
  location: class Main
Main.java:8: error: cannot find symbol
        b=n%100/10;
        ^
  symbol:   variable b
  location: class Main
Main.java:9: error: cannot find symbol
        c=n%1000/100;
        ^
  symbol:   variable c
  location: class Main
Main.java:10: error: cannot find symbol
        a=n>a*111?999:a*111;
        ^
  symbol:   variable a
  location: class Main
Main.java:10: error: cannot find symbol
        a=n>a*111?999:a*111;
            ^
  symbol:   variable a
  location: class Main
Main.java:10: error: cannot find symbol
        a=n>a*111?999:a*111;
                      ^
  symbol:   variable a
  location: class Main
Main.java:11: error: cannot find symbol
        b=n>b*111?999:b*111;
        ^
  symbol:   variable b
  location: class Main
Main.java:11: error: cannot find symbol
        b=n>b*111?999:b*111;
            ^
  symbol:   variable b
  location: class Main
Main.java:11: error: cannot find symbol
        b=n>b*111?999:b*111;
                      ^
  symbol:   variable b
  location: class Main
Main.java:12: error: cannot find symbol
        c=n>c*111?999:c*111;
        ^
  symbol:   variable c
  location: class Main
Main.java:12: error: cannot find symbol
        c=n>c*111?999:c*111;
            ^
  symbol:   variable c
  location: class Main
Main.java:12: error: cannot find symbol
        c=n>c*111?999:c*111;
                      ^
  symbol:   variable c
  location: class Main
Main.java:13: error: reference to println is ambiguous
        System.out.println((a<c?a:c)<b?(a<c?a:c):b);
                  ^
  both method println(char[]) in PrintStream and method println(String) in PrintStream match
Main.java:13: error: cannot find symbol
        System.out.println((a<c?a:c)<b?(a<c?a:c):b);
                            ^
  symbol:   variable a
  location: class Main
Main.java:13: error: cannot find symbol
        System.out.println((a<c?a:c)<b?(a<c?a:c):b);
                              ^
  symbol:   variable c
  location: class Main
Main.java:13: error: cannot find symbol
        System.out.println((a<c?a:c)<b?(a<c?a:c):b);
                                ^
  symbol:   variable a
  location: class Main
Main.java:13: error: cannot find symbol
        System.out.println((a<c?a:c)<b?(a<c?a:c):b);
                                  ^
  symbol:   variable c
  location: class Main
Main.java:13: error: cannot find symbol
        System.out.println((a<c?a:c)<b?(a<c?a:c):b);
                                     ^
  symbol:   variable b
  location: class Main
Main.java:13: error: cannot find symbol
        System.out.println((a<c?a:c)<b?(a<c?a:c):b);
                                        ^
  symbol:   variable a
  location: class Main
Main.java:13: error: cannot find symbol
        System.out.println((a<c?a:c)<b?(a<c?a:c):b);
                                          ^
  symbol:   variable c
  location: class Main
Main.java:13: error: cannot find symbol
        System.out.println((a<c?a:c)<b?(a<c?a:c):b);
                                            ^
  symbol:   variable a
  location: class Main
Main.java:13: error: cannot find symbol
        System.out.println((a<c?a:c)<b?(a<c?a:c):b);
                                              ^
  symbol:   variable c
  location: class Main
Main.java:13: error: cannot find symbol
        System.out.println((a<c?a:c)<b?(a<c?a:c):b);
                                                 ^
  symbol:   variable b
  location: class Main
23 errors