Record Detail

Compile Error

/in/compound.cpp: In constructor 'Compound::Compound(int*, int)':
/in/compound.cpp:17:19: error: incompatible types in assignment of 'int' to 'int [num]'
     inputarray = *arr;
                   ^~~
/in/compound.cpp:22:32: error: invalid use of member function 'int Element::getAtomicNumber() const' (did you forget the '()' ?)
                 if (allElem[j].getAtomicNumber == inputarray[i]) {
                     ~~~~~~~~~~~^~~~~~~~~~~~~~~
/in/compound.cpp:23:46: error: invalid use of non-static member function 'std::__cxx11::string Element::getSymbol() const'
                     elements[p] = allElem[j].getSymbol;
                                              ^~~~~~~~~
In file included from /in/compound.cpp:2:0:
/in/compile/compound.h:18:16: note: declared here
         string getSymbol() const {return symbol;}
                ^~~~~~~~~

Information

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