Is boiler-plate code required for challenges? [duplicate]

When solving a puzzle with an appropriate solution, does the programming language standard boiler-plate source code need to be included:

For example, should I include all of this:

using System;
using System.Linq;

public class Program
{
public static void Main()
{
Console.WriteLine("Code Golfing Is My Favourite Sport!");
}
}


Alternatively, is it enough to include the actual specific code which solves the challenge, i.e.:

Console.WriteLine("Code Golfing Is My Favourite Sport!");

• Submissions should be either a program or a function, not a snippet. If you choose to submit a program -- yes, a function -- language-dependent and we don't really have a clear consensus. – user202729 Mar 15 '18 at 8:24
• – user202729 Mar 15 '18 at 8:29
• Closures and fuctions are legal, but snippets are not. That is a snippet. – Magic Octopus Urn Mar 15 '18 at 12:54