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

Compile Error

lvm.cpp: In function ‘int main()’:
lvm.cpp:114:3: error: ‘else’ without a previous ‘if’
114 | else if(array[i]=="DONE")
| ^~~~
lvm.cpp:114:17: error: ‘i’ was not declared in this scope
114 | else if(array[i]=="DONE")
| ^
lvm.cpp:116:8: error: no match for ‘operator<<’ (operand types are ‘std::ostream’ {aka ‘std::basic_ostream<char>’} and ‘void’)
116 | cout<<stc.pop();
| ~~~~^~~~~~~~~~~
| | |
| | void
| std::ostream {aka std::basic_ostream<char>}
In file included from /usr/include/c++/9/istream:39,
from /usr/include/c++/9/sstream:38,
from /usr/include/c++/9/complex:45,
from /usr/include/c++/9/ccomplex:39,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:54,
from lvm.cpp:1:
/usr/include/c++/9/ostream:108:7: note: candid