Problem cardtrick
User dacashew
Submission Time 2024-02-01 21:26:37
Score 0
Max Time N/A
Max Memory N/A

Compile Error

cardtrick.cpp: In function ‘int main()’:
cardtrick.cpp:117:30: error: no match for ‘operator-’ (operand types are ‘__gnu_pbds::detail::bin_search_tree_set<long long int, __gnu_pbds::null_type, std::less_equal<long long int>, __gnu_pbds::detail::tree_traits<long long int, __gnu_pbds::null_type, std::less_equal<long long int>, __gnu_pbds::tree_order_statistics_node_update, __gnu_pbds::rb_tree_tag, std::allocator<char> >, std::allocator<char> >::point_iterator’ {aka ‘__gnu_pbds::detail::bin_search_tree_const_it_<__gnu_pbds::detail::rb_tree_node_<long long int, long unsigned int, std::allocator<char> >*, long long int, long long int*, const long long int*, long long int&, const long long int&, true, std::allocator<char> >’} and ‘int’)
117 | auto it=s.lower_bound(prev)-1;
| ~~~~~~~~~~~~~~~~~~~^~
| | |
| | int
|