bosses.cpp: In function 'void bfs(long long int)':
bosses.cpp:14:19: warning: comparison of integer expressions of different signedness: 'long long int' and 'std::vector<long long int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
14 | for (int i=0;i<q.size();i++){
| ~^~~~~~~~~
bosses.cpp: In function 'void getans()':
bosses.cpp:24:19: warning: comparison of integer expressions of different signedness: 'long long int' and 'std::vector<long long int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
24 | for (int i=0;i<q.size()-1;i++) dp[p[q[i]]]+=dp[q[i]];
| ~^~~~~~~~~~~
bosses.cpp: In function 'int32_t main()':
bosses.cpp:44:21: warning: comparison of integer expressions of different signedness: 'std::vector<long long int>::size_type' {aka 'long unsigned int'} and 'long long int' [-Wsign-compare]
44 | if (q.size()<n) continue;
| ~~~~~~~~^~