Problem lvm
User carson
Submission Time 2026-01-26 17:43:20
Score 0
Max Time N/A
Max Memory N/A

Compile Error

lvm.cpp: In function ‘int main()’:
lvm.cpp:11:10: error: ‘a’ was not declared in this scope
11 | cin >> a[i].first;
| ^
lvm.cpp:14:2: error: expected primary-expression before ‘for’
14 | for(int i = 1; i <= n; i++){
| ^~~
lvm.cpp:14:28: error: expected ‘;’ before ‘)’ token
14 | for(int i = 1; i <= n; i++){
| ^
| ;
lvm.cpp:39:1: error: expected ‘}’ at end of input
39 | }
| ^
lvm.cpp:12:53: note: to match this ‘{’
12 | if(a[i].first == "PUSH" || a[i].first == "IFZERO"){
| ^
lvm.cpp:39:1: error: expected ‘}’ at end of input
39 | }
| ^
lvm.cpp:10:29: note: to match this ‘{’
10 | for(int i = 1; i <= n; i++){
| ^
lvm.cpp:39:1: error: expected ‘}’ at end of input
39 | }
| ^
lv