Problem | oranges2 |
---|---|
User | Potato3218 |
Submission Time | 2022-12-24 15:14:49 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
oranges2.cpp:7:11: error: ‘N’ was not declared in this scope
7 | int p[N];
| ^
oranges2.cpp: In member function ‘long long int UFDS::find_set(long long int)’:
oranges2.cpp:9:12: error: ‘p’ was not declared in this scope
9 | if(p[x] == x) return x;
| ^
oranges2.cpp:10:9: error: ‘p’ was not declared in this scope
10 | p[x] = find_set(p[x]);
| ^
oranges2.cpp: In member function ‘void UFDS::merge_set(long long int, long long int)’:
oranges2.cpp:17:9: error: ‘p’ was not declared in this scope
17 | p[find_set(a)] = find_set(b);
| ^
oranges2.cpp: In member function ‘void UFDS::init()’:
oranges2.cpp:20:14: error: ‘p’ was not declared in this scope; did you mean ‘pi’?
20 | iota(p, p + N, 0);
| ^
| pi
oranges2.cpp:20:21: error: ‘N’ was not declared in this scope
20 | iota(p, p