Problem lvm
User glog
Submission Time 2023-02-20 17:52:20
Score 0
Max Time N/A
Max Memory N/A

Compile Error

lvm.cpp: In function ‘int main()’:
lvm.cpp:43:7: error: ‘a’ was not declared in this scope
43 | a=s.back();
| ^
lvm.cpp:7:16: error: ‘i’ was not declared in this scope
7 | #define plus() i = v.top(); v.pop(); j = v.top(); v.pop(); v.push(i+j);
| ^
lvm.cpp:49:30: note: in expansion of macro ‘plus’
49 | else if (instarr[c]==3) {plus();}
| ^~~~
lvm.cpp:7:38: error: ‘j’ was not declared in this scope
7 | #define plus() i = v.top(); v.pop(); j = v.top(); v.pop(); v.push(i+j);
| ^
lvm.cpp:49:30: note: in expansion of macro ‘plus’
49 | else if (instarr[c]==3) {plus();}
| ^~~~
lvm.cpp:8:17: error: ‘i’ was not declared in this scope
8 | #define times() i = v.top(); v.pop(); j = v.top(); v.pop(); v.push(i*j);
| ^
lvm.cpp:50:30: note: in exp