Main.cpp: In function 'int main()':
Main.cpp:16:34: 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]
16 | map<int,int> mp;for(int i=0;i<c.size();i++) mp[c[i]]=i;
| ~^~~~~~~~~
Main.cpp:23:22: 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]
23 | for(int j=0;j<c.size();j++){
| ~^~~~~~~~~
Main.cpp:33:18: 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]
33 | for(int i=0;i<c.size();i++) ans=max(ans,dp[n-1][i]);
| ~^~~~~~~~~