rings.cpp: In function 'bool dfs(int)':
rings.cpp:24:15: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
24 | for(int i=0;i<adj[u].size();i++){
| ~^~~~~~~~~~~~~~
rings.cpp:27:9: warning: pointer to a function used in arithmetic [-Wpointer-arith]
27 | dfs[v];
| ^
rings.cpp:27:9: warning: value computed is not used [-Wunused-value]
27 | dfs[v];
| ~~~~~^
rings.cpp:27:9: warning: statement has no effect [-Wunused-value]
rings.cpp: In function 'int CountCritical()':
rings.cpp:45:13: warning: pointer to a function used in arithmetic [-Wpointer-arith]
45 | if(dfs[i]) k++;
| ^
rings.cpp:58:17: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
58 | for(int i=0;i<sz(adj[v[0]]);i++){
| ^
rings.cpp: In function 'bool dfs(int)':
rings.cpp:30:1: warning: control reaches end of non-void function [-Wreturn-type]
30 | }
| ^
rings.cpp: In function 'int CountCritical()':
rings.cpp:33:14: warning: control reaches end of non-void function [-Wreturn-type]
33 | vector<int> v;
| ^