0_0_38998977_3072\Main.java:1: 错误: 非法字符: '#'
#include <bits/stdc++.h>
^
0_0_38998977_3072\Main.java:1: 错误: 需要class, interface或enum
#include <bits/stdc++.h>
^
0_0_38998977_3072\Main.java:3: 错误: 需要class, interface或enum
int max_element(int *p1,int *p2) {
^
0_0_38998977_3072\Main.java:5: 错误: 需要class, interface或enum
while(p1 < p2) {
^
0_0_38998977_3072\Main.java:8: 错误: 需要class, interface或enum
}
^
0_0_38998977_3072\Main.java:10: 错误: 需要class, interface或enum
}
^
0_0_38998977_3072\Main.java:12: 错误: 需要class, interface或enum
}
^
0_0_38998977_3072\Main.java:15: 错误: 需要class, interface或enum
int val;
^
0_0_38998977_3072\Main.java:16: 错误: 需要class, interface或enum
};
^
0_0_38998977_3072\Main.java:17: 错误: 需要class, interface或enum
struct cmp1 {
^
0_0_38998977_3072\Main.java:20: 错误: 需要class, interface或enum
}
^
0_0_38998977_3072\Main.java:22: 错误: 需要class, interface或enum
int main() {
^
0_0_38998977_3072\Main.java:24: 错误: 需要class, interface或enum
priority_queue<node,vector<node>,cmp1> q;
^
0_0_38998977_3072\Main.java:25: 错误: 需要class, interface或enum
int n,x;
^
0_0_38998977_3072\Main.java:26: 错误: 需要class, interface或enum
long long int sum = 0;
^
0_0_38998977_3072\Main.java:27: 错误: 需要class, interface或enum
node no1;
^
0_0_38998977_3072\Main.java:28: 错误: 需要class, interface或enum
cin >> n;
^
0_0_38998977_3072\Main.java:29: 错误: 需要class, interface或enum
for(int i = 1; i <= n; i++) {
^
0_0_38998977_3072\Main.java:29: 错误: 需要class, interface或enum
for(int i = 1; i <= n; i++) {
^
0_0_38998977_3072\Main.java:29: 错误: 需要class, interface或enum
for(int i = 1; i <= n; i++) {
^
0_0_38998977_3072\Main.java:31: 错误: 需要class, interface或enum
A[i] = x;
^
0_0_38998977_3072\Main.java:32: 错误: 需要class, interface或enum
ans[i] = x - i;
^
0_0_38998977_3072\Main.java:33: 错误: 需要class, interface或enum
}
^
0_0_38998977_3072\Main.java:34: 错误: 需要class, interface或enum
for(int i = 1; i <= n; i++) {
^
0_0_38998977_3072\Main.java:34: 错误: 需要class, interface或enum
for(int i = 1; i <= n; i++) {
^
0_0_38998977_3072\Main.java:36: 错误: 需要class, interface或enum
no1.inx=i;
^
0_0_38998977_3072\Main.java:37: 错误: 需要class, interface或enum
no1.val=x;
^
0_0_38998977_3072\Main.java:38: 错误: 需要class, interface或enum
q.push(no1);
^
0_0_38998977_3072\Main.java:39: 错误: 需要class, interface或enum
}
^
0_0_38998977_3072\Main.java:40: 错误: 需要class, interface或enum
for(int i = n+1; i <= 2*n; i++) {
^
0_0_38998977_3072\Main.java:40: 错误: 需要class, interface或enum
for(int i = n+1; i <= 2*n; i++) {
^
0_0_38998977_3072\Main.java:42: 错误: 需要class, interface或enum
q.pop();
^
0_0_38998977_3072\Main.java:43: 错误: 需要class, interface或enum
int m = max_element(ans+(no1.val),ans+i);
^
0_0_38998977_3072\Main.java:44: 错误: 需要class, interface或enum
A[i] = m;
^
0_0_38998977_3072\Main.java:45: 错误: 需要class, interface或enum
ans[i] = m - i;
^
0_0_38998977_3072\Main.java:46: 错误: 需要class, interface或enum
sum += m;
^
0_0_38998977_3072\Main.java:47: 错误: 需要class, interface或enum
}
^
0_0_38998977_3072\Main.java:49: 错误: 需要class, interface或enum
return 0;
^
0_0_38998977_3072\Main.java:50: 错误: 需要class, interface或enum
}
^
39 个错误
|