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_36067240_28963.cpp:14:7: error: 'N' was not declared in this scope
 int f[N], sum[N];
       ^
0_0_36067240_28963.cpp:14:15: error: 'N' was not declared in this scope
 int f[N], sum[N];
               ^
0_0_36067240_28963.cpp:15:9: error: 'N' was not declared in this scope
 int ans[N];
         ^
0_0_36067240_28963.cpp:16:8: error: 'N' was not declared in this scope
 char s[N];
        ^
0_0_36067240_28963.cpp: In function 'int find(int)':
0_0_36067240_28963.cpp:19:10: error: 'f' was not declared in this scope
  if(x == f[x])return x;
          ^
0_0_36067240_28963.cpp:20:12: error: 'f' was not declared in this scope
  int tmp = f[x];
            ^
0_0_36067240_28963.cpp:22:2: error: 'ans' was not declared in this scope
  ans[x] += ans[tmp];
  ^
0_0_36067240_28963.cpp: In function 'void merge(int, int)':
0_0_36067240_28963.cpp:29:2: error: 'f' was not declared in this scope
  f[fx] = fy;
  ^
0_0_36067240_28963.cpp:30:2: error: 'ans' was not declared in this scope
  ans[fx] = sum[fy];
  ^
0_0_36067240_28963.cpp:30:12: error: 'sum' was not declared in this scope
  ans[fx] = sum[fy];
            ^
0_0_36067240_28963.cpp: In function 'int main()':
0_0_36067240_28963.cpp:36:7: error: 'i' was not declared in this scope
   rep(i, 1, 30010)f[i] = i, sum[i] = 1, ans[i] = 0;
       ^
0_0_36067240_28963.cpp:36:18: error: 'rep' was not declared in this scope
   rep(i, 1, 30010)f[i] = i, sum[i] = 1, ans[i] = 0;
                  ^


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2025 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.001000(s) query 1, Server time : 2025-02-18 16:45:25, Gzip enabled