Problem lvm
User bz
Submission Time 2023-05-04 08:49:47
Score 0
Max Time N/A
Max Memory N/A

Compile Error

lvm.cpp: In function ‘int main()’:
lvm.cpp:22:36: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
22 | if (instructions[i] == "PUSH"){
| ^~~~~~
lvm.cpp:25:41: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
25 | else if (instructions[i] == "STORE"){
| ^~~~~~~
lvm.cpp:30:41: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
30 | else if (instructions[i] == "LOAD"){
| ^~~~~~
lvm.cpp:33:41: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
33 | else if (instructions[i] == "PLUS"){
| ^~~~~~
lvm.cpp:41:41: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
41 | els