Why? A segment default | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
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
2 Answers
+ 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