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_38417743_19284.cpp:1:1: error: 'import' does not name a type
 import java.util.Scanner;
 ^
0_0_38417743_19284.cpp:8:12: error: expected ':' before 'dfs'
     public dfs(){}
            ^
0_0_38417743_19284.cpp:9:12: error: expected ':' before 'void'
     public void dfs1(int k){
            ^
0_0_38417743_19284.cpp:26:1: error: expected ';' after class definition
 }
 ^
0_0_38417743_19284.cpp:4:30: error: array must be initialized with a brace-enclosed initializer
     int result[] = new int[15];
                              ^
0_0_38417743_19284.cpp:5:30: error: array must be initialized with a brace-enclosed initializer
     int xflect[] = new int[15];
                              ^
0_0_38417743_19284.cpp:6:30: error: array must be initialized with a brace-enclosed initializer
     int lflect[] = new int[30];
                              ^
0_0_38417743_19284.cpp:7:30: error: array must be initialized with a brace-enclosed initializer
     int rflect[] = new int[30];
                              ^
0_0_38417743_19284.cpp: In member function 'void dfs::dfs1(int)':
0_0_38417743_19284.cpp:11:18: error: request for member 'sum' in '(dfs*)this', which is of pointer type 'dfs*' (maybe you meant to use '->' ?)
             this.sum++;
                  ^
0_0_38417743_19284.cpp:19:22: error: request for member 'dfs1' in '(dfs*)this', which is of pointer type 'dfs*' (maybe you meant to use '->' ?)
                 this.dfs1(k+1);
                      ^
0_0_38417743_19284.cpp: At global scope:
0_0_38417743_19284.cpp:28:12: error: expected ':' before 'static'
     public static void main(String[] args) {
            ^
0_0_38417743_19284.cpp:28:29: error: 'String' has not been declared
     public static void main(String[] args) {
                             ^
0_0_38417743_19284.cpp:28:38: error: expected ',' or '...' before 'args'
     public static void main(String[] args) {
                                      ^
0_0_38417743_19284.cpp:44:1: error: expected ';' after class definition
 }
 ^
0_0_38417743_19284.cpp: In static member function 'static void Main::main(int*)':
0_0_38417743_19284.cpp:29:25: error: conversion from 'dfs*' to non-scalar type 'dfs' requested
         dfs d = new dfs();
                         ^
0_0_38417743_19284.cpp:30:9: error: 'Scanner' was not declared in this scope
         Scanner scan =new Scanner(System.in);
         ^
0_0_38417743_19284.cpp:3:9: error: 'int dfs::n' is private
     int n,sum;
         ^
0_0_38417743_19284.cpp:32:15: error: within this context
             d.n=i;
               ^
0_0_38417743_19284.cpp:3:11: error: 'int dfs::sum' is private
     int n,sum;
           ^
0_0_38417743_19284.cpp:33:15: error: within this context
             d.sum=0;
               ^
0_0_38417743_19284.cpp:4:30: error: 'int dfs::result [0]' is private
     int result[] = new int[15];
                              ^
0_0_38417743_19284.cpp:35:15: error: within this context
             d.result[i]=d.sum;
               ^
0_0_38417743_19284.cpp:3:11: error: 'int dfs::sum' is private
     int n,sum;
           ^
0_0_38417743_19284.cpp:35:27: error: within this context
             d.result[i]=d.sum;
                           ^
0_0_38417743_19284.cpp:3:9: error: 'int dfs::n' is private
     int n,sum;
         ^
0_0_38417743_19284.cpp:37:11: error: within this context
         d.n = scan.nextInt();
           ^
0_0_38417743_19284.cpp:37:15: error: 'scan' was not declared in this scope
         d.n = scan.nextInt();
               ^
0_0_38417743_19284.cpp:3:9: error: 'int dfs::n' is private
     int n,sum;
         ^
0_0_38417743_19284.cpp:38:17: error: within this context
         while(d.n!=0){
                 ^
0_0_38417743_19284.cpp:39:13: error: 'System' was not declared in this scope
             System.out.println(d.result[d.n]);
             ^
0_0_38417743_19284.cpp:4:30: error: 'int dfs::result [0]' is private
     int result[] = new int[15];
                              ^
0_0_38417743_19284.cpp:39:34: error: within this context
             System.out.println(d.result[d.n]);
                                  ^
0_0_38417743_19284.cpp:3:9: error: 'int dfs::n' is private
     int n,sum;
         ^
0_0_38417743_19284.cpp:39:43: error: within this context
             System.out.println(d.result[d.n]);
                                           ^
0_0_38417743_19284.cpp:3:9: error: 'int dfs::n' is private
     int n,sum;
         ^
0_0_38417743_19284.cpp:40:15: error: within this context
             d.n = scan.nextInt();
               ^


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-17 00:32:46, Gzip enabled