Problem general
User PlayVoltz
Submission Time 2023-08-11 16:05:17
Score 0
Max Time N/A
Max Memory N/A

Compile Error

general.cpp: In function ‘long long int findparent(long long int)’:
general.cpp:9:12: error: ‘parent’ was not declared in this scope
9 | while (parent[a] > 0) {
| ^~~~~~
general.cpp: In function ‘long long int gconnect(long long int, long long int)’:
general.cpp:31:5: error: ‘parent’ was not declared in this scope; did you mean ‘parentb’?
31 | parent[a] = parenta;
| ^~~~~~
| parentb