public class Solution {
    public static void main(String[] args) throws Exception {
        //tutaj wpisz swój kod
        BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));

        String rok = reader.readLine();
        int nRok = Integer.parseInt(rok);

        if((nRok % 400 == 0) || (nRok % 4 == 0)) {
            int x = 366;
            System.out.println("Liczba dni w roku: " + x);
        } else if(nRok % 100 == 0) {
            int x = 365;
            System.out.println("Liczba dni w roku: " + x);
        }
    }
}
Can you tell me where is error in my code , because I don't found them.