| Problem | lvm |
|---|---|
| User | VehaanGVikram |
| Submission Time | 2025-02-20 20:42:57 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
lvm.cpp: In function ‘int main()’:
lvm.cpp:84:16: error: invalid operands of types ‘void’ and ‘int’ to binary ‘operator==’
84 | if(stc.pop()==0)
| ~~~~~~~~~^~~
| | |
| | int
| void
lvm.cpp:111:3: error: ‘else’ without a previous ‘if’
111 | else if(array[i]=="DONE")
| ^~~~
lvm.cpp:111:17: error: ‘i’ was not declared in this scope
111 | else if(array[i]=="DONE")
| ^
lvm.cpp:113:8: error: no match for ‘operator<<’ (operand types are ‘std::ostream’ {aka ‘std::basic_ostream<char>’} and ‘void’)
113 | 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/incl