1>c:\users\hcm\documents\visual studio 2010\projects\insertsort\insertsort\ismain.cpp(3): warning C4067: unexpected tokens following preprocessor directive - expected a newline
1>c:\users\hcm\documents\visual studio 2010\projects\insertsort\insertsort\ismain.cpp(7): error C2039: 'vector' : is not a member of 'std'
1>c:\users\hcm\documents\visual studio 2010\projects\insertsort\insertsort\ismain.cpp(7): error C2065: 'vector' : undeclared identifier
1>c:\users\hcm\documents\visual studio 2010\projects\insertsort\insertsort\ismain.cpp(7): error C2062: type 'double' unexpected
1>c:\users\hcm\documents\visual studio 2010\projects\insertsort\insertsort\ismain.cpp(8): error C2065: 'x' : undeclared identifier
1>c:\users\hcm\documents\visual studio 2010\projects\insertsort\insertsort\ismain.cpp(8): error C2228: left of '.size' must have class/struct/union
1> type is ''unknown-type''
1>c:\users\hcm\documents\visual studio 2010\projects\insertsort\insertsort\ismain.cpp(9): error C2065: 'x' : undeclared identifier
1>c:\users\hcm\documents\visual studio 2010\projects\insertsort\insertsort\ismain.cpp(9): error C2228: left of '.at' must have class/struct/union
1> type is ''unknown-type''
1>c:\users\hcm\documents\visual studio 2010\projects\insertsort\insertsort\ismain.cpp(12): error C2065: 'x' : undeclared identifier
1>c:\users\hcm\documents\visual studio 2010\projects\insertsort\insertsort\ismain.cpp(12): error C2065: 'x' : undeclared identifier
1>c:\users\hcm\documents\visual studio 2010\projects\insertsort\insertsort\ismain.cpp(12): error C3861: 'isort': identifier not found
I'm sure I'm making some obvious mistakes. Any help would be much appreciated!
Thanks Paul. Your suggestions were very helpful. I now realise that 'T' has to be type iterator and therefore doesn't need to be passed by reference. Code now compiles. Cheers!
Bookmarks