Record Detail

Compile Error

/in/exam3_matrix.cpp:12:58: error: default argument given for parameter 1 of 'intMatrix::intMatrix(int, int, int)' [-fpermissive]
 intMatrix::intMatrix(int r = 1,int c=1,int initialValue=1){
                                                          ^
In file included from /in/exam3_matrix.cpp:9: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:12:58: error: default argument given for parameter 2 of 'intMatrix::intMatrix(int, int, int)' [-fpermissive]
 intMatrix::intMatrix(int r = 1,int c=1,int initialValue=1){
                                                          ^
In file included from /in/exam3_matrix.cpp:9: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:12:58: error: default argument given for parameter 3 of 'intMatrix::intMatrix(int, int, int)' [-fpermissive]
 intMatrix::intMatrix(int r = 1,int c=1,int initialValue=1){
                                                          ^
In file included from /in/exam3_matrix.cpp:9: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 constructor 'intMatrix::intMatrix(int, int, int)':
/in/exam3_matrix.cpp:15:5: error: 'sequentially' was not declared in this scope
     sequentially = initialValue;
     ^~~~~~~~~~~~

Information

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