Home STD Contest Notification Clarification Problems Ranklist Status Print Sign Out

View Compilation Error

1_728_5753_25428.cpp:1:1: error: 'import' does not name a type
 import java.io.*;
 ^
1_728_5753_25428.cpp:2:1: error: 'import' does not name a type
 import java.util.*;
 ^
1_728_5753_25428.cpp:3:1: error: 'import' does not name a type
 import java.math.*;
 ^
1_728_5753_25428.cpp:4:1: error: 'import' does not name a type
 import java.lang.String.*;
 ^
1_728_5753_25428.cpp:6:9: error: expected ':' before 'static'
  public static void main(String[] args) {
         ^
1_728_5753_25428.cpp:6:26: error: 'String' has not been declared
  public static void main(String[] args) {
                          ^
1_728_5753_25428.cpp:6:35: error: expected ',' or '...' before 'args'
  public static void main(String[] args) {
                                   ^
1_728_5753_25428.cpp:125:1: error: expected ';' after class definition
 }
 ^
1_728_5753_25428.cpp: In static member function 'static void Main::main(int*)':
1_728_5753_25428.cpp:7:3: error: 'Scanner' was not declared in this scope
   Scanner cin = new Scanner(System.in);
   ^
1_728_5753_25428.cpp:8:3: error: 'BigInteger' was not declared in this scope
   BigInteger zero = new BigInteger("0");
   ^
1_728_5753_25428.cpp:9:11: error: 'cin' was not declared in this scope
   int T = cin.nextInt();
           ^
1_728_5753_25428.cpp:11:4: error: 'System' was not declared in this scope
    System.out.println("Case #"+t+":");
    ^
1_728_5753_25428.cpp:11:34: error: invalid operands of types 'const char*' and 'const char [2]' to binary 'operator+'
    System.out.println("Case #"+t+":");
                                  ^
1_728_5753_25428.cpp:12:15: error: expected ';' before 'x'
    BigInteger x = cin.nextBigInteger();
               ^
1_728_5753_25428.cpp:13:4: error: 'String' was not declared in this scope
    String [] ans = new String [55];
    ^
1_728_5753_25428.cpp:13:12: error: expected primary-expression before ']' token
    String [] ans = new String [55];
            ^
1_728_5753_25428.cpp:15:11: error: 'x' was not declared in this scope
    while(!x.equals(zero)){
           ^
1_728_5753_25428.cpp:15:20: error: 'zero' was not declared in this scope
    while(!x.equals(zero)){
                    ^
1_728_5753_25428.cpp:18:10: error: expected unqualified-id before '[' token
     char [] tem = x.toString().toCharArray();
          ^
1_728_5753_25428.cpp:19:10: error: expected unqualified-id before '[' token
     char [] tmp = new char[len];
          ^
1_728_5753_25428.cpp:22:6: error: 'ans' was not declared in this scope
      ans[tot] = x.toString();
      ^
1_728_5753_25428.cpp:25:8: error: 'tem' was not declared in this scope
     if(tem[len-1] == '0'){
        ^
1_728_5753_25428.cpp:28:7: error: 'tmp' was not declared in this scope
       tmp = new char[len];
       ^
1_728_5753_25428.cpp:35:7: error: 'tmp' was not declared in this scope
       tmp[0] = tmp[len-1] = tem[0];
       ^
1_728_5753_25428.cpp:53:8: error: 'tmp' was not declared in this scope
        tmp[i] = tem[i];
        ^
1_728_5753_25428.cpp:63:9: error: 'tmp' was not declared in this scope
         tmp[i] = tem[i];
         ^
1_728_5753_25428.cpp:66:9: error: 'tmp' was not declared in this scope
         tmp[mid+i] = tmp[mid-i];
         ^
1_728_5753_25428.cpp:71:9: error: 'tmp' was not declared in this scope
         tmp[i] = tem[i];
         ^
1_728_5753_25428.cpp:74:9: error: 'tmp' was not declared in this scope
         tmp[mid+i] = tmp[mid-i];
         ^
1_728_5753_25428.cpp:91:8: error: 'tmp' was not declared in this scope
        tmp[i] = tem[i];
        ^
1_728_5753_25428.cpp:101:9: error: 'tmp' was not declared in this scope
         tmp[len-1-i] = tmp[i] = tem[i];
         ^
1_728_5753_25428.cpp:106:9: error: 'tmp' was not declared in this scope
         tmp[len-1-i] = tmp[i] = tem[i];
         ^
1_728_5753_25428.cpp:111:12: error: expected ';' before 'str'
     String str = new String(tmp);
            ^
1_728_5753_25428.cpp:112:16: error: expected ';' before 'y'
     BigInteger y = new BigInteger(str);
                ^
1_728_5753_25428.cpp:115:5: error: 'ans' was not declared in this scope
     ans[tot] = str;
     ^
1_728_5753_25428.cpp:115:16: error: 'str' was not declared in this scope
     ans[tot] = str;
                ^
1_728_5753_25428.cpp:116:20: error: 'y' was not declared in this scope
     x = x.subtract(y);
                    ^
1_728_5753_25428.cpp:120:24: error: 'ans' was not declared in this scope
     System.out.println(ans[i]);
                        ^


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-06-27 01:02:47, Gzip enabled