Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
5447 谢锦卓 [在线测评解答教程] A+B Problem C++ Compile Error 0 MS 0 KB 253 2024-11-16 10:43:04

Tests(0/0):


Code:

import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner in = new Scanner(System.in); int a = in.nextInt(); int b = in.nextInt(); System.out.print(a + b + "\n"); } }


Run Info:

Main.cc:1:1: error: 'import' does not name a type
 import java.util.Scanner;
 ^
Main.cc:3:1: error: expected unqualified-id before 'public'
 public class Main {
 ^