| Problem | lvm |
|---|---|
| User | carson |
| Submission Time | 2026-02-06 21:53:25 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
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:16:14: error: ‘input’ was not declared in this scope
16 | string a = input[i].first;
| ^~~~~
lvm.cpp:39:11: error: invalid use of member function ‘std::stack<_Tp, _Sequence>::const_reference std::stack<_Tp, _Sequence>::top() const [with _Tp = long long int; _Sequence = std::deque<long long int, std::allocator<long long int> >; std::stack<_Tp, _Sequence>::const_reference = const long long int&]’ (did you forget the ‘()’ ?)
39 | b *= s.top;
| ~~^~~
| ()
lvm.cpp:46:14: error: request for member ‘second’ in ‘a.std::__cxx11::basic_string<char>::operator[](((std::__cxx11::basic_string<char>::size_type)i))’, which is of non-class type ‘__gnu_cxx::__alloc_traits<std::allocator<char>, char>::valu