1 test case is failing
1 test case failing
#include<iostream>
#include<climits>
//for INT_MIN
using namespace std;
int main() {
int N;
cin>>N;
int arr[N]={0};
int max1 = INT_MIN; //updated
for(int i =0;i<N;i++){
cin>>arr[i];
max1 = max(max1,arr[i]);
}
cout<<max1;
return 0;
}
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.