Record Detail

Compile Error

/in/exam3_matrix.cpp:14:1: error: prototype for 'intMatrix::intMatrix()' does not match any in class 'intMatrix'
 intMatrix::intMatrix() {
 ^~~~~~~~~
/in/exam3_matrix.cpp:9:1: error: candidates are: intMatrix::intMatrix(int, int, int)
 intMatrix::intMatrix(int rows, int cols, int initalValue) {
 ^~~~~~~~~
In file included from /in/exam3_matrix.cpp:5:0:
/in/compile/exam3_matrix.h:23:2: error:                 intMatrix::intMatrix(const intMatrix&)
  intMatrix(const intMatrix & that) {
  ^~~~~~~~~
/in/exam3_matrix.cpp: In member function 'int intMatrix::getElement(int, int)':
/in/exam3_matrix.cpp:42:9: error: unused variable 'position' [-Werror=unused-variable]
     int position = cols * rowNum + colNum, element;
         ^~~~~~~~
cc1plus: all warnings being treated as errors

Information

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