Record Detail

Compile Error

/in/sam.cpp: In instantiation of 'T Stack<T>::pop() [with T = int]':
/in/sam.cpp:85:19:   required from here
/in/sam.cpp:35:9: error: invalid conversion from 'int' to 'int*' [-fpermissive]
     T * del = *this->removeBack();
         ^~~
/in/sam.cpp: In instantiation of 'T Queue<T>::pop_out() [with T = Instr]':
/in/sam.cpp:105:27:   required from here
/in/sam.cpp:58:9: error: cannot convert 'Instr' to 'Instr*' in initialization
     T * del = *this->removeFront();
         ^~~
/in/compile/Makefile:16: recipe for target 'buildStackMachine' failed
make: *** [buildStackMachine] Error 1

Information

Submit By
Type
Submission
Homework
Project 5
Language
C++
Submit At
2021-07-27 23:25:20
Judged At
2021-07-27 23:25:20
Judged By
Score
0
Total Time
0ms
Peak Memory
0 Bytes