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_19195953_3795.cpp:1:1: error: 'import' does not name a type
 import java.util.*;
 ^
0_0_19195953_3795.cpp:4:2: error: 'StringBuffer' does not name a type
  StringBuffer s = new StringBuffer();
  ^
0_0_19195953_3795.cpp:6:9: error: expected ':' before 'void'
  public void ss(String s) {
         ^
0_0_19195953_3795.cpp:6:17: error: 'String' has not been declared
  public void ss(String s) {
                 ^
0_0_19195953_3795.cpp:10:9: error: expected ':' before 'int'
  public int ansS() {
         ^
0_0_19195953_3795.cpp:22:1: error: expected ';' after class definition
 }
 ^
0_0_19195953_3795.cpp: In member function 'void A::ss(int)':
0_0_19195953_3795.cpp:7:8: error: request for member 's' in '(A*)this', which is of pointer type 'A*' (maybe you meant to use '->' ?)
   this.s = this.s.append(s);
        ^
0_0_19195953_3795.cpp:7:17: error: request for member 's' in '(A*)this', which is of pointer type 'A*' (maybe you meant to use '->' ?)
   this.s = this.s.append(s);
                 ^
0_0_19195953_3795.cpp: In member function 'int A::ansS()':
0_0_19195953_3795.cpp:12:7: error: 's' was not declared in this scope
   a = s.charAt(0);
       ^
0_0_19195953_3795.cpp: At global scope:
0_0_19195953_3795.cpp:24:1: error: expected unqualified-id before 'public'
 public class Main {
 ^


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-11-16 13:41:57, Gzip enabled