Language: Java

public class Main {
	public static void main(String[] args) {
		try (Scanner scanner = new Scanner(System.in)) {
			// 基本情報入力
			int N = scanner.nextInt();
			int T = scanner.nextInt();
			int heikinKion = scanner.nextInt();

			// ループしつつ、平均気温と、計算結果の絶対値差を記録する
			Map<Integer,Double> map = new HashMap<Integer, Double>();
			for (int i = 1; i <= N; i++) {
				map.put(i, Math.abs(heikinKion - (T - scanner.nextInt() * 0.006)));
			}

			// sort
			 List<Entry<Integer, Double>> list_entries = new ArrayList<Entry<Integer, Double>>(map.entrySet());
			Collections.sort(list_entries, new Comparator<Entry<Integer, Double>>(){
				@Override
				public int compare(Entry<Integer, Double> o1, Entry<Integer, Double> o2) {
					return o1.getValue().compareTo(o2.getValue());
				}
			});
			System.out.println(list_entries.get(0).getKey());

		}
	}
}

Compiler output:
Main.java:3: error: cannot find symbol
		try (Scanner scanner = new Scanner(System.in)) {
		     ^
  symbol:   class Scanner
  location: class Main
Main.java:3: error: cannot find symbol
		try (Scanner scanner = new Scanner(System.in)) {
		                           ^
  symbol:   class Scanner
  location: class Main
Main.java:10: error: cannot find symbol
			Map<Integer,Double> map = new HashMap<Integer, Double>();
			^
  symbol:   class Map
  location: class Main
Main.java:10: error: cannot find symbol
			Map<Integer,Double> map = new HashMap<Integer, Double>();
			                              ^
  symbol:   class HashMap
  location: class Main
Main.java:16: error: cannot find symbol
			 List<Entry<Integer, Double>> list_entries = new ArrayList<Entry<Integer, Double>>(map.entrySet());
			 ^
  symbol:   class List
  location: class Main
Main.java:16: error: cannot find symbol
			 List<Entry<Integer, Double>> list_entries = new ArrayList<Entry<Integer, Double>>(map.entrySet());
			      ^
  symbol:   class Entry
  location: class Main
Main.java:16: error: cannot find symbol
			 List<Entry<Integer, Double>> list_entries = new ArrayList<Entry<Integer, Double>>(map.entrySet());
			                                                 ^
  symbol:   class ArrayList
  location: class Main
Main.java:16: error: cannot find symbol
			 List<Entry<Integer, Double>> list_entries = new ArrayList<Entry<Integer, Double>>(map.entrySet());
			                                                           ^
  symbol:   class Entry
  location: class Main
Main.java:17: error: cannot find symbol
			Collections.sort(list_entries, new Comparator<Entry<Integer, Double>>(){
			                                   ^
  symbol:   class Comparator
  location: class Main
Main.java:17: error: cannot find symbol
			Collections.sort(list_entries, new Comparator<Entry<Integer, Double>>(){
			                                              ^
  symbol:   class Entry
  location: class Main
Main.java:19: error: cannot find symbol
				public int compare(Entry<Integer, Double> o1, Entry<Integer, Double> o2) {
				                   ^
  symbol: class Entry
Main.java:19: error: cannot find symbol
				public int compare(Entry<Integer, Double> o1, Entry<Integer, Double> o2) {
				                                              ^
  symbol: class Entry
Main.java:18: error: method does not override or implement a method from a supertype
				@Override
				^
Main.java:17: error: cannot find symbol
			Collections.sort(list_entries, new Comparator<Entry<Integer, Double>>(){
			^
  symbol:   variable Collections
  location: class Main
14 errors