عندي خطأ في كود, ممكن احد يقولي شنو الخطأ في c++
#include <iostream.h>
void main()
{
int a[10],tr,i,f=0,l=0,m;
cout<<"Enter the 10 number's \n";
for (i=0;i<10;i++)
cin>>a;
cout<<"Enter the number target \n";
cin>>tr;
m=(f+l)/2;
while ((tr!=a[m])&&(f<=l))
{
if(tr<a[m])
l=m-l;
else
f=m+l;
m=(m+l)/2;
}
if (tr==a[m])
cout<<"Find \n";
else
cout<<"Not Find \n";
}