SyntaxFix
Write A Post
Hire A Developer
Questions
// use new instead of malloc as using malloc leads to memory leaks `enter code here
int **adj_list = new int*[rowsize]; for(int i = 0; i < rowsize; ++i) { adj_list[i] = new int[colsize]; }