Language: Java

public class Polygon {
	static BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
	public static void main(String[] args) {
	    try {
            int numberOfSides = Integer.parseInt(br.readLine().trim());
            if (3 <= numberOfSides && numberOfSides <= 10) {
            	List<String> sidesStr = Arrays.asList(br.readLine().split(" ")).stream().collect(Collectors.toList());
            	List<Integer> sides = sidesStr.stream().map(s -> Integer.parseInt(s)).collect(Collectors.toList());
            	if (sides.size() <= numberOfSides && 3 <= sides.iterator().next() && sides.iterator().next() <= 100) {
                    int max = sides.stream().mapToInt(v -> v).max().getAsInt();
                    int sum = sides.stream().mapToInt(v -> v).filter(v -> v != max).sum();
                    if(max < sum) {
                    	System.out.println("Yes");
                    } else {
                    	System.out.println("No");
                    }
            	} else { System.exit(1); }
            }

		} catch (IOException e) {
			e.printStackTrace();
		}
	}
}


Compiler output:
Main.java:1: error: class Polygon is public, should be declared in a file named Polygon.java
public class Polygon {
       ^
Main.java:2: error: cannot find symbol
	static BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
	       ^
  symbol:   class BufferedReader
  location: class Polygon
Main.java:2: error: cannot find symbol
	static BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
	                               ^
  symbol:   class BufferedReader
  location: class Polygon
Main.java:2: error: cannot find symbol
	static BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
	                                                  ^
  symbol:   class InputStreamReader
  location: class Polygon
Main.java:7: error: cannot find symbol
            	List<String> sidesStr = Arrays.asList(br.readLine().split(" ")).stream().collect(Collectors.toList());
            	^
  symbol:   class List
  location: class Polygon
Main.java:7: error: cannot find symbol
            	List<String> sidesStr = Arrays.asList(br.readLine().split(" ")).stream().collect(Collectors.toList());
            	                        ^
  symbol:   variable Arrays
  location: class Polygon
Main.java:7: error: cannot find symbol
            	List<String> sidesStr = Arrays.asList(br.readLine().split(" ")).stream().collect(Collectors.toList());
            	                                                                                 ^
  symbol:   variable Collectors
  location: class Polygon
Main.java:8: error: cannot find symbol
            	List<Integer> sides = sidesStr.stream().map(s -> Integer.parseInt(s)).collect(Collectors.toList());
            	^
  symbol:   class List
  location: class Polygon
Main.java:8: error: cannot find symbol
            	List<Integer> sides = sidesStr.stream().map(s -> Integer.parseInt(s)).collect(Collectors.toList());
            	                                                                              ^
  symbol:   variable Collectors
  location: class Polygon
Main.java:20: error: cannot find symbol
		} catch (IOException e) {
		         ^
  symbol:   class IOException
  location: class Polygon
10 errors