Where is error? It shows me good result after compilation.
package pl.codegym.task.task04.task0414;
/*
Liczba dni w roku
*/
import java.io.*;
import java.util.*;
public class Solution {
public static void main(String[] args) throws Exception {
Scanner scanner = new Scanner(System.in);
int rok = scanner.nextInt();
if((rok % 400 == 0) || (rok % 400 !=0 && rok % 100 == 0 && rok % 4 == 0))
{
int x = 366;
System.out.println("Liczba dni w roku: " + x);
}
else
{
int x = 365;
System.out.println("Liczba dni w roku: " + x);
}
}}