Largest number question

#include
#include
using namespace std;
int main(){
int n;
cin >> n;
int i = 1;
int largest = INT_MIN;
int no;
while(i <= n){
cin >> no;
if(largest < no){
largest = no;
}
i = i +1;
}
cout << "largest number is " << largest << endl;
return 0;

}

Why this is showing error and showing test case failed

hi @prakharmishra2929 in this code use >= every where

#include<iostream>
using namespace std;
int main(){
   signed int a,b,c;
    cin >> a >> b >> c;
    if(a > b && a > c){
        cout  <<  a <<  endl ;
        }

     else if(b > c && b > a){
        cout << b << endl;
        }
        else {
            cout  << c;
        }
        return 0;

    
    }
    

Okay…Thank you…

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.