Language: C++

#include <deque>
#include <algorithm>
#include <iostream>
#include <vector>
using namespace std;

#define INF_LL (int64)1e18
#define INF (int32)1e9
#define REP(i, n) for(int64 i = 0;i < (n);i++)
#define FOR(i, a, b) for(int64 i = (a);i < (b);i++)
#define all(x) x.begin(),x.end()
#define fs first
#define sc second

using int32 = int_fast32_t;
using uint32 = uint_fast32_t;
using int64 = int_fast64_t;
using uint64 = uint_fast64_t;
using PII = pair<int32, int32>;
using PLL = pair<int64, int64>;

const double eps = 1e-10;

template<typename A, typename B>inline void chmin(A &a, B b){if(a > b) a = b;}
template<typename A, typename B>inline void chmax(A &a, B b){if(a < b) a = b;}

int32 N, M, K;
vector<int64> A, B;
string s;

int main(void){
	double T, A;
	cin >> N >> T >> A;
	int32 res = 0;
	double val = INF;
	REP(i, N){  
		double H;
		cin >> H;
		double t = T-0.006*H;
		if(std::abs(A-t) < std::abs(A-val)){
			val = t;
			res = i+1;
		}
	}
	cout << res << endl;
}


Compiler output:
a.cc:15:15: error: 'int_fast32_t' does not name a type
   15 | using int32 = int_fast32_t;
      |               ^~~~~~~~~~~~
a.cc:16:16: error: 'uint_fast32_t' does not name a type
   16 | using uint32 = uint_fast32_t;
      |                ^~~~~~~~~~~~~
a.cc:17:15: error: 'int_fast64_t' does not name a type
   17 | using int64 = int_fast64_t;
      |               ^~~~~~~~~~~~
a.cc:18:16: error: 'uint_fast64_t' does not name a type
   18 | using uint64 = uint_fast64_t;
      |                ^~~~~~~~~~~~~
a.cc:19:18: error: 'int32' was not declared in this scope; did you mean 'int32_t'?
   19 | using PII = pair<int32, int32>;
      |                  ^~~~~
      |                  int32_t
a.cc:19:25: error: 'int32' was not declared in this scope; did you mean 'int32_t'?
   19 | using PII = pair<int32, int32>;
      |                         ^~~~~
      |                         int32_t
a.cc:19:30: error: template argument 1 is invalid
   19 | using PII = pair<int32, int32>;
      |                              ^
a.cc:19:30: error: template argument 2 is invalid
a.cc:20:18: error: 'int64' was not declared in this scope; did you mean 'int64_t'?
   20 | using PLL = pair<int64, int64>;
      |                  ^~~~~
      |                  int64_t
a.cc:20:25: error: 'int64' was not declared in this scope; did you mean 'int64_t'?
   20 | using PLL = pair<int64, int64>;
      |                         ^~~~~
      |                         int64_t
a.cc:20:30: error: template argument 1 is invalid
   20 | using PLL = pair<int64, int64>;
      |                              ^
a.cc:20:30: error: template argument 2 is invalid
a.cc:27:1: error: 'int32' does not name a type; did you mean 'int32_t'?
   27 | int32 N, M, K;
      | ^~~~~
      | int32_t
a.cc:28:8: error: 'int64' was not declared in this scope; did you mean 'int64_t'?
   28 | vector<int64> A, B;
      |        ^~~~~
      |        int64_t
a.cc:28:13: error: template argument 1 is invalid
   28 | vector<int64> A, B;
      |             ^
a.cc:28:13: error: template argument 2 is invalid
a.cc: In function 'int main()':
a.cc:33:16: error: 'N' was not declared in this scope
   33 |         cin >> N >> T >> A;
      |                ^
a.cc:34:9: error: 'int32' was not declared in this scope; did you mean 'int32_t'?
   34 |         int32 res = 0;
      |         ^~~~~
      |         int32_t
a.cc:9:23: error: 'int64' was not declared in this scope; did you mean 'int64_t'?
    9 | #define REP(i, n) for(int64 i = 0;i < (n);i++)
      |                       ^~~~~
a.cc:36:9: note: in expansion of macro 'REP'
   36 |         REP(i, N){
      |         ^~~
a.cc:36:13: error: 'i' was not declared in this scope
   36 |         REP(i, N){
      |             ^
a.cc:9:35: note: in definition of macro 'REP'
    9 | #define REP(i, n) for(int64 i = 0;i < (n);i++)
      |                                   ^
a.cc:42:25: error: 'res' was not declared in this scope
   42 |                         res = i+1;
      |                         ^~~
a.cc:45:17: error: 'res' was not declared in this scope
   45 |         cout << res << endl;
      |                 ^~~