Problem lvm
User j0ashhh
Submission Time 2026-02-07 17:53:18
Score 0
Max Time N/A
Max Memory N/A

Compile Error

lvm.cpp: In function ‘int main()’:
lvm.cpp:8:29: error: ‘n’ was not declared in this scope
8 | vector<string> instruction(n);
| ^
lvm.cpp:12:6: error: ‘intruction’ was not declared in this scope; did you mean ‘instruction’?
12 | if(intruction[i] == "PUSH" || intruction[i] == "IFZERO"){
| ^~~~~~~~~~
| instruction
lvm.cpp:24:13: error: ‘reg’ was not declared in this scope
24 | reg = st.top();
| ^~~
lvm.cpp:28:21: error: ‘reg’ was not declared in this scope
28 | st.push(reg);
| ^~~
lvm.cpp:30:19: error: ‘instr’ was not declared in this scope; did you mean ‘int’?
30 | }else if (instr[ip] == "PLUS") {
| ^~~~~
| int
lvm.cpp:48:16: error: invalid types ‘<unresolved overloaded function type>[int]’ for array subscript
48 | i