0_0_23600726_6284.cpp:1:1: error: 'import' does not name a type
import java.util.*;
^
0_0_23600726_6284.cpp:4:2: error: 'StringBuffer' does not name a type
StringBuffer s = new StringBuffer();
^
0_0_23600726_6284.cpp:6:9: error: expected ':' before 'void'
public void ss(String s) {
^
0_0_23600726_6284.cpp:6:17: error: 'String' has not been declared
public void ss(String s) {
^
0_0_23600726_6284.cpp:10:9: error: expected ':' before 'int'
public int ansS() {
^
0_0_23600726_6284.cpp:22:1: error: expected ';' after class definition
}
^
0_0_23600726_6284.cpp: In member function 'void A::ss(int)':
0_0_23600726_6284.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_23600726_6284.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_23600726_6284.cpp: In member function 'int A::ansS()':
0_0_23600726_6284.cpp:12:7: error: 's' was not declared in this scope
a = s.charAt(0);
^
0_0_23600726_6284.cpp: At global scope:
0_0_23600726_6284.cpp:24:1: error: expected unqualified-id before 'public'
public class Main {
^
|