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

0_0_19059154_11393.cpp:3:12: error: 'a' does not name a type
            a=0;
            ^
0_0_19059154_11393.cpp:4:12: error: 'b' does not name a type
            b=0;
            ^
0_0_19059154_11393.cpp:5:12: error: 'Scanner' does not name a type
            Scanner reader =new Scanner(System.in);
            ^
0_0_19059154_11393.cpp:6:12: error: 'a' does not name a type
            a=reader.nextInt();
            ^
0_0_19059154_11393.cpp:7:12: error: 'b' does not name a type
            b=reader.nextInt();
            ^
0_0_19059154_11393.cpp:8:12: error: 'System' does not name a type
            System.out.println(a+b);
            ^


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-10-06 10:39:30, Gzip enabled