0

In my code it's showing some kind of error , if there is any other way please let me know.

HolyBlackCat
  • 78,603
  • 9
  • 131
  • 207

1 Answers1

0

A tree<int, null_type,less_equal<int>, rb_tree_tag,tree_order_statistics_node_update> is not a multi set. It is ill-formed. less_equal does not meet the requirement Compare

You should use std::multiset<int>

Caleth
  • 52,200
  • 2
  • 44
  • 75
  • I think you get it wrong , actually I am using `tree, rb_tree_tag,tree_order_statistics_node_update>` .......... instead of `less` , I am using `less_equal` – Supandeep singh May 24 '20 at 20:44
  • @Supandeepsingh Oh. There is no multi_set with `__gnu_pdbs`. You still have to use something that satisfies *Compare* – Caleth May 24 '20 at 21:24