View Code of Problem 1

import java.util.Scanner;
	    public class Main {
		    private static Scanner input;

			public static void main(String[] args) {
			input = new Scanner(System.in);
			int a = input.nextInt();
			int b = input.nextInt();
			System.out.println(a + b);
		}
	}

/*
Main.c:1:1: error: unknown type name 'import'
 import java.util.Scanner;
 ^
Main.c:1:12: error: expected '=', ',', ';', 'asm' or '__attribute__' before '.' token
 import java.util.Scanner;
            ^
Main.c:2:6: error: unknown type name 'public'
      public class Main {
      ^
Main.c:2:19: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'Main'
      public class Main {
                   ^
*/

Double click to view unformatted code.


Back to problem 1