Error Invalid read of size 4 #56
Replies: 1 comment 3 replies
-
Hola! Por favor, sube lo que llevas, e indica como estas corriendo el test. Si es error en código que te entregamos, probablemente estes corriendo mal, pasandole un archivo de input que no existe. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hola! Estoy corriendo los testcases y todo el rato me sale el siguiente error:
Invalid read of size 4
==99== at 0x48B4A94: __vfscanf_internal (vfscanf-internal.c:345)
==99== by 0x48B423C: __isoc99_fscanf (isoc99_fscanf.c:30)
==99== by 0x10951E: main (main.c:37)
==99== Address 0xc0 is not stack'd, malloc'd or (recently) free'd
y no logro entender ni encontrar el error, porque la linea 37 del main.c es:
result = fscanf(input_file, "%d", &N_PLANETAS);
Eso es código que nos dieron uds. y no lo he cambiado.
Me podrían ayudar a entender y solucionar el error por favor.
Beta Was this translation helpful? Give feedback.
All reactions