what the heck is wrong with this code , it absolutely works fine in codeblocks

is this the platform error ?

#include<stdio.h>

#include<math.h>

int main()

{

int n,a,b,t;int res[n];

scanf("%d",&n);long long b2;long long a2;

for(int i =0; i<n; i++)

{

scanf("%d %d %d",&a,&b,&t);

a2=a;b2=b;

for (int i =0 ; i<t;)

{

a2=a2*2;i=i+1;
if(i!=t)
b2= b2*2;i=i+1;

}

```
if(a2>b2)
{
res[i] = a2/b2;
}
else
{
res [i]= b2/a2;
}
}
for (int i =0 ; i<n;i++){
printf("%d\n",res[i]);
}
return 0;
```

}