F.A.Q
Hand In Hand
Online Acmers
Problem Archive
Realtime Judge Status
Authors Ranklist
 
     C/C++/Java Exams     
ACM Steps
Go to Job
Contest LiveCast
ICPC@China
Best Coder beta
VIP | STD Contests
    DIY | Web-DIY beta
Author ID 
Password 
 Register new ID

View Compilation Error

203896_0_13143\Main.java:9: 已在 main(java.lang.String[]) 中定义 n
        int n=cin.nextInt();
            ^
203896_0_13143\Main.java:12: 已在 main(java.lang.String[]) 中定义 m
          int m=cin.nextInt();
              ^
203896_0_13143\Main.java:16: 找不到符号
符号: 变量 a
位置: 类 Main
            a=cin.nextInt();  sum=sum+a;
            ^
203896_0_13143\Main.java:16: 找不到符号
符号: 变量 a
位置: 类 Main
            a=cin.nextInt();  sum=sum+a;
                                      ^
203896_0_13143\Main.java:16: 运算符 + 不能应用于 int,a
            a=cin.nextInt();  sum=sum+a;
                                  ^
203896_0_13143\Main.java:16: 不兼容的类型
找到: <nulltype>
需要: int
            a=cin.nextInt();  sum=sum+a;
                                     ^
6 错误


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2024 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.000000(s) query 1, Server time : 2024-12-02 23:32:07, Gzip enabled