Language: Java

                                import  java.util.Scanner;
                                 
                                public class Main{
                                	public static void Main(String[] args){
                                      Scanner sc = new Scanner();
                                      String str = "";
                                      while(sc.hasNext()){
                                        str  = sc.next();
                                      }
                                       String[] str2 = str.split(" ");
                                      //String[] str2;
                                      //str2 = new String[2];
                                      //str2 = str.split(" ");
                                      int num1 = Integer.parseInt(str2[0]);
                                       int num2 = Integer.parseInt(str2[1]);
                                        
                                       if(num1 >= 13){
                                         System.out.println(String.valueOf(num2));
                                       }else if(num1 >= 6){
                                         System.out.println(String.valueOf(num2/2));
                                       }else {
                                         System.out.println(String.valueOf(0));
                                       }
                                    }
                                 }

Compiler output:
Main.java:5: error: no suitable constructor found for Scanner(no arguments)
                                      Scanner sc = new Scanner();
                                                   ^
    constructor Scanner.Scanner(Readable,Pattern) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(Readable) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(InputStream) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(InputStream,String) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(InputStream,Charset) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(File) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(File,String) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(File,Charset) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(File,CharsetDecoder) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(Path) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(Path,String) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(Path,Charset) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(String) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(ReadableByteChannel) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(ReadableByteChannel,String) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(ReadableByteChannel,Charset) is not applicable
      (actual and formal argument lists differ in length)
1 error