Problem inheritance
User yc
Submission Time 2025-08-04 10:48:28
Score 0
Max Time N/A
Max Memory N/A

Compile Error

inheritance.cpp: In function ‘int main()’:
inheritance.cpp:42:61: error: too few arguments to function ‘bool union1(long long int, long long int, long long int)’
42 | if (union1(v[j].second.first,v[j].second.second)) {
| ^
inheritance.cpp:14:6: note: declared here
14 | bool union1(int x, int y,int k){
| ^~~~~~