Record Detail

Compile Error

/in/sam.cpp: In function 'void ifz(Stack<int>&, Queue<Instr>&, int)':
/in/sam.cpp:119:9: error: this 'for' clause does not guard... [-Werror=misleading-indentation]
         for (int i = 0; i < n; i++)
         ^~~
/in/sam.cpp:121:13: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
             delete instrp;
             ^~~~~~
/in/sam.cpp:121:20: error: 'instrp' may be used uninitialized in this function [-Werror=maybe-uninitialized]
             delete instrp;
                    ^~~~~~
cc1plus: all warnings being treated as errors
/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-18 14:40:44
Judged At
2023-07-18 14:40:44
Judged By
Score
0
Total Time
0ms
Peak Memory
0 Bytes