I tried doing this using long long int but it was unable to finish running even on my local Codeblocks IDE, could anyone point out where I went wrong?

CODE HERE:-

```
#include<stdio.h>
int main(){
long int n, i, t;
long int a, b, c;
scanf("%d", &t);
while(t){
long int min=1e18+3;
scanf("%ld", &n);
scanf("%ld", &a);
scanf("%ld", &b);
scanf("%ld", &c);
long int f[n];
for(i=0; i<n; i++){
scanf("%ld", &f[i]);
}
for(i=0; i<n; i++){
if(f[i]<min){
min=f[i];
}
}
long int time = abs(abs(min-b)+c+abs(min-a));
printf("%ld\n", time);
t--;
}
return 0;
}
```

—END CODE—