- 1

Where is the mistake

Hello can anyone help find where is the mistake? Thank u so much https://code.sololearn.com/cEt0T7fyXS5R/?ref=app

15th Jan 2021, 5:01 AM
🏐Volley
🏐Volley - avatar
4 Respostas
+ 5
🏐Volley You need to provide details on what you expect to happen with your code. We have no idea what the mistake could be when there is not any compile error. But... Part of your problem likely has to do with the fact that you are declaring an array but you are not assigning the values in your for loop to a unique index of that array. Therefore each value gets assigned to index 0 and overwrites all previous values. student alpha[ENTRIES] ; Assignment in for loop should be cin >> alpha[i].name;
15th Jan 2021, 5:56 AM
Elizabeth Kelly
Elizabeth Kelly - avatar
+ 3
Syntactically this code is correct, and is running without any errors.
15th Jan 2021, 5:48 AM
Arsenic
Arsenic - avatar
15th Jan 2021, 5:49 AM
Arsenic
Arsenic - avatar
+ 1
Oh okay thank u Elizabeth Kelly 😃
15th Jan 2021, 6:17 AM
🏐Volley
🏐Volley - avatar