cat.cpp: In function 'int main()':
cat.cpp:42:17: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
42 | for (i = 0; i < cycle[0].size(); i++){
| ~~^~~~~~~~~~~~~~~~~
cat.cpp:49:17: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
49 | for (i = 0; i < cycle[0].size(); i++)
| ~~^~~~~~~~~~~~~~~~~
cat.cpp:51:17: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
51 | for (j = 0; k < cycle[1].size(); j++, k++){
| ~~^~~~~~~~~~~~~~~~~
cat.cpp:58:12: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
58 | if (i == cycle[0].size())
| ~~^~~~~~~~~~~~~~~~~~
cat.cpp:60:12: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
60 | if (j == cycle[1].size())
| ~~^~~~~~~~~~~~~~~~~~
cat.cpp:67:17: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
67 | for (i = 1; i < same.size() - 1; i++){
| ~~^~~~~~~~~~~~~~~~~
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 = 0; i < same.size();i++){
| ~~^~~~~~~~~~~~~
cat.cpp:81:18: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<edge>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
81 | for (j = 0; j < adjList[same[i]].size(); j++)
| ~~^~~~~~~~~~~~~~~~~~~~~~~~~
cat.cpp: In function 'void dfs(int)':
cat.cpp:131:17: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<edge>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
131 | for (i = 0; i < adjList[current.nd].size(); i++){
| ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~
cat.cpp:102:12: warning: unused variable 'ans' [-Wunused-variable]
102 | 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:33:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
33 | scanf("%d %d", &a, &b);
| ~~~~~^~~~~~~~~~~~~~~~~