53378157 well there s not much to be said i just dont get the error ,i ve tested it out on my compiler and it outputs '387420489' what do they mean by runtime error?
| № | Пользователь | Рейтинг |
|---|---|---|
| 1 | Benq | 3676 |
| 2 | Kevin114514 | 3659 |
| 3 | jiangly | 3640 |
| 4 | turmax | 3450 |
| 5 | tourist | 3408 |
| 6 | strapple | 3360 |
| 7 | Um_nik | 3354 |
| 8 | squareOf105 | 3348 |
| 9 | maroonrk | 3312 |
| 10 | idontwannadothis…e | 3191 |
| Страны | Города | Организации | Всё → |
| № | Пользователь | Вклад |
|---|---|---|
| 1 | Qingyu | 155 |
| 2 | nik_exists | 151 |
| 3 | maspy | 149 |
| 4 | AmShZ | 145 |
| 5 | Um_nik | 143 |
| 6 | Errichto | 139 |
| 7 | BledDest | 136 |
| 8 | adamant | 135 |
| 9 | maroonrk | 132 |
| 10 | cry | 130 |
| Название |
|---|



You have an out-of-bounds array access on this line:
t[j].number = aux;. Check the value of yourjvariable.it works on my compiler that's why i got confused, thanks a lot :D
You should learn how to use a debugger which can help you find bugs like this one in the future.
Can you tell what debugger do you mean? I use custom invocation's Clang C++ Diagnostics to debug such cases. Did you mean gdb?
I use the Visual Studio debugger which catches a lot of things like this. The diagnostics are probably even better at finding memory issues in particular.