Help me in solving SESO03 problem

My issue

whats the error in my code

My code

#include <iostream>
using namespace std;

int main() {
	int n,k ;
	cin>>n>>k;
	int arr[n];
	for(int i=0;i<n;i++){
	    cin>>arr[i];
	}
	bool found=false;
	for(int i=0;i<n;i++){
	    found=true;
	    break;
	}
 
 if (found){
    cout<<"Yes"<<endl;
    
 }
 else{
    cout<<"No"<<endl;
 }
return 0;
}

Learning course: Data structures & Algorithms lab
Problem Link: https://www.codechef.com/learn/course/muj-aiml-dsa-c/MUJADSAC10/problems/SESO03