Increasing Decreasing Sequence

#include
using namespace std;
int main() {
int t;
cin>>t;
long long int a,b;
cin>>a;
while(t>1)
{
cin>>b;
if(b>a)
{
a=b;
t=t-1;
break;
}
t=t-1;
a=b;
}
while(t>1)
{
cin>>b;
if(b<a)
{
cout<<“false”;
return 0;
}

    a=b;
    t=t-1;
}
if(t==1){
    cout<<"true";
}
return 0;

}
this program is failing test case 5
please help;

@sarthaksingh Consider the input:
5
5
5
5
5
5

Expected Output:
false

Check if this test case works correctly for your code. If not then please save your code on ide.codingblocks.com and share its link.

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.