There seems to be an error in my code which I am unable to find.Could you guys tell me what went wrong ? New to coding so apologies for the formatting.
#include<stdio.h>
#include<math.h>
int main()
{
int N,V1,V2,t1,t2;
int t;
scanf("%d",&t);
for(int i=0;i<t;i++)
{scanf("%d %d %d",&N,&V1,&V2);
int t1i = sqrt(2) * N;
t1= t1i / V1;
int t2i = 2 * N;
t2 = t2i / V2;
if(t1<t2)
printf("Stairs\n");
else printf("Elevator\n");
}
return 0;
}