Problem lvm
User Johnnie
Submission Time 2023-07-22 21:59:33
Score 0
Max Time N/A
Max Memory N/A

Compile Error

lvm.cpp: In function ‘int main()’:
lvm.cpp:51:2: error: expected primary-expression before ‘<’ token
51 | <int>stack memory;
| ^
lvm.cpp:51:3: error: expected primary-expression before ‘int’
51 | <int>stack memory;
| ^~~
lvm.cpp:57:4: error: ‘memory’ was not declared in this scope; did you mean ‘memcpy’?
57 | memory.push(argument[current]);
| ^~~~~~
| memcpy
lvm.cpp:62:8: error: ‘memory’ was not declared in this scope; did you mean ‘memcpy’?
62 | if (memory.top() == 0)
| ^~~~~~
| memcpy
lvm.cpp:69:10: error: ‘memory’ was not declared in this scope; did you mean ‘memcpy’?
69 | reg = memory.top();
| ^~~~~~
| memcpy
lvm.cpp:74:4: error: ‘memory’ was not declared in this scope; did you mean ‘memcpy’?
74 | memory.push(reg);
| ^~~~~~
| memcpy
lvm.cpp:79:15: error: ‘memory’