Language: Java

import java.util.Scanner;

public class Main {
	public static void main(String args[]){
		Scanner sc = new Scanner(System.in);
		
		long long int D = 0;
		long long int N = sc.nextlong long int();
		long long int K = sc.nextlong long int();
		
		long long int c[] = new long long int[100000];
		

		for(long long int i = 0; i<N; i++){
			long long int a = sc.nextlong long int();
			long long int b = sc.nextlong long int();
			
			c[a-1] = c[a-1] + b;			
		}
		

		long long int j = 0;
		
		while(K>0){
			D = j + 1;
			K = K - c[j];
			j++;
		}
		
		System.out.prlong long intln(D);
	}
}


Compiler output:
Main.java:7: error: not a statement
		long long int D = 0;
		^
Main.java:7: error: ';' expected
		long long int D = 0;
		    ^
Main.java:7: error: not a statement
		long long int D = 0;
		     ^
Main.java:7: error: ';' expected
		long long int D = 0;
		         ^
Main.java:8: error: not a statement
		long long int N = sc.nextlong long int();
		^
Main.java:8: error: ';' expected
		long long int N = sc.nextlong long int();
		    ^
Main.java:8: error: not a statement
		long long int N = sc.nextlong long int();
		     ^
Main.java:8: error: ';' expected
		long long int N = sc.nextlong long int();
		         ^
Main.java:8: error: ';' expected
		long long int N = sc.nextlong long int();
		                             ^
Main.java:8: error: not a statement
		long long int N = sc.nextlong long int();
		                              ^
Main.java:8: error: ';' expected
		long long int N = sc.nextlong long int();
		                                  ^
Main.java:8: error: not a statement
		long long int N = sc.nextlong long int();
		                                   ^
Main.java:8: error: ';' expected
		long long int N = sc.nextlong long int();
		                                      ^
Main.java:9: error: not a statement
		long long int K = sc.nextlong long int();
		^
Main.java:9: error: ';' expected
		long long int K = sc.nextlong long int();
		    ^
Main.java:9: error: not a statement
		long long int K = sc.nextlong long int();
		     ^
Main.java:9: error: ';' expected
		long long int K = sc.nextlong long int();
		         ^
Main.java:9: error: ';' expected
		long long int K = sc.nextlong long int();
		                             ^
Main.java:9: error: not a statement
		long long int K = sc.nextlong long int();
		                              ^
Main.java:9: error: ';' expected
		long long int K = sc.nextlong long int();
		                                  ^
Main.java:9: error: not a statement
		long long int K = sc.nextlong long int();
		                                   ^
Main.java:9: error: ';' expected
		long long int K = sc.nextlong long int();
		                                      ^
Main.java:11: error: not a statement
		long long int c[] = new long long int[100000];
		^
Main.java:11: error: ';' expected
		long long int c[] = new long long int[100000];
		    ^
Main.java:11: error: not a statement
		long long int c[] = new long long int[100000];
		     ^
Main.java:11: error: ';' expected
		long long int c[] = new long long int[100000];
		         ^
Main.java:11: error: '[' expected
		long long int c[] = new long long int[100000];
		                            ^
Main.java:11: error: '.class' expected
		long long int c[] = new long long int[100000];
		                                  ^
Main.java:11: error: ']' expected
		long long int c[] = new long long int[100000];
		                                      ^
Main.java:11: error: not a statement
		long long int c[] = new long long int[100000];
		                                     ^
Main.java:14: error: not a statement
		for(long long int i = 0; i<N; i++){
		    ^
Main.java:14: error: ';' expected
		for(long long int i = 0; i<N; i++){
		        ^
Main.java:14: error: '.class' expected
		for(long long int i = 0; i<N; i++){
		              ^
Main.java:14: error: '.class' expected
		for(long long int i = 0; i<N; i++){
		                  ^
Main.java:14: error: > or ',' expected
		for(long long int i = 0; i<N; i++){
		                            ^
Main.java:14: error: not a statement
		for(long long int i = 0; i<N; i++){
		                          ^
Main.java:14: error: ';' expected
		for(long long int i = 0; i<N; i++){
		                                 ^
Main.java:15: error: not a statement
			long long int a = sc.nextlong long int();
			^
Main.java:15: error: ';' expected
			long long int a = sc.nextlong long int();
			    ^
Main.java:15: error: not a statement
			long long int a = sc.nextlong long int();
			     ^
Main.java:15: error: ';' expected
			long long int a = sc.nextlong long int();
			         ^
Main.java:15: error: ';' expected
			long long int a = sc.nextlong long int();
			                             ^
Main.java:15: error: not a statement
			long long int a = sc.nextlong long int();
			                              ^
Main.java:15: error: ';' expected
			long long int a = sc.nextlong long int();
			                                  ^
Main.java:15: error: not a statement
			long long int a = sc.nextlong long int();
			                                   ^
Main.java:15: error: ';' expected
			long long int a = sc.nextlong long int();
			                                      ^
Main.java:16: error: not a statement
			long long int b = sc.nextlong long int();
			^
Main.java:16: error: ';' expected
			long long int b = sc.nextlong long int();
			    ^
Main.java:16: error: not a statement
			long long int b = sc.nextlong long int();
			     ^
Main.java:16: error: ';' expected
			long long int b = sc.nextlong long int();
			         ^
Main.java:16: error: ';' expected
			long long int b = sc.nextlong long int();
			                             ^
Main.java:16: error: not a statement
			long long int b = sc.nextlong long int();
			                              ^
Main.java:16: error: ';' expected
			long long int b = sc.nextlong long int();
			                                  ^
Main.java:16: error: not a statement
			long long int b = sc.nextlong long int();
			                                   ^
Main.java:16: error: ';' expected
			long long int b = sc.nextlong long int();
			                                      ^
Main.java:22: error: not a statement
		long long int j = 0;
		^
Main.java:22: error: ';' expected
		long long int j = 0;
		    ^
Main.java:22: error: not a statement
		long long int j = 0;
		     ^
Main.java:22: error: ';' expected
		long long int j = 0;
		         ^
Main.java:30: error: not a statement
		System.out.prlong long intln(D);
		          ^
Main.java:30: error: ';' expected
		System.out.prlong long intln(D);
		                 ^
Main.java:30: error: ';' expected
		System.out.prlong long intln(D);
		                            ^
Main.java:30: error: not a statement
		System.out.prlong long intln(D);
		                             ^
Main.java:30: error: ';' expected
		System.out.prlong long intln(D);
		                              ^
64 errors