When you get this error it is because you need to import the annotation classes into the file you are using them in.
For @Route and @Template this is:
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;use Sensio\Bundle\FrameworkExtraBundle\Configuration\Template;