Increasing Decreasing Sequnce

INCREASING DECREASING SEQUENCE
Take the following as input.

A number (N)
Take N more numerical inputs
The N inputs for a sequence S = s1, s2, …, sN. Compute if it is possible to split sequence into two sequences -
s1 to si and si+1 to sN such that first sequence is strictly decreasing and second is strictly increasing. Print true/false as output.

my code link please tell me my why i am getting error
https://ide.codingblocks.com/s/56464

Hey, read the constraints carefully, N can be in range of 1000 but you are taking the max size of array 100 only and numbers in the sequence can be of range 1000000000 so you are supposed to use long long int data type instead of int. One more thing is your code is printing truefalse both in the output for sample case to avoid that use else if checks instead of all if checks in main().