Language: Java

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

        List<String> inputList = readInputList();

        byte maxDayFlag = 0;

        int[] arr = readYearAndMonth(inputList.get(0));

        Calendar cal = convertCalender(arr);
        if (cal.getActualMaximum(Calendar.DAY_OF_MONTH) == arr[ARR_INDEX_DAY])
            maxDayFlag = 1;

        System.out.println(maxDayFlag);
  }

    private List<String> readInputList() throws IOException {

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

            List<String> inputList = new ArrayList<>();

            for (int i = 0; i < MAX_INPUT_LIMIT_COUNT; i++) {
                inputList.add(br.readLine());
            }

            return inputList;
    }

    private int[] readYearAndMonth(String inputStr) {
        int[] yearAndMonthArr = new int[2];
        String[] strArr = inputStr.split("\\s");

        yearAndMonthArr[ARR_INDEX_MONTH] = Integer.valueOf(strArr[ARR_INDEX_MONTH]);
        yearAndMonthArr[ARR_INDEX_DAY] = Integer.valueOf(strArr[ARR_INDEX_DAY]);

        return yearAndMonthArr;
    }

    private Calendar convertCalender(int[] yearAndMonthArr) {
        return new Calendar.Builder()
                .setLenient(true)
                .set(Calendar.YEAR, YEAR)
                .set(Calendar.MONTH, yearAndMonthArr[ARR_INDEX_MONTH] - 1)
                .set(Calendar.DAY_OF_MONTH, yearAndMonthArr[ARR_INDEX_DAY])
                .build();
    }

}

Compiler output:
Main.java:18: error: cannot find symbol
    private List<String> readInputList() throws IOException {
            ^
  symbol:   class List
  location: class Main
Main.java:18: error: cannot find symbol
    private List<String> readInputList() throws IOException {
                                                ^
  symbol:   class IOException
  location: class Main
Main.java:42: error: cannot find symbol
    private Calendar convertCalender(int[] yearAndMonthArr) {
            ^
  symbol:   class Calendar
  location: class Main
Main.java:5: error: cannot find symbol
        List<String> inputList = readInputList();
        ^
  symbol:   class List
  location: class Main
Main.java:5: error: non-static method readInputList() cannot be referenced from a static context
        List<String> inputList = readInputList();
                                 ^
Main.java:11: error: cannot find symbol
        Calendar cal = convertCalender(arr);
        ^
  symbol:   class Calendar
  location: class Main
Main.java:11: error: non-static method convertCalender(int[]) cannot be referenced from a static context
        Calendar cal = convertCalender(arr);
                       ^
Main.java:12: error: cannot find symbol
        if (cal.getActualMaximum(Calendar.DAY_OF_MONTH) == arr[ARR_INDEX_DAY])
                                 ^
  symbol:   variable Calendar
  location: class Main
Main.java:12: error: cannot find symbol
        if (cal.getActualMaximum(Calendar.DAY_OF_MONTH) == arr[ARR_INDEX_DAY])
                                                               ^
  symbol:   variable ARR_INDEX_DAY
  location: class Main
Main.java:20: error: cannot find symbol
            InputStreamReader isr = new InputStreamReader(System.in);
            ^
  symbol:   class InputStreamReader
  location: class Main
Main.java:20: error: cannot find symbol
            InputStreamReader isr = new InputStreamReader(System.in);
                                        ^
  symbol:   class InputStreamReader
  location: class Main
Main.java:21: error: cannot find symbol
            BufferedReader br = new BufferedReader(isr);
            ^
  symbol:   class BufferedReader
  location: class Main
Main.java:21: error: cannot find symbol
            BufferedReader br = new BufferedReader(isr);
                                    ^
  symbol:   class BufferedReader
  location: class Main
Main.java:23: error: cannot find symbol
            List<String> inputList = new ArrayList<>();
            ^
  symbol:   class List
  location: class Main
Main.java:23: error: cannot find symbol
            List<String> inputList = new ArrayList<>();
                                         ^
  symbol:   class ArrayList
  location: class Main
Main.java:25: error: cannot find symbol
            for (int i = 0; i < MAX_INPUT_LIMIT_COUNT; i++) {
                                ^
  symbol:   variable MAX_INPUT_LIMIT_COUNT
  location: class Main
Main.java:36: error: cannot find symbol
        yearAndMonthArr[ARR_INDEX_MONTH] = Integer.valueOf(strArr[ARR_INDEX_MONTH]);
                        ^
  symbol:   variable ARR_INDEX_MONTH
  location: class Main
Main.java:36: error: cannot find symbol
        yearAndMonthArr[ARR_INDEX_MONTH] = Integer.valueOf(strArr[ARR_INDEX_MONTH]);
                                                                  ^
  symbol:   variable ARR_INDEX_MONTH
  location: class Main
Main.java:37: error: cannot find symbol
        yearAndMonthArr[ARR_INDEX_DAY] = Integer.valueOf(strArr[ARR_INDEX_DAY]);
                        ^
  symbol:   variable ARR_INDEX_DAY
  location: class Main
Main.java:37: error: cannot find symbol
        yearAndMonthArr[ARR_INDEX_DAY] = Integer.valueOf(strArr[ARR_INDEX_DAY]);
                                                                ^
  symbol:   variable ARR_INDEX_DAY
  location: class Main
Main.java:47: error: cannot find symbol
                .set(Calendar.DAY_OF_MONTH, yearAndMonthArr[ARR_INDEX_DAY])
                     ^
  symbol:   variable Calendar
  location: class Main
Main.java:47: error: cannot find symbol
                .set(Calendar.DAY_OF_MONTH, yearAndMonthArr[ARR_INDEX_DAY])
                                                            ^
  symbol:   variable ARR_INDEX_DAY
  location: class Main
Main.java:46: error: cannot find symbol
                .set(Calendar.MONTH, yearAndMonthArr[ARR_INDEX_MONTH] - 1)
                     ^
  symbol:   variable Calendar
  location: class Main
Main.java:46: error: cannot find symbol
                .set(Calendar.MONTH, yearAndMonthArr[ARR_INDEX_MONTH] - 1)
                                                     ^
  symbol:   variable ARR_INDEX_MONTH
  location: class Main
Main.java:45: error: cannot find symbol
                .set(Calendar.YEAR, YEAR)
                     ^
  symbol:   variable Calendar
  location: class Main
Main.java:45: error: cannot find symbol
                .set(Calendar.YEAR, YEAR)
                                    ^
  symbol:   variable YEAR
  location: class Main
Main.java:43: error: package Calendar does not exist
        return new Calendar.Builder()
                           ^
27 errors