Dos generic algorithm work?

CINT/ROOT C/C++ Interpreter version 5.16.16
Version 5.14

my code is below:

Int_t A[]={4,-13,13};
std::sort(A,A+2);
cout << A[0] <<" " << A[1] << " "<<A[2]<<end;

ERROR:
Symbol __stl_threshold is not defined in current scope algo.h:715

but if I use g++, I will get the right result.

someone has reported the similar question , however I still dont kown
how to solve it .

please help me ; thanks in advance.

Hi, I had the same problem and solved it using ACLic.
Another way - change your ROOT. In newer versions everything seems to be ok (I have 5.18 and 5.19).

Thank you very much !
I have solved the problem with using ACLiC, like “.x MyFile.C+”.