I have a problem using STL. When I type the following code into my program:
The following error happens:Code:typedef std::multiset<int, std::less<int>> ims;
d:\vs 6.0 test\testex34.cpp(8) : error C2146: syntax error : missing ',' before identifier 'ims'
d:\vs 6.0 test\testex34.cpp(8) : error C2065: 'ims' : undeclared identifier
d:\vs 6.0 test\testex34.cpp(8) : error C2143: syntax error : missing '>' before ';'
d:\vs 6.0 test\testex34.cpp(8) : warning C4091: 'typedef ' : ignored on left of 'class std::multiset' when no variable is declared
I don't understand what seem to be the error. Can you help me? Thank you for your help.
Note: I am using Microsoft Visual C++ 6.0