Language: C++

#include<bits/stdc++.h>
using namespace std;
int main()
{
	long long A,B,M;
	long long MINA=1000000000,MINB=1000000000;
	cin>>A>>B>>M;
	long long a[1e5 + 10],b[1e5 + 10],x[1e5 + 10],y[1e5 + 10],c[1e5 + 10];
	for(int i=1;i<=A;i++)
	{
		cin>>a[i];
		if(a[i]<MINA) MINA=a[i];
	} 
	for(int i=1;i<=B;i++)
	{
		cin>>b[i];
		if(b[i]<MINB) MINB=b[i]; 
	} 
	long long MIN=MINA+MINB;
	for(int i=1;i<=M;i++)
	{
		cin>>x[i]>>y[i]>>c[i];
		if(a[x[i]]+b[y[i]]-c[i]<MIN)
		{
			MIN=a[x[i]]+b[y[i]]-c[i];
		}
	}
	cout<<MIN<<endl; 
 	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:25: error: conversion from 'double' to 'long unsigned int' in a converted constant expression
    8 |         long long a[1e5 + 10],b[1e5 + 10],x[1e5 + 10],y[1e5 + 10],c[1e5 + 10];
      |                     ~~~~^~~~
a.cc:8:25: error: could not convert '(1.0e+5 + (double)10)' from 'double' to 'long unsigned int'
    8 |         long long a[1e5 + 10],b[1e5 + 10],x[1e5 + 10],y[1e5 + 10],c[1e5 + 10];
      |                     ~~~~^~~~
      |                         |
      |                         double
a.cc:8:25: error: size of array 'a' has non-integral type 'double'
a.cc:8:37: error: conversion from 'double' to 'long unsigned int' in a converted constant expression
    8 |         long long a[1e5 + 10],b[1e5 + 10],x[1e5 + 10],y[1e5 + 10],c[1e5 + 10];
      |                                 ~~~~^~~~
a.cc:8:37: error: could not convert '(1.0e+5 + (double)10)' from 'double' to 'long unsigned int'
    8 |         long long a[1e5 + 10],b[1e5 + 10],x[1e5 + 10],y[1e5 + 10],c[1e5 + 10];
      |                                 ~~~~^~~~
      |                                     |
      |                                     double
a.cc:8:37: error: size of array 'b' has non-integral type 'double'
a.cc:8:49: error: conversion from 'double' to 'long unsigned int' in a converted constant expression
    8 |         long long a[1e5 + 10],b[1e5 + 10],x[1e5 + 10],y[1e5 + 10],c[1e5 + 10];
      |                                             ~~~~^~~~
a.cc:8:49: error: could not convert '(1.0e+5 + (double)10)' from 'double' to 'long unsigned int'
    8 |         long long a[1e5 + 10],b[1e5 + 10],x[1e5 + 10],y[1e5 + 10],c[1e5 + 10];
      |                                             ~~~~^~~~
      |                                                 |
      |                                                 double
a.cc:8:49: error: size of array 'x' has non-integral type 'double'
a.cc:8:61: error: conversion from 'double' to 'long unsigned int' in a converted constant expression
    8 |         long long a[1e5 + 10],b[1e5 + 10],x[1e5 + 10],y[1e5 + 10],c[1e5 + 10];
      |                                                         ~~~~^~~~
a.cc:8:61: error: could not convert '(1.0e+5 + (double)10)' from 'double' to 'long unsigned int'
    8 |         long long a[1e5 + 10],b[1e5 + 10],x[1e5 + 10],y[1e5 + 10],c[1e5 + 10];
      |                                                         ~~~~^~~~
      |                                                             |
      |                                                             double
a.cc:8:61: error: size of array 'y' has non-integral type 'double'
a.cc:8:73: error: conversion from 'double' to 'long unsigned int' in a converted constant expression
    8 |         long long a[1e5 + 10],b[1e5 + 10],x[1e5 + 10],y[1e5 + 10],c[1e5 + 10];
      |                                                                     ~~~~^~~~
a.cc:8:73: error: could not convert '(1.0e+5 + (double)10)' from 'double' to 'long unsigned int'
    8 |         long long a[1e5 + 10],b[1e5 + 10],x[1e5 + 10],y[1e5 + 10],c[1e5 + 10];
      |                                                                     ~~~~^~~~
      |                                                                         |
      |                                                                         double
a.cc:8:73: error: size of array 'c' has non-integral type 'double'