+ 6

When i press run it didnt show a[5] at the output

https://code.sololearn.com/c6g81wgUw2dx/?ref=app

23rd Aug 2018, 2:45 PM
Țucu🇷🇴
Țucu🇷🇴 - avatar
2 Antworten
+ 5
Oh, it's not C++, but may be this: elif(id==5): name=a[4] sould be like: elif(id==5): name=a[5] at first? Sorry if not :)
23rd Aug 2018, 3:00 PM
Iomi_Tashia
Iomi_Tashia - avatar
+ 2
check the length of a . length of a is 7 you didn't written any code regarding a[6]. add it.
24th Aug 2018, 5:14 PM
Chandra Sekhar Satyavarapu
Chandra Sekhar Satyavarapu - avatar