Problem bracketex
User vince
Submission Time 2023-11-09 16:03:15
Score 0
Max Time N/A
Max Memory N/A

Compile Error

bracketex.cpp: In function ‘int32_t main()’:
bracketex.cpp:16:8: error: no match for ‘operator=’ (operand types are ‘std::stack<long long int>’ and ‘const char [1]’)
16 | s1 = "";
| ^~
In file included from /usr/include/c++/9/stack:61,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:89,
from bracketex.cpp:1:
/usr/include/c++/9/bits/stl_stack.h:99:11: note: candidate: ‘std::stack<long long int>& std::stack<long long int>::operator=(const std::stack<long long int>&)’
99 | class stack
| ^~~~~
/usr/include/c++/9/bits/stl_stack.h:99:11: note: no known conversion for argument 1 from ‘const char [1]’ to ‘const std::stack<long long int>&’
/usr/include/c++/9/bits/stl_stack.h:99:11: note: candidate: ‘std::stack<long long int>& std::stack<long long int>::operator=(std::stack<long long int>&&)’
/usr/include/c++/9/bits/stl_stack.h:99