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_39696333_14801\Main.java:3: 错误: 需要class, interface或enum
    public static void main(String[] args) {
                  ^
0_0_39696333_14801\Main.java:5: 错误: 需要class, interface或enum
        while (scanner.hasNext()){
        ^
0_0_39696333_14801\Main.java:7: 错误: 需要class, interface或enum
            char center=scanner.next().charAt(0);
            ^
0_0_39696333_14801\Main.java:8: 错误: 需要class, interface或enum
            char boundary=scanner.next().charAt(0);
            ^
0_0_39696333_14801\Main.java:9: 错误: 需要class, interface或enum
            char[][] arr=new char[81][81];
            ^
0_0_39696333_14801\Main.java:10: 错误: 需要class, interface或enum
            for (int i=0;i<81;i++){
            ^
0_0_39696333_14801\Main.java:10: 错误: 需要class, interface或enum
            for (int i=0;i<81;i++){
                         ^
0_0_39696333_14801\Main.java:10: 错误: 需要class, interface或enum
            for (int i=0;i<81;i++){
                              ^
0_0_39696333_14801\Main.java:11: 错误: 需要class, interface或enum
                for (int k=0;k<81;k++){
                             ^
0_0_39696333_14801\Main.java:11: 错误: 需要class, interface或enum
                for (int k=0;k<81;k++){
                                  ^
0_0_39696333_14801\Main.java:13: 错误: 需要class, interface或enum
                }
                ^
0_0_39696333_14801\Main.java:16: 错误: 需要class, interface或enum
            while(num-2*k>0){
            ^
0_0_39696333_14801\Main.java:18: 错误: 需要class, interface或enum
                    for(int i=k;i<=num-k-1;i++){
                                ^
0_0_39696333_14801\Main.java:18: 错误: 需要class, interface或enum
                    for(int i=k;i<=num-k-1;i++){
                                           ^
0_0_39696333_14801\Main.java:20: 错误: 需要class, interface或enum
                        arr[i][k]=boundary;
                        ^
0_0_39696333_14801\Main.java:21: 错误: 需要class, interface或enum
                        arr[num-k-1][i]=boundary;
                        ^
0_0_39696333_14801\Main.java:22: 错误: 需要class, interface或enum
                        arr[i][num-k-1]=boundary;
                        ^
0_0_39696333_14801\Main.java:23: 错误: 需要class, interface或enum
                    }
                    ^
0_0_39696333_14801\Main.java:25: 错误: 需要class, interface或enum
                    for(int i=k;i<num-k;i++){
                                ^
0_0_39696333_14801\Main.java:25: 错误: 需要class, interface或enum
                    for(int i=k;i<num-k;i++){
                                        ^
0_0_39696333_14801\Main.java:27: 错误: 需要class, interface或enum
                        arr[i][k]=center;
                        ^
0_0_39696333_14801\Main.java:28: 错误: 需要class, interface或enum
                        arr[num-k-1][i]=center;
                        ^
0_0_39696333_14801\Main.java:29: 错误: 需要class, interface或enum
                        arr[i][num-k-1]=center;
                        ^
0_0_39696333_14801\Main.java:30: 错误: 需要class, interface或enum
                    }
                    ^
0_0_39696333_14801\Main.java:33: 错误: 需要class, interface或enum
            }
            ^
0_0_39696333_14801\Main.java:35: 错误: 需要class, interface或enum
            arr[0][num-1]=' ';
            ^
0_0_39696333_14801\Main.java:36: 错误: 需要class, interface或enum
            arr[num-1][0]=' ';
            ^
0_0_39696333_14801\Main.java:37: 错误: 需要class, interface或enum
            arr[num-1][num-1]=' ';
            ^
0_0_39696333_14801\Main.java:38: 错误: 需要class, interface或enum
            for (int u=0;u<num;u++){
            ^
0_0_39696333_14801\Main.java:38: 错误: 需要class, interface或enum
            for (int u=0;u<num;u++){
                         ^
0_0_39696333_14801\Main.java:38: 错误: 需要class, interface或enum
            for (int u=0;u<num;u++){
                               ^
0_0_39696333_14801\Main.java:40: 错误: 需要class, interface或enum
            }
            ^
32 个错误


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 21:12:37, Gzip enabled