Все работает, а Валидатор ругается. В чем проблема?
package com.javarush.task.task04.task0425;
import java.io.BufferedReader;
import java.io.InputStreamReader;
/*
Цель установлена!
*/
public class Solution {
public static void main(String[] args) throws Exception {
//напишите тут ваш код
BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
int a = Integer.parseInt(reader.readLine()), b = Integer.parseInt(reader.readLine());
int[] cord = {0,0};
if (a > 0) {
cord[0] = 1;
}
if (b > 0) {
cord[1] = 1;
}
if (cord[0] == 1 && cord[1] == 1) {
System.out.println("1");
}
if (cord[0] == 1 && cord[1] == 0) {
System.out.println("2");
}
if (cord[0] == 0 && cord[1] == 0) {
System.out.println("3");
}
if (cord[0] == 0 && cord[1] == 1) {
System.out.println("4");
}
}
}