0_0_28552492_17378\Main.java:1: 错误: 非法字符: '#'
#include <iostream>
^
0_0_28552492_17378\Main.java:1: 错误: 需要class, interface或enum
#include <iostream>
^
0_0_28552492_17378\Main.java:2: 错误: 非法字符: '#'
#include <fstream>
^
0_0_28552492_17378\Main.java:3: 错误: 非法字符: '#'
#include <sstream>
^
0_0_28552492_17378\Main.java:4: 错误: 非法字符: '#'
#include <algorithm>
^
0_0_28552492_17378\Main.java:5: 错误: 非法字符: '#'
#include <string>
^
0_0_28552492_17378\Main.java:6: 错误: 非法字符: '#'
#include <set>
^
0_0_28552492_17378\Main.java:7: 错误: 非法字符: '#'
#include <map>
^
0_0_28552492_17378\Main.java:8: 错误: 非法字符: '#'
#include <utility>
^
0_0_28552492_17378\Main.java:9: 错误: 非法字符: '#'
#include <queue>
^
0_0_28552492_17378\Main.java:10: 错误: 非法字符: '#'
#include <stack>
^
0_0_28552492_17378\Main.java:11: 错误: 非法字符: '#'
#include <list>
^
0_0_28552492_17378\Main.java:12: 错误: 非法字符: '#'
#include <vector>
^
0_0_28552492_17378\Main.java:13: 错误: 非法字符: '#'
#include <cstdio>
^
0_0_28552492_17378\Main.java:14: 错误: 非法字符: '#'
#include <cstdlib>
^
0_0_28552492_17378\Main.java:15: 错误: 非法字符: '#'
#include <cstring>
^
0_0_28552492_17378\Main.java:16: 错误: 非法字符: '#'
#include <cmath>
^
0_0_28552492_17378\Main.java:17: 错误: 非法字符: '#'
#include <ctime>
^
0_0_28552492_17378\Main.java:19: 错误: 需要class, interface或enum
const int maxn = 100010;
^
0_0_28552492_17378\Main.java:20: 错误: 需要class, interface或enum
struct node {
^
0_0_28552492_17378\Main.java:22: 错误: 需要class, interface或enum
} heap[maxn];
^
0_0_28552492_17378\Main.java:23: 错误: 需要class, interface或enum
int N, M;
^
0_0_28552492_17378\Main.java:24: 错误: 需要class, interface或enum
int find ( int &x ) {
^
0_0_28552492_17378\Main.java:26: 错误: 需要class, interface或enum
}
^
0_0_28552492_17378\Main.java:29: 错误: 需要class, interface或enum
if (rt2==0) return rt1;
^
0_0_28552492_17378\Main.java:30: 错误: 需要class, interface或enum
if ( heap[rt2].val>heap[rt1].val )swap(rt1,rt2);
^
0_0_28552492_17378\Main.java:31: 错误: 需要class, interface或enum
heap[rt1].r = merge(heap[rt1].r,rt2);
^
0_0_28552492_17378\Main.java:32: 错误: 需要class, interface或enum
heap[heap[rt1].r].par = rt1;
^
0_0_28552492_17378\Main.java:33: 错误: 需要class, interface或enum
if ( heap[ heap[rt1].l ].dis < heap[ heap[rt2].r ].dis )
^
0_0_28552492_17378\Main.java:35: 错误: 需要class, interface或enum
else heap[rt1].dis = heap[ heap[rt1].r ].dis + 1;
^
0_0_28552492_17378\Main.java:36: 错误: 需要class, interface或enum
return rt1;
^
0_0_28552492_17378\Main.java:37: 错误: 需要class, interface或enum
}
^
0_0_28552492_17378\Main.java:40: 错误: 需要class, interface或enum
}
^
0_0_28552492_17378\Main.java:43: 错误: 需要class, interface或enum
int r = heap[x].r;
^
0_0_28552492_17378\Main.java:44: 错误: 需要class, interface或enum
heap[l].par = l;
^
0_0_28552492_17378\Main.java:45: 错误: 需要class, interface或enum
heap[r].par = r;
^
0_0_28552492_17378\Main.java:46: 错误: 需要class, interface或enum
heap[x].l = heap[x].r = heap[x].dis = 0;
^
0_0_28552492_17378\Main.java:47: 错误: 需要class, interface或enum
return merge ( l, r );
^
0_0_28552492_17378\Main.java:48: 错误: 需要class, interface或enum
}
^
0_0_28552492_17378\Main.java:51: 错误: 需要class, interface或enum
bool IsN=false;
^
0_0_28552492_17378\Main.java:52: 错误: 需要class, interface或enum
in=getchar();
^
0_0_28552492_17378\Main.java:53: 错误: 需要class, interface或enum
if(in==EOF) return false;
^
0_0_28552492_17378\Main.java:54: 错误: 需要class, interface或enum
while(in!='-'&&(in<'0'||in>'9')) in=getchar();
^
0_0_28552492_17378\Main.java:55: 错误: 需要class, interface或enum
if(in=='-') {
^
0_0_28552492_17378\Main.java:57: 错误: 需要class, interface或enum
num=0;
^
0_0_28552492_17378\Main.java:58: 错误: 需要class, interface或enum
} else num=in-'0';
^
0_0_28552492_17378\Main.java:59: 错误: 需要class, interface或enum
while(in=getchar(),in>='0'&&in<='9') {
^
0_0_28552492_17378\Main.java:61: 错误: 需要class, interface或enum
}
^
0_0_28552492_17378\Main.java:63: 错误: 需要class, interface或enum
return true;
^
0_0_28552492_17378\Main.java:64: 错误: 需要class, interface或enum
}
^
0_0_28552492_17378\Main.java:67: 错误: 需要class, interface或enum
for ( int i = 1; i <= N; ++ i ) {
^
0_0_28552492_17378\Main.java:67: 错误: 需要class, interface或enum
for ( int i = 1; i <= N; ++ i ) {
^
0_0_28552492_17378\Main.java:69: 错误: 需要class, interface或enum
heap[i].l = heap[i].r = heap[i].dis = 0;
^
0_0_28552492_17378\Main.java:70: 错误: 需要class, interface或enum
heap[i].par = i;
^
0_0_28552492_17378\Main.java:71: 错误: 需要class, interface或enum
}
^
0_0_28552492_17378\Main.java:73: 错误: 需要class, interface或enum
int a, b, x, y;
^
0_0_28552492_17378\Main.java:74: 错误: 需要class, interface或enum
while ( M -- ) {
^
0_0_28552492_17378\Main.java:76: 错误: 需要class, interface或enum
scan_d (b);
^
0_0_28552492_17378\Main.java:77: 错误: 需要class, interface或enum
x = find ( a );
^
0_0_28552492_17378\Main.java:78: 错误: 需要class, interface或enum
y = find ( b );
^
0_0_28552492_17378\Main.java:79: 错误: 需要class, interface或enum
if ( x == y ) {
^
0_0_28552492_17378\Main.java:81: 错误: 需要class, interface或enum
} else {
^
0_0_28552492_17378\Main.java:83: 错误: 需要class, interface或enum
int px = push ( pop ( x ), x );
^
0_0_28552492_17378\Main.java:84: 错误: 需要class, interface或enum
heap[y].val /= 2;
^
0_0_28552492_17378\Main.java:85: 错误: 需要class, interface或enum
int py = push ( pop ( y ), y );
^
0_0_28552492_17378\Main.java:86: 错误: 需要class, interface或enum
printf ( "%d\n", heap[ merge ( px, py ) ].val );
^
0_0_28552492_17378\Main.java:87: 错误: 需要class, interface或enum
}
^
0_0_28552492_17378\Main.java:91: 错误: 需要class, interface或enum
}
^
68 个错误
|