Problem | brick |
---|---|
User | hackerman123 |
Submission Time | 2023-07-19 14:36:19 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
brick.cpp: In function ‘int main()’:
brick.cpp:10:25: error: void value not ignored as it ought to be
10 | long long j; j = s.pop();
| ~~~~~^~
brick.cpp:11:12: error: invalid use of member function ‘std::stack<_Tp, _Sequence>::size_type std::stack<_Tp, _Sequence>::size() const [with _Tp = long long int; _Sequence = std::deque<long long int, std::allocator<long long int> >; std::stack<_Tp, _Sequence>::size_type = long unsigned int]’ (did you forget the ‘()’ ?)
11 | while (s.size > 0 and value >= j){
| ~~^~~~
| ()
brick.cpp:12:10: error: cannot convert ‘std::stack<long long int>::pop’ from type ‘void (std::stack<long long int>::)()’ to type ‘long long int’
12 | j = s.pop
| ^~~
brick.cpp:17:2: error: ‘ss’ was not declared in this scope; did you mean ‘s’?
17 | ss = s.size();
| ^~
| s
brick.