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_24960250_22637\Main.java:2: 错误: 非法的类型开始
public:
      ^
0_0_24960250_22637\Main.java:2: 错误: 需要';'
public:
       ^
0_0_24960250_22637\Main.java:3: 错误: 方法声明无效; 需要返回类型
    int ladderLength(string beginWord, string endWord, unordered_set<string>& wordList) {
        ^
0_0_24960250_22637\Main.java:3: 错误: 需要<标识符>
    int ladderLength(string beginWord, string endWord, unordered_set<string>& wordList) {
                                                                            ^
0_0_24960250_22637\Main.java:3: 错误: 需要';'
    int ladderLength(string beginWord, string endWord, unordered_set<string>& wordList) {
                                                                             ^
0_0_24960250_22637\Main.java:3: 错误: 非法的类型开始
    int ladderLength(string beginWord, string endWord, unordered_set<string>& wordList) {
                                                                                      ^
0_0_24960250_22637\Main.java:3: 错误: 需要<标识符>
    int ladderLength(string beginWord, string endWord, unordered_set<string>& wordList) {
                                                                                       ^
0_0_24960250_22637\Main.java:3: 错误: 需要';'
    int ladderLength(string beginWord, string endWord, unordered_set<string>& wordList) {
                                                                                         ^
0_0_24960250_22637\Main.java:4: 错误: 需要<标识符>
        unordered_set<string> visit;
                                   ^
0_0_24960250_22637\Main.java:8: 错误: 需要<标识符>
        Q.push(beginWord);
              ^
0_0_24960250_22637\Main.java:8: 错误: 需要<标识符>
        Q.push(beginWord);
                        ^
0_0_24960250_22637\Main.java:9: 错误: 需要<标识符>
        visit.insert(beginWord);
                    ^
0_0_24960250_22637\Main.java:9: 错误: 需要<标识符>
        visit.insert(beginWord);
                              ^
0_0_24960250_22637\Main.java:12: 错误: 非法的类型开始
        while(!Q.empty()){
        ^
0_0_24960250_22637\Main.java:12: 错误: 非法的类型开始
        while(!Q.empty()){
              ^
0_0_24960250_22637\Main.java:12: 错误: 需要')'
        while(!Q.empty()){
               ^
0_0_24960250_22637\Main.java:12: 错误: 需要';'
        while(!Q.empty()){
                ^
0_0_24960250_22637\Main.java:12: 错误: 方法声明无效; 需要返回类型
        while(!Q.empty()){
                 ^
0_0_24960250_22637\Main.java:12: 错误: 需要';'
        while(!Q.empty()){
                        ^
0_0_24960250_22637\Main.java:55: 错误: 非法的类型开始
        return 0;
        ^
0_0_24960250_22637\Main.java:55: 错误: 需要';'
        return 0;
              ^
0_0_24960250_22637\Main.java:59: 错误: 需要class, interface或enum
    bool canEnter(string s,unordered_set<string>& wordList){
    ^
0_0_24960250_22637\Main.java:61: 错误: 需要class, interface或enum
        for(auto iter=wordList.begin();iter!=wordList.end();iter++){
                                       ^
0_0_24960250_22637\Main.java:61: 错误: 需要class, interface或enum
        for(auto iter=wordList.begin();iter!=wordList.end();iter++){
                                                            ^
0_0_24960250_22637\Main.java:63: 错误: 需要class, interface或enum
            if(validNext(s,item)) return true;
            ^
0_0_24960250_22637\Main.java:64: 错误: 需要class, interface或enum
        }
        ^
0_0_24960250_22637\Main.java:66: 错误: 需要class, interface或enum
    }
    ^
0_0_24960250_22637\Main.java:71: 错误: 需要class, interface或enum
        for(int i=0;i<s.size();i++){
        ^
0_0_24960250_22637\Main.java:71: 错误: 需要class, interface或enum
        for(int i=0;i<s.size();i++){
                    ^
0_0_24960250_22637\Main.java:71: 错误: 需要class, interface或enum
        for(int i=0;i<s.size();i++){
                               ^
0_0_24960250_22637\Main.java:74: 错误: 需要class, interface或enum
                if(diff>=2) return false;
                ^
0_0_24960250_22637\Main.java:75: 错误: 需要class, interface或enum
            }
            ^
0_0_24960250_22637\Main.java:78: 错误: 需要class, interface或enum
        return false;
        ^
0_0_24960250_22637\Main.java:79: 错误: 需要class, interface或enum
    }
    ^
34 个错误


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-26 08:15:39, Gzip enabled