import java.util.*; //编译错误估计你没导包
public class Main
{
public static void main(String[] args)
{
Scanner cin = new Scanner(System.in);
while(cin.hasNext()){
int a = cin.nextInt(); //这里我用int acm 估计要用double
int b = cin.nextInt();
System.out.println(a+b);
//System.out.printf("%d\n",a+b); 也可以用c的printf进行输出
}
}
}
你没有导入Scanner包import java.util.Scanner;