Problem | bracketex |
---|---|
User | vince |
Submission Time | 2023-11-09 16:02:55 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
bracketex.cpp: In lambda function:
bracketex.cpp:16:10: error: expected ‘{’ before ‘;’ token
16 | s1 = [];
| ^
bracketex.cpp: In function ‘int32_t main()’:
bracketex.cpp:16:10: error: no match for ‘operator=’ (operand types are ‘std::stack<long long int>’ and ‘main()::<lambda()>’)
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 ‘main()::<lambda()>’ to ‘const std::stack<long long int>&’
/usr/include/c++/9/bits/stl_stack.h:99:11: note: candidate: ‘std::stack<long long int>&