Record Detail

Compile Error

/in/sam.cpp: In function 'int main(int, char**)':
/in/sam.cpp:53:40: error: request for member 'parameter' in 'ins', which is of pointer type 'Instr*' (maybe you meant to use '->' ?)
                 for(int i = 0; i < ins.parameter; i++) {
                                        ^~~~~~~~~
/in/sam.cpp:78:42: error: request for member 'parameter' in 'ins', which is of pointer type 'Instr*' (maybe you meant to use '->' ?)
             stack.insertBack(new int(ins.parameter));
                                          ^~~~~~~~~
/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
2023-07-28 21:50:31
Judged At
2023-07-28 21:50:31
Judged By
Score
0
Total Time
0ms
Peak Memory
0 Bytes