0_0_33297500_28327\Main.java:1: 错误: 非法字符: '#'
#include<stdio.h>
^
0_0_33297500_28327\Main.java:1: 错误: 需要class, interface或enum
#include<stdio.h>
^
0_0_33297500_28327\Main.java:2: 错误: 非法字符: '#'
#include<queue>
^
0_0_33297500_28327\Main.java:3: 错误: 非法字符: '#'
#include<iostream>
^
0_0_33297500_28327\Main.java:4: 错误: 非法字符: '#'
#include<algorithm>
^
0_0_33297500_28327\Main.java:5: 错误: 需要class, interface或enum
using namespace std;s
^
0_0_33297500_28327\Main.java:11: 错误: 需要class, interface或enum
}
^
0_0_33297500_28327\Main.java:13: 错误: 需要class, interface或enum
priority_queue<int,vector<int>,cmp>q;//从大到小队列
^
0_0_33297500_28327\Main.java:14: 错误: 需要class, interface或enum
priority_queue<int>q2;//从小到大队列
^
0_0_33297500_28327\Main.java:15: 错误: 需要class, interface或enum
int main(){
^
0_0_33297500_28327\Main.java:17: 错误: 需要class, interface或enum
int A, B;
^
0_0_33297500_28327\Main.java:18: 错误: 需要class, interface或enum
int iCase = 0;
^
0_0_33297500_28327\Main.java:19: 错误: 需要class, interface或enum
scanf("%d",&T);
^
0_0_33297500_28327\Main.java:20: 错误: 需要class, interface或enum
while(T--)
^
0_0_33297500_28327\Main.java:23: 错误: 需要class, interface或enum
scanf("%d%d", &L, &n);
^
0_0_33297500_28327\Main.java:24: 错误: 需要class, interface或enum
while(!q.empty())
^
0_0_33297500_28327\Main.java:26: 错误: 需要class, interface或enum
while(!q2.empty())
^
0_0_33297500_28327\Main.java:28: 错误: 需要class, interface或enum
int x=0, ans=0, t=1;
^
0_0_33297500_28327\Main.java:29: 错误: 需要class, interface或enum
while(n--)
^
0_0_33297500_28327\Main.java:32: 错误: 需要class, interface或enum
if(A == 0)
^
0_0_33297500_28327\Main.java:35: 错误: 需要class, interface或enum
if(B >= x )
^
0_0_33297500_28327\Main.java:37: 错误: 需要class, interface或enum
else
^
0_0_33297500_28327\Main.java:39: 错误: 需要class, interface或enum
}
^
0_0_33297500_28327\Main.java:45: 错误: 需要class, interface或enum
int temp2 = q2.top();
^
0_0_33297500_28327\Main.java:46: 错误: 需要class, interface或enum
if(temp1-x < x-temp2)//如果右边的蛋糕近
^
0_0_33297500_28327\Main.java:49: 错误: 需要class, interface或enum
ans += q.top() - x;//记录距离
^
0_0_33297500_28327\Main.java:50: 错误: 需要class, interface或enum
x = q.top();//更改当前位置
^
0_0_33297500_28327\Main.java:51: 错误: 需要class, interface或enum
q.pop();//删除
^
0_0_33297500_28327\Main.java:52: 错误: 需要class, interface或enum
}
^
0_0_33297500_28327\Main.java:56: 错误: 需要class, interface或enum
ans += x - q2.top();
^
0_0_33297500_28327\Main.java:57: 错误: 需要class, interface或enum
x = q2.top();//更改当前位置
^
0_0_33297500_28327\Main.java:58: 错误: 需要class, interface或enum
q2.pop();//删除
^
0_0_33297500_28327\Main.java:59: 错误: 需要class, interface或enum
}
^
0_0_33297500_28327\Main.java:63: 错误: 需要class, interface或enum
x = q.top();//更改当前位置
^
0_0_33297500_28327\Main.java:64: 错误: 需要class, interface或enum
q.pop();//删除
^
0_0_33297500_28327\Main.java:65: 错误: 需要class, interface或enum
}
^
0_0_33297500_28327\Main.java:69: 错误: 需要class, interface或enum
x = q2.top();//更改当前位置
^
0_0_33297500_28327\Main.java:70: 错误: 需要class, interface或enum
q2.pop();//删除
^
0_0_33297500_28327\Main.java:71: 错误: 需要class, interface或enum
}
^
0_0_33297500_28327\Main.java:76: 错误: 需要class, interface或enum
ans += q.top() - x;//右移
^
0_0_33297500_28327\Main.java:77: 错误: 需要class, interface或enum
x = q.top();//更改当前位置
^
0_0_33297500_28327\Main.java:78: 错误: 需要class, interface或enum
q.pop();//删除
^
0_0_33297500_28327\Main.java:79: 错误: 需要class, interface或enum
}
^
0_0_33297500_28327\Main.java:83: 错误: 需要class, interface或enum
ans += x-q2.top();//左移
^
0_0_33297500_28327\Main.java:84: 错误: 需要class, interface或enum
x = q2.top();//更改当前位置
^
0_0_33297500_28327\Main.java:85: 错误: 需要class, interface或enum
q2.pop();//删除
^
0_0_33297500_28327\Main.java:86: 错误: 需要class, interface或enum
}
^
0_0_33297500_28327\Main.java:90: 错误: 需要class, interface或enum
}
^
0_0_33297500_28327\Main.java:92: 错误: 需要class, interface或enum
}
^
49 个错误
|