Compile Error
/in/ex3.cpp: In function 'int** getMatrix(FILE*, size_t)': /in/ex3.cpp:24:24: error: invalid conversion from 'void*' to 'int**' [-fpermissive] int **data = malloc(n * sizeof(int *)); ~~~~~~^~~~~~~~~~~~~~~~~~~ /in/ex3.cpp:26:25: error: invalid conversion from 'void*' to 'int*' [-fpermissive] data[i] = malloc(n * sizeof(int)); ~~~~~~^~~~~~~~~~~~~~~~~
Information
- Submit By
- Type
- Submission
- Homework
- Assignment 7
- Language
- C++
- Submit At
- 2018-07-23 23:22:19
- Judged At
- 2018-07-23 23:22:19
- Judged By
- Score
- 0
- Total Time
- 0ms
- Peak Memory
- 0 Bytes