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_26097158_16736.cpp:16:2: error: stray '@' in program
  @SuppressWarnings("resource")
  ^
0_0_26097158_16736.cpp:2:1: error: 'import' does not name a type
 import java.util.Scanner;
 ^
0_0_26097158_16736.cpp:6:12: error: field 'node' has incomplete type 'Node [0]'
  Node node[];
            ^
0_0_26097158_16736.cpp:8:9: error: expected ':' before 'Node'
  public Node(int x, Node node[]) {
         ^
0_0_26097158_16736.cpp:13:1: error: expected ';' after class definition
 }
 ^
0_0_26097158_16736.cpp: In constructor 'Node::Node(int, Node*)':
0_0_26097158_16736.cpp:10:8: error: request for member 'x' in '(Node*)this', which is of pointer type 'Node*' (maybe you meant to use '->' ?)
   this.x = x;//璁板綍鏄惁涓哄瓧绗︿覆鐨勬湯灏
        ^
0_0_26097158_16736.cpp:11:8: error: request for member 'node' in '(Node*)this', which is of pointer type 'Node*' (maybe you meant to use '->' ?)
   this.node = node;
        ^
0_0_26097158_16736.cpp: At global scope:
0_0_26097158_16736.cpp:15: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-07-05 04:32:07, Gzip enabled