Record Detail

Compile Error

/in/exam3_matrix.cpp:7:1: error: prototype for 'intMatrix::intMatrix()' does not match any in class 'intMatrix'
 intMatrix::intMatrix() {
 ^~~~~~~~~
In file included from /in/exam3_matrix.cpp:4:0:
/in/compile/exam3_matrix.h:27:2: error: candidates are: intMatrix::intMatrix(int, int, int)
  intMatrix(int r = 1 , int c = 1, int initialValue = 1); //TODO: Complete this construstor. 7Pts.
  ^~~~~~~~~
/in/compile/exam3_matrix.h:23:2: error:                 intMatrix::intMatrix(const intMatrix&)
  intMatrix(const intMatrix & that) {
  ^~~~~~~~~
/in/exam3_matrix.cpp: In constructor 'intMatrix::intMatrix(int, int, int)':
/in/exam3_matrix.cpp:15:9: error: unused variable 'initialValue' [-Werror=unused-variable]
     int initialValue = l;
         ^~~~~~~~~~~~
/in/exam3_matrix.cpp: In member function 'int intMatrix::getRowSize()':
/in/exam3_matrix.cpp:20:1: error: no return statement in function returning non-void [-Werror=return-type]
 }
 ^
/in/exam3_matrix.cpp: In member function 'int intMatrix::getColumnSize()':
/in/exam3_matrix.cpp:23:1: error: no return statement in function returning non-void [-Werror=return-type]
 }
 ^
/in/exam3_matrix.cpp: In member function 'void intMatrix::fillFrom(std::vector<int>&)':
/in/exam3_matrix.cpp:24:44: error: unused parameter 'source' [-Werror=unused-parameter]
 void intMatrix::fillFrom(std::vector<int> &source) {
                                            ^~~~~~
/in/exam3_matrix.cpp: In member function 'int intMatrix::getElement(int, int)':
/in/exam3_matrix.cpp:29:1: error: expected primary-expression before '}' token
 }
 ^
/in/exam3_matrix.cpp:29:1: error: no return statement in function returning non-void [-Werror=return-type]
/in/exam3_matrix.cpp:27:31: error: unused parameter 'rowNum' [-Werror=unused-parameter]
 int intMatrix::getElement(int rowNum, int colNum) {
                               ^~~~~~
/in/exam3_matrix.cpp:27:43: error: unused parameter 'colNum' [-Werror=unused-parameter]
 int intMatrix::getElement(int rowNum, int colNum) {
                                           ^~~~~~
cc1plus: all warnings being treated as errors

Information

Submit By
Type
Submission
Homework
Final Exam
Language
C++
Submit At
2022-08-02 15:43:34
Judged At
2022-08-06 15:13:50
Judged By
Score
0
Total Time
0ms
Peak Memory
0 Bytes