#include
using namespace std;
#define MAX_SIZE 100
int main()
{
int arr[MAX_SIZE];
int found = 0;
int N,i;
cin >> N;
int K;
cin >> K;
for(i=0; i<N; i++)
{
cin >> arr[i];
}
for(i=0; i<N; i++)
{
if(arr[i] == K)
{
found = 1;
break;
}
}
if(found == 1)
{
cout << "1";
}
else
{
cout << "-1";
}
return 0;
}
Here, my code description photo and my code when I am run this code then give me runtime error give me any suggestion in my code.