/in/exam3_matrix.cpp:7:64: error: default argument given for parameter 1 of 'intMatrix::intMatrix(int, int, int)' [-fpermissive]
intMatrix::intMatrix(int rows = 1, int cols = 1, int value0 = 1){
^
In file included from /in/exam3_matrix.cpp:1:0:
/in/compile/exam3_matrix.h:27:2: note: previous specification in 'intMatrix::intMatrix(int, int, int)' here
intMatrix(int r = 1 , int c = 1, int initialValue = 1); //TODO: Complete this construstor. 7Pts.
^~~~~~~~~
/in/exam3_matrix.cpp:7:64: error: default argument given for parameter 2 of 'intMatrix::intMatrix(int, int, int)' [-fpermissive]
intMatrix::intMatrix(int rows = 1, int cols = 1, int value0 = 1){
^
In file included from /in/exam3_matrix.cpp:1:0:
/in/compile/exam3_matrix.h:27:2: note: previous specification in 'intMatrix::intMatrix(int, int, int)' here
intMatrix(int r = 1 , int c = 1, int initialValue = 1); //TODO: Complete this construstor. 7Pts.
^~~~~~~~~
/in/exam3_matrix.cpp:7:64: error: default argument given for parameter 3 of 'intMatrix::intMatrix(int, int, int)' [-fpermissive]
intMatrix::intMatrix(int rows = 1, int cols = 1, int value0 = 1){
^
In file included from /in/exam3_matrix.cpp:1:0:
/in/compile/exam3_matrix.h:27:2: note: previous specification in 'intMatrix::intMatrix(int, int, int)' here
intMatrix(int r = 1 , int c = 1, int initialValue = 1); //TODO: Complete this construstor. 7Pts.
^~~~~~~~~
/in/exam3_matrix.cpp: In member function 'void intMatrix::fillFrom(std::vector<int>&)':
/in/exam3_matrix.cpp:29:23: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
if (source.size() == rows * cols) {
~~~~~~~~~~~~~~^~~~~~~~~~~~~~
/in/exam3_matrix.cpp:30:9: error: 'memcpy' was not declared in this scope
memcpy(flatternArray, &source[0], source.size() * sizeof(source[0]));
^~~~~~
/in/exam3_matrix.cpp:30:9: note: suggested alternative: 'wmemcpy'
memcpy(flatternArray, &source[0], source.size() * sizeof(source[0]));
^~~~~~
wmemcpy
cc1plus: all warnings being treated as errors