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;
^
|