Source Code
#include<iostream>
#include<algorithm>
using namespace std ;
int main()
{
  int n;
  cin>>n;
  int minn = 0 ; 
  int arr[n];
  for(int i = 0 ; i<n ; i++)
 {
     cin>>arr[i];
 minn = min(minn,arr[i]);
 
 }
 cout<<abs(minn);
}
Copy
Zeina The Business Owner Joud
GNU G++17
2 ms
696 KB
Wrong Answer