League of Programming Lecture series STL information
According to me all the things should be correct, but in case code does not work, I recommend you go to STL references given below.
Enjoy Coding :)
http://praveendhinwacoding.blogspot.in/2013/09/using-templates-in-c-programming.html
http://praveendhinwacoding.blogspot.in/2013/05/using-constructors-and-comparators-in-c.html
http://en.wikipedia.org/wiki/Standard_Template_Library
http://en.wikibooks.org/wiki/C%2B%2B_Programming/STL
http://community.topcoder.com/tc?module=Static&d1=tutorials&d2=standardTemplateLibrary
http://community.topcoder.com/tc?module=Static&d1=tutorials&d2=standardTemplateLibrary2
http://community.topcoder.com/tc?module=Static&d1=features&d2=082803
http://codeforces.com/blog/entry/6058
http://www.acmsolver.org/?p=853