0_0_14069630_7007\Main.java:1: 错误: 非法字符: '#'
#pragma comment(linker, "/STACK:1024000000,1024000000")
^
0_0_14069630_7007\Main.java:1: 错误: 需要class, interface或enum
#pragma comment(linker, "/STACK:1024000000,1024000000")
^
0_0_14069630_7007\Main.java:2: 错误: 非法字符: '#'
#include<stdio.h>
^
0_0_14069630_7007\Main.java:3: 错误: 非法字符: '#'
#include<string.h>
^
0_0_14069630_7007\Main.java:4: 错误: 非法字符: '#'
#include<algorithm>
^
0_0_14069630_7007\Main.java:5: 错误: 非法字符: '#'
#include<vector>
^
0_0_14069630_7007\Main.java:7: 错误: 需要class, interface或enum
void get_num ( int& n ) {
^
0_0_14069630_7007\Main.java:9: 错误: 需要class, interface或enum
char c ;
^
0_0_14069630_7007\Main.java:10: 错误: 需要class, interface或enum
while ( c = getchar () ) {
^
0_0_14069630_7007\Main.java:12: 错误: 需要class, interface或enum
}
^
0_0_14069630_7007\Main.java:14: 错误: 需要class, interface或enum
while ( c = getchar () ) {
^
0_0_14069630_7007\Main.java:16: 错误: 需要class, interface或enum
n = n * 10 + c -'0' ;
^
0_0_14069630_7007\Main.java:17: 错误: 需要class, interface或enum
}
^
0_0_14069630_7007\Main.java:20: 错误: 需要class, interface或enum
const int mod = 10007 ;
^
0_0_14069630_7007\Main.java:21: 错误: 需要class, interface或enum
short dp[2][33][33][maxn] ;
^
0_0_14069630_7007\Main.java:22: 错误: 需要class, interface或enum
int c[33] , d[33] ;
^
0_0_14069630_7007\Main.java:23: 错误: 需要class, interface或enum
char s[maxn] , s1[33] ;
^
0_0_14069630_7007\Main.java:25: 错误: 需要class, interface或enum
vector<int> vec[maxn] ;
^
0_0_14069630_7007\Main.java:26: 错误: 需要class, interface或enum
int p[20][maxn] , fa[maxn] , deep[maxn] ;
^
0_0_14069630_7007\Main.java:27: 错误: 需要class, interface或enum
struct LCA {
^
0_0_14069630_7007\Main.java:30: 错误: 需要class, interface或enum
p[0][u] = fa[u] ;
^
0_0_14069630_7007\Main.java:31: 错误: 需要class, interface或enum
deep[u] = deep[fa[u]] + 1 ;
^
0_0_14069630_7007\Main.java:32: 错误: 需要class, interface或enum
for ( int i = 1 ; i < 20 ; i ++ ) p[i][u] = p[i-1][p[i-1][u]] ;
^
0_0_14069630_7007\Main.java:32: 错误: 需要class, interface或enum
for ( int i = 1 ; i < 20 ; i ++ ) p[i][u] = p[i-1][p[i-1][u]] ;
^
0_0_14069630_7007\Main.java:32: 错误: 需要class, interface或enum
for ( int i = 1 ; i < 20 ; i ++ ) p[i][u] = p[i-1][p[i-1][u]] ;
^
0_0_14069630_7007\Main.java:33: 错误: 需要class, interface或enum
int sz = vec[u].size () ;
^
0_0_14069630_7007\Main.java:34: 错误: 需要class, interface或enum
for ( int i = 0 ; i < sz ; i ++ ) {
^
0_0_14069630_7007\Main.java:34: 错误: 需要class, interface或enum
for ( int i = 0 ; i < sz ; i ++ ) {
^
0_0_14069630_7007\Main.java:34: 错误: 需要class, interface或enum
for ( int i = 0 ; i < sz ; i ++ ) {
^
0_0_14069630_7007\Main.java:36: 错误: 需要class, interface或enum
if ( v == fa[u] ) continue ;
^
0_0_14069630_7007\Main.java:37: 错误: 需要class, interface或enum
fa[v] = u ;
^
0_0_14069630_7007\Main.java:38: 错误: 需要class, interface或enum
dfs ( v ) ;
^
0_0_14069630_7007\Main.java:39: 错误: 需要class, interface或enum
}
^
0_0_14069630_7007\Main.java:42: 错误: 需要class, interface或enum
for ( int i = 0 ; i < 20 ; i ++ )
^
0_0_14069630_7007\Main.java:42: 错误: 需要class, interface或enum
for ( int i = 0 ; i < 20 ; i ++ )
^
0_0_14069630_7007\Main.java:45: 错误: 需要class, interface或enum
return u ;
^
0_0_14069630_7007\Main.java:46: 错误: 需要class, interface或enum
}
^
0_0_14069630_7007\Main.java:49: 错误: 需要class, interface或enum
b = father_k ( b , deep[b] - deep[a] ) ;
^
0_0_14069630_7007\Main.java:50: 错误: 需要class, interface或enum
if ( a == b ) return a ;
^
0_0_14069630_7007\Main.java:51: 错误: 需要class, interface或enum
for ( int i = 19 ; i >= 0 ; i -- ) {
^
0_0_14069630_7007\Main.java:51: 错误: 需要class, interface或enum
for ( int i = 19 ; i >= 0 ; i -- ) {
^
0_0_14069630_7007\Main.java:51: 错误: 需要class, interface或enum
for ( int i = 19 ; i >= 0 ; i -- ) {
^
0_0_14069630_7007\Main.java:53: 错误: 需要class, interface或enum
if ( p[i][a] != p[i][b] ) {
^
0_0_14069630_7007\Main.java:55: 错误: 需要class, interface或enum
b = p[i][b] ;
^
0_0_14069630_7007\Main.java:56: 错误: 需要class, interface或enum
}
^
0_0_14069630_7007\Main.java:59: 错误: 需要class, interface或enum
}
^
0_0_14069630_7007\Main.java:62: 错误: 需要class, interface或enum
int l ;
^
0_0_14069630_7007\Main.java:63: 错误: 需要class, interface或enum
void dfs ( int u , int x , int c ) {
^
0_0_14069630_7007\Main.java:64: 错误: 需要class, interface或enum
for ( int i = x ; i <= l ; i ++ ) {
^
0_0_14069630_7007\Main.java:64: 错误: 需要class, interface或enum
for ( int i = x ; i <= l ; i ++ ) {
^
0_0_14069630_7007\Main.java:66: 错误: 需要class, interface或enum
if ( dp[c][x][i][u] >= mod ) dp[c][x][i][u] -= mod ;
^
0_0_14069630_7007\Main.java:67: 错误: 需要class, interface或enum
if ( s[u] == s1[i] )
^
0_0_14069630_7007\Main.java:69: 错误: 需要class, interface或enum
if ( dp[c][x][i][u] >= mod ) dp[c][x][i][u] -= mod ;
^
0_0_14069630_7007\Main.java:70: 错误: 需要class, interface或enum
}
^
0_0_14069630_7007\Main.java:72: 错误: 需要class, interface或enum
for ( int i = 0 ; i < sz ; i ++ ) {
^
0_0_14069630_7007\Main.java:72: 错误: 需要class, interface或enum
for ( int i = 0 ; i < sz ; i ++ ) {
^
0_0_14069630_7007\Main.java:72: 错误: 需要class, interface或enum
for ( int i = 0 ; i < sz ; i ++ ) {
^
0_0_14069630_7007\Main.java:74: 错误: 需要class, interface或enum
if ( v == fa[u] ) continue ;
^
0_0_14069630_7007\Main.java:75: 错误: 需要class, interface或enum
dfs ( v , x , c ) ;
^
0_0_14069630_7007\Main.java:76: 错误: 需要class, interface或enum
}
^
0_0_14069630_7007\Main.java:80: 错误: 需要class, interface或enum
for ( int i = 0 ; i <= l + 1 ; i ++ ) {
^
0_0_14069630_7007\Main.java:80: 错误: 需要class, interface或enum
for ( int i = 0 ; i <= l + 1 ; i ++ ) {
^
0_0_14069630_7007\Main.java:81: 错误: 需要class, interface或enum
for ( int j = 0 ; j <= n ; j ++ ) {
^
0_0_14069630_7007\Main.java:81: 错误: 需要class, interface或enum
for ( int j = 0 ; j <= n ; j ++ ) {
^
0_0_14069630_7007\Main.java:82: 错误: 需要class, interface或enum
for ( int k = 0 ; k <= i ; k ++ )
^
0_0_14069630_7007\Main.java:82: 错误: 需要class, interface或enum
for ( int k = 0 ; k <= i ; k ++ )
^
0_0_14069630_7007\Main.java:84: 错误: 需要class, interface或enum
if (i) dp[c][i][i-1][j] = 1 ;
^
0_0_14069630_7007\Main.java:85: 错误: 需要class, interface或enum
}
^
0_0_14069630_7007\Main.java:87: 错误: 需要class, interface或enum
for ( int i = 1 ; i <= l ; i ++ )
^
0_0_14069630_7007\Main.java:87: 错误: 需要class, interface或enum
for ( int i = 1 ; i <= l ; i ++ )
^
0_0_14069630_7007\Main.java:89: 错误: 需要class, interface或enum
}
^
0_0_14069630_7007\Main.java:93: 错误: 需要class, interface或enum
scanf ( "%d" , &T ) ;
^
0_0_14069630_7007\Main.java:94: 错误: 需要class, interface或enum
while ( T -- ) {
^
0_0_14069630_7007\Main.java:96: 错误: 需要class, interface或enum
for ( int i = 1 ; i <= n ; i ++ ) vec[i].clear () ;
^
0_0_14069630_7007\Main.java:96: 错误: 需要class, interface或enum
for ( int i = 1 ; i <= n ; i ++ ) vec[i].clear () ;
^
0_0_14069630_7007\Main.java:96: 错误: 需要class, interface或enum
for ( int i = 1 ; i <= n ; i ++ ) vec[i].clear () ;
^
0_0_14069630_7007\Main.java:97: 错误: 需要class, interface或enum
for ( int i = 1 ; i < n ; i ++ ) {
^
0_0_14069630_7007\Main.java:97: 错误: 需要class, interface或enum
for ( int i = 1 ; i < n ; i ++ ) {
^
0_0_14069630_7007\Main.java:97: 错误: 需要class, interface或enum
for ( int i = 1 ; i < n ; i ++ ) {
^
0_0_14069630_7007\Main.java:99: 错误: 需要class, interface或enum
get_num (a) ;
^
0_0_14069630_7007\Main.java:100: 错误: 需要class, interface或enum
get_num (b) ;
^
0_0_14069630_7007\Main.java:101: 错误: 需要class, interface或enum
vec[a].push_back (b) ;
^
0_0_14069630_7007\Main.java:102: 错误: 需要class, interface或enum
vec[b]
|