sparklers.cpp: In function 'bool solve(ll)':
sparklers.cpp:17:17: error: request for member 'empty' in 'sl.std::stack<long long int>::top()', which is of non-class type '__gnu_cxx::__alloc_traits<std::allocator<long long int> >::value_type {aka long long int}'
if(!sl.top().empty() && (sr.top().empty() || sl.top()<=sr.top()) ){
^~~~~
sparklers.cpp:17:38: error: request for member 'empty' in 'sr.std::stack<long long int>::top()', which is of non-class type '__gnu_cxx::__alloc_traits<std::allocator<long long int> >::value_type {aka long long int}'
if(!sl.top().empty() && (sr.top().empty() || sl.top()<=sr.top()) ){
^~~~~
sparklers.cpp:27:22: error: request for member 'empty' in 'sr.std::stack<long long int>::top()', which is of non-class type '__gnu_cxx::__alloc_traits<std::allocator<long long int> >::value_type {aka long long int}'
else if(!sr.top().empty() && (sl.top().empty() || sr.top()<=sl.top())){
^~~~~
sparklers.cpp:27:43: error: request for member 'empty' in 'sl.std::stack<long long int>::top()', which is of non-class type '__gnu_cxx::__alloc_traits<std::allocator<long long int> >::value_type {aka long long int}'
else if(!sr.top().empty() && (sl.top().empty() || sr.top()<=sl.top())){
^~~~~