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 个错误
|