Mã chấm Tài khoản Bài tập Ngôn ngữ lập trình Trạng thái Thời gian Bộ nhớ Kích thước Thời gian nộp
632148 Nguyễn Minh Huy Nhập xuất cơ bản Java Lỗi biên dịch (CE) 0 MS 0 KB 372 2025-03-04 10:21:26

Lỗi biên dịch:

Main.java:4: error: cannot find symbol
		Scanner scanner = new scanner (System.in);
		                      ^
  symbol:   class scanner
  location: class Main
Main.java:5: error: cannot find symbol
String str = scanner.next.Line();
                    ^
  symbol:   variable next
  location: variable scanner of type Scanner
Main.java:10: error: no suitable method found for println(String,double)
System.out.println("%.2f", doubleValue);
          ^
    method PrintStream.println() is not applicable
      (actual and formal argument lists differ in length)
    method PrintStream.println(boolean) is not applicable
      (actual and formal argument lists differ in length)
    method PrintStream.println(char) is not applicable
      (actual and formal argument lists differ in length)
    method PrintStream.println(int) is not applicable
      (actual and formal argument lists differ in length)
    method PrintStream.println(long) is not applicable
      (actual and formal argument lists differ in length)
    method PrintStream.println(float) is not applicable
      (actual and formal argument lists differ in length)
    method PrintStream.println(double) is not applicable
      (actual and formal argument lists differ in length)
    method PrintStream.println(char[]) is not applicable
      (actual and formal argument lists differ in length)
    method PrintStream.println(String) is not applicable
      (actual and formal argument lists differ in length)
    method PrintStream.println(Object) is not applicable
      (actual and formal argument lists differ in length)
3 errors