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_35043643_10353\Main.java:1: 错误: 非法字符: '#'
#include <iostream>
^
0_0_35043643_10353\Main.java:1: 错误: 需要class, interface或enum
#include <iostream>
         ^
0_0_35043643_10353\Main.java:2: 错误: 非法字符: '#'
#include <queue>
^
0_0_35043643_10353\Main.java:6: 错误: 需要class, interface或enum
struct Node
^
0_0_35043643_10353\Main.java:9: 错误: 需要class, interface或enum
    int val;
    ^
0_0_35043643_10353\Main.java:10: 错误: 需要class, interface或enum
    int priority;
    ^
0_0_35043643_10353\Main.java:11: 错误: 需要class, interface或enum
    int num;
    ^
0_0_35043643_10353\Main.java:12: 错误: 需要class, interface或enum
    friend bool operator<(Node a, Node b)
    ^
0_0_35043643_10353\Main.java:19: 错误: 需要class, interface或enum
        }
        ^
0_0_35043643_10353\Main.java:23: 错误: 需要class, interface或enum
    }
    ^
0_0_35043643_10353\Main.java:25: 错误: 需要class, interface或enum
int main()
^
0_0_35043643_10353\Main.java:29: 错误: 需要class, interface或enum
    Node cur, next;
    ^
0_0_35043643_10353\Main.java:31: 错误: 需要class, interface或enum
    string str;
    ^
0_0_35043643_10353\Main.java:32: 错误: 需要class, interface或enum
    int k = 0;
    ^
0_0_35043643_10353\Main.java:33: 错误: 需要class, interface或enum
    while (cin >> str)
    ^
0_0_35043643_10353\Main.java:40: 错误: 需要class, interface或enum
            }
            ^
0_0_35043643_10353\Main.java:44: 错误: 需要class, interface或enum
                q.pop();
                ^
0_0_35043643_10353\Main.java:46: 错误: 需要class, interface或enum
                cout << cur.name << " " << cur.val << endl;
                ^
0_0_35043643_10353\Main.java:47: 错误: 需要class, interface或enum
            }
            ^
0_0_35043643_10353\Main.java:54: 错误: 需要class, interface或enum
            next.num = k++;
            ^
0_0_35043643_10353\Main.java:55: 错误: 需要class, interface或enum
            q.push(next);
            ^
0_0_35043643_10353\Main.java:56: 错误: 需要class, interface或enum
        }
        ^
22 个错误


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-29 13:49:47, Gzip enabled