compilation error

my programme running on turbo but codechef showing compilation error.what should i do programmme is given below:

#include<conio.h>
#include<iostream.h>

void main()
{
clrscr();
int t,i=-1,j=0,a[100],c[100],b;

cout<<"";
cin>>t;
for(b=0;b<t;b++)
{

cin>>a[b]>>c[b];
}
b=0;
while(b!=t)
{
i=i+2;
if(i>a[b])
{
cout<<“bob\n”;
i=-1,j=0;
b++;
}
else
j=j+2;
if(j>c[b])
{
cout<<“limak\n”;
j=0,i=-1;
b++;
}
}
getch();
}

hey an unwanted slash(/) is there on 1st line and no need to write clrscr() and getch()

here you have to use

#include instead of 
no need to write #include.it does not works here.
also use int main() instead of void main() .
write return 0; instead of getch();

if you think this was helful do accept the answer.

1 Like

conio.h header is not supported by the online IDE.

1 Like

include

int main()
{

int t,i=-1,j=0,a[100],c[100],b;

cout<<"";
cin>>t;
for(b=0;b<t;b++)
{

cin>>a[b]>>c[b];
}
b=0;
while(b!=t)
{
i=i+2;
if(i>a[b])
{
cout<<“bob\n”;
i=-1,j=0;
b++;
}
else
j=j+2;
if(j>c[b])
{
cout<<“limak\n”;
j=0,i=-1;
b++;
}
}
return 0;
}

my problem is still persisting…can u tell which alnguage i have to select…it has many types for c++…

You can go with c++14(GCC 4.9.2) or c++4.9.2(gcc 4.9.2).

Moreover you can go to practice -> code,compile and run optiin before submitting your code. or you can run it on https://www.ideone.com.I you still have any doubts feel free to ping me.

//