Problem lvm
User VehaanGVikram
Submission Time 2025-02-20 20:42:05
Score 0
Max Time N/A
Max Memory N/A

Compile Error

lvm.cpp: In function ‘int main()’:
lvm.cpp:51:2: error: ‘String’ was not declared in this scope
51 | String array[n];
| ^~~~~~
lvm.cpp:56:13: error: missing template arguments before ‘[’ token
56 | cin>>array[i];
| ^
lvm.cpp:58:11: error: expected unqualified-id before ‘[’ token
58 | if(array[i]=="PUSH")
| ^
lvm.cpp:64:17: error: expected unqualified-id before ‘[’ token
64 | else if (array[i]=="STORE")
| ^
lvm.cpp:68:17: error: expected unqualified-id before ‘[’ token
68 | else if (array[i]=="LOAD")
| ^
lvm.cpp:72:17: error: expected unqualified-id before ‘[’ token
72 | else if (array[i]=="PLUS")
| ^
lvm.cpp:76:17: error: expected unqualified-id before ‘[’ token
76 | else if (array[i]=="TIMES")
| ^
lvm.cpp:80:17: error: expected unqualified-id before ‘[’