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_36655531_28082.cpp:1:1: error: 'package' does not name a type
 package hdu1413;
 ^
0_0_36655531_28082.cpp:3:1: error: 'import' does not name a type
 import java.util.Scanner;
 ^
0_0_36655531_28082.cpp:6:2: error: 'String' does not name a type
  String fileName;
  ^
0_0_36655531_28082.cpp:7:7: error: field 'next' has incomplete type 'File'
  File next;
       ^
0_0_36655531_28082.cpp:8:9: error: expected ':' before 'File'
  public File(String n){
         ^
0_0_36655531_28082.cpp:8:21: error: expected ')' before 'n'
  public File(String n){
                     ^
0_0_36655531_28082.cpp:11:1: error: expected ';' after class definition
 }
 ^
0_0_36655531_28082.cpp:13:2: error: 'String' does not name a type
  String dirName;
  ^
0_0_36655531_28082.cpp:14:6: error: field 'firstC' has incomplete type 'Dir'
  Dir firstC,NextS,parent;
      ^
0_0_36655531_28082.cpp:14:13: error: field 'NextS' has incomplete type 'Dir'
  Dir firstC,NextS,parent;
             ^
0_0_36655531_28082.cpp:14:19: error: field 'parent' has incomplete type 'Dir'
  Dir firstC,NextS,parent;
                   ^
0_0_36655531_28082.cpp:16:2: error: 'boolean' does not name a type
  boolean isnull;
  ^
0_0_36655531_28082.cpp:17:9: error: expected ':' before 'static'
  public static void traversal(Dir root){
         ^
0_0_36655531_28082.cpp:24:9: error: expected ':' before 'boolean'
  public boolean create(File f){
         ^
0_0_36655531_28082.cpp:24:9: error: 'boolean' does not name a type
0_0_36655531_28082.cpp:41:9: error: expected ':' before 'boolean'
  public boolean delete(String fname){
         ^
0_0_36655531_28082.cpp:41:9: error: 'boolean' does not name a type
0_0_36655531_28082.cpp:61:9: error: expected ':' before 'Dir'
  public Dir enter(String dname){
         ^
0_0_36655531_28082.cpp:61:19: error: 'String' has not been declared
  public Dir enter(String dname){
                   ^
0_0_36655531_28082.cpp:72:9: error: expected ':' before 'boolean'
  public boolean remove(String dname){
         ^
0_0_36655531_28082.cpp:72:9: error: 'boolean' does not name a type
0_0_36655531_28082.cpp:94:9: error: expected ':' before 'boolean'
  public boolean establish(Dir d){
         ^
0_0_36655531_28082.cpp:94:9: error: 'boolean' does not name a type
0_0_36655531_28082.cpp:111:9: error: expected ':' before 'Dir'
  public Dir(String n,Dir p){
         ^
0_0_36655531_28082.cpp:111:20: error: expected ')' before 'n'
  public Dir(String n,Dir p){
                    ^
0_0_36655531_28082.cpp:116:9: error: expected ':' before 'Dir'
  public Dir(String n){
         ^
0_0_36655531_28082.cpp:116:20: error: expected ')' before 'n'
  public Dir(String n){
                    ^
0_0_36655531_28082.cpp:120:1: error: expected ';' after class definition
 }
 ^
0_0_36655531_28082.cpp: In static member function 'static void Dir::traversal(Dir)':
0_0_36655531_28082.cpp:18:12: error: 'null' was not declared in this scope
   if(root==null)return;
            ^
0_0_36655531_28082.cpp:19:3: error: 'System' was not declared in this scope
   System.out.print("-"+root.dirName);
   ^
0_0_36655531_28082.cpp:19:29: error: 'class Dir' has no member named 'dirName'
   System.out.print("-"+root.dirName);
                             ^
0_0_36655531_28082.cpp: In member function 'Dir Dir::enter(int)':
0_0_36655531_28082.cpp:62:11: error: request for member 'firstC' in '(Dir*)this', which is of pointer type 'Dir*' (maybe you meant to use '->' ?)
   if(this.firstC==null)return null;
           ^
0_0_36655531_28082.cpp:62:19: error: 'null' was not declared in this scope
   if(this.firstC==null)return null;
                   ^
0_0_36655531_28082.cpp:64:15: error: request for member 'firstC' in '(Dir*)this', which is of pointer type 'Dir*' (maybe you meant to use '->' ?)
    Dir p=this.firstC;
               ^
0_0_36655531_28082.cpp:66:10: error: 'class Dir' has no member named 'dirName'
     if(p.dirName.equals(dname))return p;
          ^
0_0_36655531_28082.cpp:70:10: error: 'null' was not declared in this scope
   return null;
          ^
0_0_36655531_28082.cpp: At global scope:
0_0_36655531_28082.cpp:121: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-22 17:39:42, Gzip enabled