0

Why? A segment default

I wrote a input sample on top, that should create an Obj student but simply it shows "Segment Default" Idk why... PS: I used code blocks and It doesn't even throw a warning it just stops https://code.sololearn.com/crmE7NEC8Dg9/?ref=app

18th Feb 2023, 12:58 PM
Marco Cárdenas
Marco Cárdenas - avatar
3 ответов
+ 5
string aux[6]; // array size is 6 but using index 6 is out of range. Declare it as size 7 atleast.
18th Feb 2023, 1:42 PM
Jayakrishna 🇮🇳
+ 3
I didn't notice that tyvm
18th Feb 2023, 1:49 PM
Marco Cárdenas
Marco Cárdenas - avatar