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_33535582_13675.cpp:1:1: error: 'import' does not name a type
 import java.util.*;
 ^
0_0_33535582_13675.cpp:2:1: error: 'import' does not name a type
 import java.math.*;
 ^
0_0_33535582_13675.cpp:5:12: error: expected ':' before 'static'
     public static void main(String[] args) {
            ^
0_0_33535582_13675.cpp:5:29: error: 'String' has not been declared
     public static void main(String[] args) {
                             ^
0_0_33535582_13675.cpp:5:38: error: expected ',' or '...' before 'args'
     public static void main(String[] args) {
                                      ^
0_0_33535582_13675.cpp:18:1: error: expected ';' after class definition
 }
 ^
0_0_33535582_13675.cpp: In static member function 'static void demo1::main(int*)':
0_0_33535582_13675.cpp:6:9: error: 'Scanner' was not declared in this scope
         Scanner kb = new Scanner(System.in);
         ^
0_0_33535582_13675.cpp:7:17: error: 'kb' was not declared in this scope
         int n = kb.nextInt();
                 ^
0_0_33535582_13675.cpp:9:13: error: 'String' was not declared in this scope
             String s1,s2;
             ^
0_0_33535582_13675.cpp:10:13: error: 's1' was not declared in this scope
             s1 = kb.next();
             ^
0_0_33535582_13675.cpp:11:13: error: 's2' was not declared in this scope
             s2 = kb.next();
             ^
0_0_33535582_13675.cpp:12:13: error: 'BigInteger' was not declared in this scope
             BigInteger a = new BigInteger(s1,2);
             ^
0_0_33535582_13675.cpp:13:24: error: expected ';' before 'b'
             BigInteger b = new BigInteger(s2,2);
                        ^
0_0_33535582_13675.cpp:14:24: error: expected ';' before 'c'
             BigInteger c = a.gcd(b);
                        ^
0_0_33535582_13675.cpp:15:13: error: 'System' was not declared in this scope
             System.out.println("Case #" + i + ": " + c.toString(2));
             ^
0_0_33535582_13675.cpp:15:47: error: invalid operands of types 'const char*' and 'const char [3]' to binary 'operator+'
             System.out.println("Case #" + i + ": " + c.toString(2));
                                               ^
0_0_33535582_13675.cpp:15:54: error: 'c' was not declared in this scope
             System.out.println("Case #" + i + ": " + c.toString(2));
                                                      ^


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2025 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.000000(s) query 1, Server time : 2025-01-10 21:47:42, Gzip enabled