cat.cpp: In function 'int main()':
cat.cpp:31:10: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
31 | if (n = 2){
| ~~^~~
cat.cpp:47:17: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
47 | for (i = 0; i < cycle[0].size(); i++){
| ~~^~~~~~~~~~~~~~~~~
cat.cpp:54:17: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
54 | for (i = 0; i < cycle[0].size(); i++)
| ~~^~~~~~~~~~~~~~~~~
cat.cpp:56:17: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
56 | for (j = 0; k < cycle[1].size(); j++, k++){
| ~~^~~~~~~~~~~~~~~~~
cat.cpp:63:12: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
63 | if (i == cycle[0].size())
| ~~^~~~~~~~~~~~~~~~~~
cat.cpp:65:12: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
65 | if (j == cycle[1].size())
| ~~^~~~~~~~~~~~~~~~~~
cat.cpp:72:17: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
72 | for (i = 1; i < same.size() - 1; i++){
| ~~^~~~~~~~~~~~~~~~~
cat.cpp:77:17: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
77 | for (i = 0; i < same.size();i++){
| ~~^~~~~~~~~~~~~
cat.cpp:86:18: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<edge>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
86 | for (j = 0; j < adjList[same[i]].size(); j++)
| ~~^~~~~~~~~~~~~~~~~~~~~~~~~
cat.cpp: In function 'void dfs(int)':
cat.cpp:136:17: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<edge>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
136 | for (i = 0; i < adjList[current.nd].size(); i++){
| ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~
cat.cpp:107:12: warning: unused variable 'ans' [-Wunused-variable]
107 | int i, j, ans;
| ^~~
cat.cpp: In function 'int main()':
cat.cpp:29:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
29 | scanf("%d %d", &n, &m);
| ~~~~~^~~~~~~~~~~~~~~~~
cat.cpp:38:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
38 | scanf("%d %d", &a, &b);
| ~~~~~^~~~~~~~~~~~~~~~~