0_0_19026501_12370.cpp:1:1: error: 'import' does not name a type
import java.util.Scanner;
^
0_0_19026501_12370.cpp:4:9: error: expected ':' before 'static'
public static void main(String[] args) {
^
0_0_19026501_12370.cpp:4:26: error: 'String' has not been declared
public static void main(String[] args) {
^
0_0_19026501_12370.cpp:4:35: error: expected ',' or '...' before 'args'
public static void main(String[] args) {
^
0_0_19026501_12370.cpp:20:1: error: expected ';' after class definition
}
^
0_0_19026501_12370.cpp: In static member function 'static void Main::main(int*)':
0_0_19026501_12370.cpp:5:3: error: 'Scanner' was not declared in this scope
Scanner sc = new Scanner(System.in);
^
0_0_19026501_12370.cpp:6:11: error: 'sc' was not declared in this scope
int n = sc.nextInt();
^
0_0_19026501_12370.cpp:9:4: error: 'String' was not declared in this scope
String str = sc.nextLine();
^
0_0_19026501_12370.cpp:10:4: error: 'byte' was not declared in this scope
byte buf[] = str.getBytes();
^
0_0_19026501_12370.cpp:12:13: error: expected ';' before 'b'
for(byte b:buf){
^
0_0_19026501_12370.cpp:19:2: error: expected primary-expression at end of input
}
^
0_0_19026501_12370.cpp:19:2: error: expected ';' at end of input
0_0_19026501_12370.cpp:19:2: error: expected primary-expression at end of input
0_0_19026501_12370.cpp:19:2: error: expected ')' at end of input
0_0_19026501_12370.cpp:19:2: error: expected statement at end of input
0_0_19026501_12370.cpp:19:2: error: expected '}' at end of input
0_0_19026501_12370.cpp:19:2: error: expected '}' at end of input
|