|
|
|
|
|
|
m
directly? What are you trying to do?
|
|
main.cpp: In function ‘const int** createMatrix()’: main.cpp:12:13: error: ambiguating new declaration of ‘const int** createMatrix()’ const int** createMatrix(){ ^~~~~~~~~~~~ main.cpp:5:7: note: old declaration ‘int** createMatrix()’ int** createMatrix(); ^~~~~~~~~~~~ main.cpp:15:29: error: uninitialized const in ‘new’ of ‘const int’ matrix[0] = new const int[2] = {10,11}; ^ main.cpp:16:29: error: uninitialized const in ‘new’ of ‘const int’ matrix[1] = new const int[2] = {12,13}; ^ main.cpp:17:29: error: uninitialized const in ‘new’ of ‘const int’ matrix[2] = new const int[2] = {14,15}; ^ main.cpp:18:29: error: uninitialized const in ‘new’ of ‘const int’ matrix[3] = new const int[2] = {16,17}; |
|
|
int*
, but the second const int*
.const
too.matrix[0] = new const int[2] {10,11};