0_0_33991560_6850\Main.java:2: 错误: 需要class, interface或enum
using namespace std;
^
0_0_33991560_6850\Main.java:3: 错误: 需要class, interface或enum
struct stu{
^
0_0_33991560_6850\Main.java:5: 错误: 需要class, interface或enum
long long r;
^
0_0_33991560_6850\Main.java:6: 错误: 需要class, interface或enum
long long nc;
^
0_0_33991560_6850\Main.java:7: 错误: 需要class, interface或enum
friend bool operator < (stu m1, stu m2){
^
0_0_33991560_6850\Main.java:9: 错误: 需要class, interface或enum
}
^
0_0_33991560_6850\Main.java:11: 错误: 需要class, interface或enum
int main()
^
0_0_33991560_6850\Main.java:14: 错误: 需要class, interface或enum
priority_queue<stu> q2;
^
0_0_33991560_6850\Main.java:15: 错误: 需要class, interface或enum
int a;
^
0_0_33991560_6850\Main.java:16: 错误: 需要class, interface或enum
scanf("%d",&a);
^
0_0_33991560_6850\Main.java:17: 错误: 需要class, interface或enum
while(a--)
^
0_0_33991560_6850\Main.java:20: 错误: 需要class, interface或enum
scanf("%lld",&b);
^
0_0_33991560_6850\Main.java:21: 错误: 需要class, interface或enum
for(int i=1;i<=b;i++)
^
0_0_33991560_6850\Main.java:21: 错误: 需要class, interface或enum
for(int i=1;i<=b;i++)
^
0_0_33991560_6850\Main.java:21: 错误: 需要class, interface或enum
for(int i=1;i<=b;i++)
^
0_0_33991560_6850\Main.java:24: 错误: 需要class, interface或enum
x.wz=i;
^
0_0_33991560_6850\Main.java:25: 错误: 需要class, interface或enum
scanf("%lld %lld",&x.r,&x.nc);
^
0_0_33991560_6850\Main.java:26: 错误: 需要class, interface或enum
q.push(x);
^
0_0_33991560_6850\Main.java:27: 错误: 需要class, interface或enum
}
^
0_0_33991560_6850\Main.java:29: 错误: 需要class, interface或enum
for(int i=1;i<=b;i++)
^
0_0_33991560_6850\Main.java:29: 错误: 需要class, interface或enum
for(int i=1;i<=b;i++)
^
0_0_33991560_6850\Main.java:29: 错误: 需要class, interface或enum
for(int i=1;i<=b;i++)
^
0_0_33991560_6850\Main.java:32: 错误: 需要class, interface或enum
q.pop();
^
0_0_33991560_6850\Main.java:34: 错误: 需要class, interface或enum
while(!q.empty() && x.r!=0)
^
0_0_33991560_6850\Main.java:37: 错误: 需要class, interface或enum
q.pop();
^
0_0_33991560_6850\Main.java:38: 错误: 需要class, interface或enum
if(y.nc>=x.r)
^
0_0_33991560_6850\Main.java:41: 错误: 需要class, interface或enum
sum+=x.r;
^
0_0_33991560_6850\Main.java:42: 错误: 需要class, interface或enum
x.r=0;
^
0_0_33991560_6850\Main.java:43: 错误: 需要class, interface或enum
}
^
0_0_33991560_6850\Main.java:47: 错误: 需要class, interface或enum
sum+=y.nc;
^
0_0_33991560_6850\Main.java:48: 错误: 需要class, interface或enum
y.nc=0;
^
0_0_33991560_6850\Main.java:49: 错误: 需要class, interface或enum
}
^
0_0_33991560_6850\Main.java:51: 错误: 需要class, interface或enum
}
^
0_0_33991560_6850\Main.java:55: 错误: 需要class, interface或enum
q2.pop();
^
0_0_33991560_6850\Main.java:56: 错误: 需要class, interface或enum
}
^
0_0_33991560_6850\Main.java:59: 错误: 需要class, interface或enum
}
^
36 个错误
|