Record Detail

Compile Error

/in/compound.cpp:4:8: error: prototype for 'double Compound::calculateMolarMass(int*, int)' does not match any in class 'Compound'
 double Compound:: calculateMolarMass(int* arr, int num) {
        ^~~~~~~~
In file included from /in/compound.cpp:1:0:
/in/compile/compound.h:32:16: error: candidate is: double Compound::calculateMolarMass()
         double calculateMolarMass();
                ^~~~~~~~~~~~~~~~~~
/in/compound.cpp:20:8: error: prototype for 'std::__cxx11::string Compound::toString(int*, int)' does not match any in class 'Compound'
 string Compound:: toString(int* arr, int num){
        ^~~~~~~~
In file included from /in/compound.cpp:1:0:
/in/compile/compound.h:33:16: error: candidate is: std::__cxx11::string Compound::toString()
         string toString();
                ^~~~~~~~

Information

Submit By
Type
Submission
Homework
Final
Language
C++
Submit At
2024-08-08 11:33:01
Judged At
2024-08-13 15:31:25
Judged By
Score
0
Total Time
0ms
Peak Memory
0 Bytes