count_triplets.cpp: In function 'long long int dfs(int, int)':
count_triplets.cpp:23:23: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
23 | vis[i] = sizes[i] = 1;
| ~~~~~~~~~^~~
count_triplets.cpp: In function 'int main()':
count_triplets.cpp:46:13: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'long long int*' [-Wformat=]
46 | scanf("%d%d",&n,&m);
| ~^ ~~
| | |
| int* long long int*
| %lld
count_triplets.cpp:46:15: warning: format '%d' expects argument of type 'int*', but argument 3 has type 'long long int*' [-Wformat=]
46 | scanf("%d%d",&n,&m);
| ~^ ~~
| | |
| int* long long int*
| %lld
count_triplets.cpp:46:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
46 | scanf("%d%d",&n,&m);
| ~~~~~^~~~~~~~~~~~~~
count_triplets.cpp:50:14: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
50 | scanf("%d%d",&u,&v);
| ~~~~~^~~~~~~~~~~~~~