TOPIC

45% error, why?

mursalin_ahmed asked 1 year ago

include

using namespace std; int main() { int n,in=0; cin>>n; int arr[n]; for(int i=1; i<n; i++) { cin>>arr[i]; if(arr[i]<arr[i+1]) { in=i; } } cout<<in<<endl; }

This topic has not been answered yet. Be the first!

Remember not post solutions. Your post may be reviewed by our moderators.