+ 1

Why this code isn't work?

This is my code to find the largest elements in given input from dynamical memory exercise 33.2 C++,when i run it on Dev C++5.11 it run well But when i submit it,it doesn't work This is the code https://code.sololearn.com/cmy1pLCn4eJ4/?ref=app

26th Aug 2021, 11:24 AM
Canelly Cathaliev Candra
Canelly Cathaliev Candra - avatar
6 Antworten
+ 2
https://code.sololearn.com/cBhzDKRRae3T/?ref=app
26th Aug 2021, 11:52 AM
Tomasz Wilczyński
+ 1
Because your for loop is wrong declarated
26th Aug 2021, 11:52 AM
Tomasz Wilczyński
+ 1
Thank you so much Martin Taylor and Tomasz wilczyñski your answers make me want to learn code more
27th Aug 2021, 12:06 AM
Canelly Cathaliev Candra
Canelly Cathaliev Candra - avatar
0
Change for(a>=0;a--;){ to for(;a>=0;a--){
26th Aug 2021, 11:53 AM
Tomasz Wilczyński