Problem triangles
User PlayVoltz
Submission Time 2024-02-24 23:15:27
Score 0
Max Time N/A
Max Memory N/A

Compile Error

triangles.cpp: In function ‘int32_t main()’:
triangles.cpp:21:12: error: ‘__gnu_cxx::__alloc_traits<std::allocator<std::set<long long int> >, std::set<long long int> >::value_type’ {aka ‘class std::set<long long int>’} has no member named ‘push_back’
21 | #define pb push_back
| ^~~~~~~~~
triangles.cpp:43:35: note: in expansion of macro ‘pb’
43 | if (deg[a.fi]>deg[a.se])s[a.se].pb(a.fi);
| ^~
triangles.cpp:44:8: error: ‘adj’ was not declared in this scope
44 | else adj[a.fi].pb(a.se);
| ^~~