dna.cpp: In function 'int32_t main()':
dna.cpp:32:20: warning: comparison of integer expressions of different signedness: 'std::map<long long int, long long int>::size_type' {aka 'long unsigned int'} and 'long long int' [-Wsign-compare]
32 | if(flg||mp.size()<k)
| ~~~~~~~~~^~
dna.cpp:40:88: warning: comparison of integer expressions of different signedness: 'std::map<long long int, long long int>::size_type' {aka 'long unsigned int'} and 'long long int' [-Wsign-compare]
40 | if((req.count(arr[r]) && mp[arr[r]]-1 < req[arr[r]]) || mp.size()-(mp[arr[r]]-1==0)<k) break;
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~
dna.cpp:63:18: warning: comparison of integer expressions of different signedness: 'std::map<long long int, long long int>::size_type' {aka 'long unsigned int'} and 'long long int' [-Wsign-compare]
63 | if(mp.size()<k)
| ~~~~~~~~~^~
dna.cpp:69:22: warning: comparison of integer expressions of different signedness: 'std::map<long long int, long long int>::size_type' {aka 'long unsigned int'} and 'long long int' [-Wsign-compare]
69 | if(mp.size()==k) break;
| ~~~~~~~~~^~~
dna.cpp:79:18: warning: comparison of integer expressions of different signedness: 'std::map<long long int, long long int>::size_type' {aka 'long unsigned int'} and 'long long int' [-Wsign-compare]
79 | if(mp.size()>=k && cnt==req.size())
| ~~~~~~~~~^~~
dna.cpp:79:28: warning: comparison of integer expressions of different signedness: 'long long int' and 'std::map<long long int, long long int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
79 | if(mp.size()>=k && cnt==req.size())
| ~~~^~~~~~~~~~~~