Language: C++

import java.util.Scanner;

class Main{
	public static void main(String[] args) {
		Scanner sc=new Scanner(System.in);
		int N=sc.nextInt();
		float T=(float)(sc.nextInt());
		float A=(float)(sc.nextInt());
		float[] unko=new float[N];
		for(int i=0; i<N; i++) {
			unko[i]=(float)(sc.nextInt());
		}
		double[] sa=new double[N];
		for(int i=0; i<N; i++) {
			sa[i]=Math.abs(T-unko[i]*0.006-A);
		}

		int a=0;
		double min=114514810;

		for(int i=0; i<N; i++) {
			if(min>sa[i]);
			min=sa[i];
			a=i;
		}
		System.out.println(a);
	}
}

Compiler output:
a.cc:1:1: error: 'import' does not name a type
    1 | import java.util.Scanner;
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:4:15: error: expected ':' before 'static'
    4 |         public static void main(String[] args) {
      |               ^~~~~~~
      |               :
a.cc:4:33: error: 'String' has not been declared
    4 |         public static void main(String[] args) {
      |                                 ^~~~~~
a.cc:4:42: error: expected ',' or '...' before 'args'
    4 |         public static void main(String[] args) {
      |                                          ^~~~
a.cc:28:2: error: expected ';' after class definition
   28 | }
      |  ^
      |  ;
a.cc: In static member function 'static void Main::main(int*)':
a.cc:5:17: error: 'Scanner' was not declared in this scope
    5 |                 Scanner sc=new Scanner(System.in);
      |                 ^~~~~~~
a.cc:6:23: error: 'sc' was not declared in this scope
    6 |                 int N=sc.nextInt();
      |                       ^~
a.cc:9:22: error: structured binding declaration cannot have type 'float'
    9 |                 float[] unko=new float[N];
      |                      ^~
a.cc:9:22: note: type must be cv-qualified 'auto' or reference to cv-qualified 'auto'
a.cc:9:22: error: empty structured binding declaration
a.cc:9:25: error: expected initializer before 'unko'
    9 |                 float[] unko=new float[N];
      |                         ^~~~
a.cc:11:25: error: 'unko' was not declared in this scope
   11 |                         unko[i]=(float)(sc.nextInt());
      |                         ^~~~
a.cc:13:23: error: structured binding declaration cannot have type 'double'
   13 |                 double[] sa=new double[N];
      |                       ^~
a.cc:13:23: note: type must be cv-qualified 'auto' or reference to cv-qualified 'auto'
a.cc:13:23: error: empty structured binding declaration
a.cc:13:26: error: expected initializer before 'sa'
   13 |                 double[] sa=new double[N];
      |                          ^~
a.cc:15:25: error: 'sa' was not declared in this scope
   15 |                         sa[i]=Math.abs(T-unko[i]*0.006-A);
      |                         ^~
a.cc:15:31: error: 'Math' was not declared in this scope
   15 |                         sa[i]=Math.abs(T-unko[i]*0.006-A);
      |                               ^~~~
a.cc:15:42: error: 'unko' was not declared in this scope
   15 |                         sa[i]=Math.abs(T-unko[i]*0.006-A);
      |                                          ^~~~
a.cc:22:32: error: 'sa' was not declared in this scope; did you mean 'a'?
   22 |                         if(min>sa[i]);
      |                                ^~
      |                                a
a.cc:23:29: error: 'sa' was not declared in this scope; did you mean 'a'?
   23 |                         min=sa[i];
      |                             ^~
      |                             a
a.cc:26:17: error: 'System' was not declared in this scope
   26 |                 System.out.println(a);
      |                 ^~~~~~