F.A.Q
Hand In Hand
Online Acmers
Problem Archive
Realtime Judge Status
Authors Ranklist
 
     C/C++/Java Exams     
ACM Steps
Go to Job
Contest LiveCast
ICPC@China
Best Coder beta
VIP | STD Contests
    DIY | Web-DIY beta
Author ID 
Password 
 Register new ID

View Compilation Error

0_0_28061696_27633.cpp:7:1: error: stray '\243' in program
 const int N=200005; 
 ^
0_0_28061696_27633.cpp:7:1: error: stray '\273' in program
0_0_28061696_27633.cpp:8:1: error: expected ',' or ';' before 'int'
 int fa[N],num[N],t,n,m,q,ans
 ^
0_0_28061696_27633.cpp: In function 'void init()':
0_0_28061696_27633.cpp:20:28: error: 'n' was not declared in this scope
     for ( int i = 1 ; i <= n ; i++ )
                            ^
0_0_28061696_27633.cpp:22:9: error: 'num' was not declared in this scope
         num[i] = 1; ///记录连通块点的个数
         ^
0_0_28061696_27633.cpp:23:9: error: 'fa' was not declared in this scope
         fa[i] = i;
         ^
0_0_28061696_27633.cpp: In function 'int _find(int)':
0_0_28061696_27633.cpp:29:12: error: 'fa' was not declared in this scope
     return fa[x] == x? x : fa[x] = _find ( fa[x] );
            ^
0_0_28061696_27633.cpp: In function 'void _union(int, int)':
0_0_28061696_27633.cpp:37:5: error: 'fa' was not declared in this scope
     fa[y] = x;
     ^
0_0_28061696_27633.cpp:38:5: error: 'num' was not declared in this scope
     num[x] += num[y];
     ^
0_0_28061696_27633.cpp: In function 'int main()':
0_0_28061696_27633.cpp:50:18: error: 't' was not declared in this scope
     scanf("%d" ,&t );
                  ^
0_0_28061696_27633.cpp:53:26: error: 'n' was not declared in this scope
         scanf ("%d%d%d",&n,&m,&q);
                          ^
0_0_28061696_27633.cpp:53:29: error: 'm' was not declared in this scope
         scanf ("%d%d%d",&n,&m,&q);
                             ^
0_0_28061696_27633.cpp:53:32: error: 'q' was not declared in this scope
         scanf ("%d%d%d",&n,&m,&q);
                                ^
0_0_28061696_27633.cpp:75:23: error: 'num' was not declared in this scope
                 sum+=(num[u]+num[v])*(num[u]+num[v]-1)-num[u]*(num[u]-1) - num[v]*(num[v]-1);
                       ^
0_0_28061696_27633.cpp:78:13: error: 'ans' was not declared in this scope
             ans[a[i].id]=sum;
             ^
0_0_28061696_27633.cpp:81:31: error: 'ans' was not declared in this scope
             printf ( "%d\n" , ans[i] );
                               ^


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2024 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.000000(s) query 1, Server time : 2024-11-26 16:49:00, Gzip enabled