count_triplets.cpp: In function 'void dfs1(int)':
count_triplets.cpp:36:4: error: reference to 'size' is ambiguous
36 | ++size;
| ^~~~
In file included from /usr/include/c++/9/string:54,
from /usr/include/c++/9/bits/locale_classes.h:40,
from /usr/include/c++/9/bits/ios_base.h:41,
from /usr/include/c++/9/ios:42,
from /usr/include/c++/9/istream:38,
from /usr/include/c++/9/sstream:38,
from /usr/include/c++/9/complex:45,
from /usr/include/c++/9/ccomplex:39,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:54,
from count_triplets.cpp:1:
/usr/include/c++/9/bits/range_access.h:252:5: note: candidates are: 'template<class _Tp, long unsigned int _Nm> constexpr std::size_t std::size(const _Tp (&)[_Nm])'
252 | size(const _Tp (&/*__array*/)[_Nm]) noexcept
| ^~~~
/usr/include/c++/9/bits/range_access.h:242:5: note: 'template<class _Container> constexpr decltype (__cont.size()) std::size(const _Container&)'
242 | size(const _Container& __cont) noexcept(noexcept(__cont.size()))
| ^~~~
count_triplets.cpp:29:43: note: 'int size'
29 | int mark[2*maxn], low[maxn], depth[maxn], size = 0;
| ^~~~
count_triplets.cpp: In function 'void root(int)':
count_triplets.cpp:124:29: error: reference to 'size' is ambiguous
124 | mark[u] = 1; here = {u}; ++size;
| ^~~~
In file included from /usr/include/c++/9/string:54,
from /usr/include/c++/9/bits/locale_classes.h:40,
from /usr/include/c++/9/bits/ios_base.h:41,
from /usr/include/c++/9/ios:42,
from /usr/include/c++/9/istream:38,
from /usr/include/c++/9/sstream:38,
from /usr/include/c++/9/complex:45,
from /usr/include/c++/9/ccomplex:39,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:54,
from count_triplets.cpp:1:
/usr/include/c++/9/bits/range_access.h:252:5: note: candidates are: 'template<class _Tp, long unsigned int _Nm> constexpr std::size_t std::size(const _Tp (&)[_Nm])'
252 | size(const _Tp (&/*__array*/)[_Nm]) noexcept
| ^~~~
/usr/include/c++/9/bits/range_access.h:242:5: note: 'template<class _Container> constexpr decltype (__cont.size()) std::size(const _Container&)'
242 | size(const _Container& __cont) noexcept(noexcept(__cont.size()))
| ^~~~
count_triplets.cpp:29:43: note: 'int size'
29 | int mark[2*maxn], low[maxn], depth[maxn], size = 0;
| ^~~~
count_triplets.cpp: In function 'int main()':
count_triplets.cpp:153:40: error: reference to 'size' is ambiguous
153 | if(!mark[i]) root(i), ans += choose3(size), size = 0;
| ^~~~
In file included from /usr/include/c++/9/string:54,
from /usr/include/c++/9/bits/locale_classes.h:40,
from /usr/include/c++/9/bits/ios_base.h:41,
from /usr/include/c++/9/ios:42,
from /usr/include/c++/9/istream:38,
from /usr/include/c++/9/sstream:38,
from /usr/include/c++/9/complex:45,
from /usr/include/c++/9/ccomplex:39,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:54,
from count_triplets.cpp:1:
/usr/include/c++/9/bits/range_access.h:252:5: note: candidates are: 'template<class _Tp, long unsigned int _Nm> constexpr std::size_t std::size(const _Tp (&)[_Nm])'
252 | size(const _Tp (&/*__array*/)[_Nm]) noexcept
| ^~~~
/usr/include/c++/9/bits/range_access.h:242:5: note: 'template<class _Container> constexpr decltype (__cont.size()) std::size(const _Container&)'
242 | size(const _Container& __cont) noexcept(noexcept(__cont.size()))
| ^~~~
count_triplets.cpp:29:43: note: 'int size'
29 | int mark[2*maxn], low[maxn], depth[maxn], size = 0;
| ^~~~
count_triplets.cpp:153:47: error: reference to 'size' is ambiguous
153 | if(!mark[i]) root(i), ans += choose3(size), size = 0;
| ^~~~
In file included from /usr/include/c++/9/string:54,
from /usr/include/c++/9/bits/locale_classes.h:40,
from /usr/include/c++/9/bits/ios_base.h:41,
from /usr/include/c++/9/ios:42,
from /usr/include/c++/9/istream:38,
from /usr/include/c++/9/sstream:38,
from /usr/include/c++/9/complex:45,
from /usr/include/c++/9/ccomplex:39,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:54,
from count_triplets.cpp:1:
/usr/include/c++/9/bits/range_access.h:252:5: note: candidates are: 'template<class _Tp, long unsigned int _Nm> constexpr std::size_t std::size(const _Tp (&)[_Nm])'
252 | size(const _Tp (&/*__array*/)[_Nm]) noexcept
| ^~~~
/usr/include/c++/9/bits/range_access.h:242:5: note: 'template<class _Container> constexpr decltype (__cont.size()) std::size(const _Container&)'
242 | size(const _Container& __cont) noexcept(noexcept(__cont.size()))
| ^~~~
count_triplets.cpp:29:43: note: 'int size'
29 | int mark[2*maxn], low[maxn], depth[maxn], size = 0;
| ^~~~
count_triplets.cpp:143:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
143 | scanf("%d %d", &n, &m);
| ~~~~~^~~~~~~~~~~~~~~~~
count_triplets.cpp:145:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
145 | scanf("%d %d", &a, &b), g[a].pb(b), g[b].pb(a);
| ~~~~~^~~~~~~~~~~~~~~~~