Questions tagged as 'malloc'

0
answers

C - Stack Smashing Detected - How to correctly initialize a graph by adjacency list and insert edges?

I am getting sporadically and without making any changes to the code or entry, an error called Stack Smashing Detected. The only thing I'm doing is initializing a graph and inserting an edge in that, follow the code below: typedef int TipoPeso...
asked by 08.05.2018 / 18:30
1
answer

Error "Uninitialized local variable 'p' used

I am developing a program in c ++ to learn malloc , but it is giving local variable error in main function: // testeMalloc.cpp : define o ponto de entrada para o aplicativo do console. // #include "stdafx.h" #include <stdlib.h> #...
asked by 01.06.2018 / 22:10