count_triplets.cpp: In function 'int main()':
count_triplets.cpp:37:30: error: too few arguments to function 'll dfs(ll, ll)'
37 | if(!vis[i]) x = dfs(i);
| ^
count_triplets.cpp:12:5: note: declared here
12 | int dfs(int node, int par) {
| ^~~
count_triplets.cpp:39:23: error: 'ans' was not declared in this scope; did you mean 'abs'?
39 | if (flag) ans += x*(x-1)*(x-2);
| ^~~
| abs
count_triplets.cpp:40:19: error: 'ans' was not declared in this scope; did you mean 'abs'?
40 | else ans += x*(x-1)*(x-2)/3;
| ^~~
| abs
count_triplets.cpp:43:13: error: 'y' was not declared in this scope
43 | cout << y;
| ^