Originally Posted by
grumpy
You are aware that, if you obtained a compiler, you could experiment with such questions, and learn more in the doing. Throwing random, undirected, and (mostly) trivial and pointless questions at a forum is an effective way to annoy other people by wasting their time, while minimising your chances of learning anything useful.
You might also try explaining WHY you think line 2 is valid, but that lines 1 and 3 are not. The process of writing that description down will take more effort on your part, but you will learn more in the process, and annoy other people less when they see you applying genuine efforts to understand rather than asking increasingly pointless questions.
Note that, with templates, it is often necessary to write a program which actually instantiates a template class or that calls a template function, since some types of coding errors only arise when instantiating a template, or using the instantiation.