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_39739893_13895\Main.java:7: 错误: 非法字符: '#'
#include <iostream>
^
0_0_39739893_13895\Main.java:7: 错误: 需要class, interface或enum
#include <iostream>
         ^
0_0_39739893_13895\Main.java:8: 错误: 非法字符: '#'
#include <queue>
^
0_0_39739893_13895\Main.java:9: 错误: 非法字符: '#'
#include <string>
^
0_0_39739893_13895\Main.java:11: 错误: 非法字符: '#'
#define MAX 1000
^
0_0_39739893_13895\Main.java:11: 错误: 需要class, interface或enum
#define MAX 1000
        ^
0_0_39739893_13895\Main.java:12: 错误: 非法字符: '#'
#define MAX_PEOPLE 1000000
^
0_0_39739893_13895\Main.java:15: 错误: 需要class, interface或enum
queue<int> mainQueue;   //宏观主队列,存储teamIndex值
^
0_0_39739893_13895\Main.java:16: 错误: 需要class, interface或enum
bool teamInQueue[MAX];  //队伍是否排在主队列中
^
0_0_39739893_13895\Main.java:17: 错误: 需要class, interface或enum
int people[MAX_PEOPLE]; //存储人的队伍teamIndex编号
^
0_0_39739893_13895\Main.java:18: 错误: 需要class, interface或enum
int teamNums, Scenario=1;
^
0_0_39739893_13895\Main.java:19: 错误: 需要class, interface或enum
void init()  //每次进入下一次任务时,清空前一次的记录
^
0_0_39739893_13895\Main.java:21: 错误: 需要class, interface或enum
    for(int i = 0; i < teamNums; ++i)  //队列清空
                   ^
0_0_39739893_13895\Main.java:21: 错误: 需要class, interface或enum
    for(int i = 0; i < teamNums; ++i)  //队列清空
                                 ^
0_0_39739893_13895\Main.java:24: 错误: 需要class, interface或enum
        while(!team[i].empty())
        ^
0_0_39739893_13895\Main.java:26: 错误: 需要class, interface或enum
    }
    ^
0_0_39739893_13895\Main.java:29: 错误: 需要class, interface或enum
}
^
0_0_39739893_13895\Main.java:33: 错误: 需要class, interface或enum
    for(int teamIndex = 0; teamIndex < teamNums; ++teamIndex)
    ^
0_0_39739893_13895\Main.java:33: 错误: 需要class, interface或enum
    for(int teamIndex = 0; teamIndex < teamNums; ++teamIndex)
                           ^
0_0_39739893_13895\Main.java:33: 错误: 需要class, interface或enum
    for(int teamIndex = 0; teamIndex < teamNums; ++teamIndex)
                                                 ^
0_0_39739893_13895\Main.java:36: 错误: 需要class, interface或enum
        for(int j = 0; j < totalPeopleInTeam; ++j)
        ^
0_0_39739893_13895\Main.java:36: 错误: 需要class, interface或enum
        for(int j = 0; j < totalPeopleInTeam; ++j)
                       ^
0_0_39739893_13895\Main.java:36: 错误: 需要class, interface或enum
        for(int j = 0; j < totalPeopleInTeam; ++j)
                                              ^
0_0_39739893_13895\Main.java:39: 错误: 需要class, interface或enum
            people[peopleID] = teamIndex;
            ^
0_0_39739893_13895\Main.java:41: 错误: 需要class, interface或enum
        }
        ^
0_0_39739893_13895\Main.java:47: 错误: 需要class, interface或enum
    string command;
    ^
0_0_39739893_13895\Main.java:48: 错误: 需要class, interface或enum
    cout << "Scenario #" << Scenario++ << endl;
    ^
0_0_39739893_13895\Main.java:49: 错误: 需要class, interface或enum
    while(cin >> command && command[0] != 'S')  //STOP停止
    ^
0_0_39739893_13895\Main.java:54: 错误: 需要class, interface或enum
            teamID = people[peopleID];
            ^
0_0_39739893_13895\Main.java:55: 错误: 需要class, interface或enum
            if(teamInQueue[teamID]) //组号是否在大队列里呢(初始为false不在)
            ^
0_0_39739893_13895\Main.java:58: 错误: 需要class, interface或enum
            }
            ^
0_0_39739893_13895\Main.java:62: 错误: 需要class, interface或enum
                mainQueue.push(teamID);     //我们组的组号排在最后一组
                ^
0_0_39739893_13895\Main.java:63: 错误: 需要class, interface或enum
                team[teamID].push(peopleID);  //找到我的组入组
                ^
0_0_39739893_13895\Main.java:64: 错误: 需要class, interface或enum
            }
            ^
0_0_39739893_13895\Main.java:71: 错误: 需要class, interface或enum
                cout << team[teamID].front() << endl; //从相应的组里找到该组的头
                ^
0_0_39739893_13895\Main.java:72: 错误: 需要class, interface或enum
                team[teamID].pop();  	 //打印了,出队
                ^
0_0_39739893_13895\Main.java:73: 错误: 需要class, interface或enum
                if(team[teamID].empty())  //这个组空了,都出去了
                ^
0_0_39739893_13895\Main.java:76: 错误: 需要class, interface或enum
                    mainQueue.pop();    //从大队里删除空组
                    ^
0_0_39739893_13895\Main.java:77: 错误: 需要class, interface或enum
                }
                ^
0_0_39739893_13895\Main.java:82: 错误: 需要class, interface或enum
}
^
0_0_39739893_13895\Main.java:88: 错误: 需要class, interface或enum
        input();    //输入人员ID,记录人员组号
        ^
0_0_39739893_13895\Main.java:89: 错误: 需要class, interface或enum
        solve();    //队列出队,入队操作
        ^
0_0_39739893_13895\Main.java:90: 错误: 需要class, interface或enum
    }
    ^
0_0_39739893_13895\Main.java:92: 错误: 需要class, interface或enum
}
^
44 个错误


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-23 06:44:57, Gzip enabled