You are viewing a single comment's thread. Return to all comments →
This works:
it=s.find(d); if(it!=s.end()) printf("Yes\n"); else printf("No\n");
But this gives wrong answer in 2 testcases:
it=s.find(d); if( (*it)==d) printf("Yes\n"); else printf("No\n");
Can I know why?
Sets-STL
You are viewing a single comment's thread. Return to all comments →
This works:
But this gives wrong answer in 2 testcases:
Can I know why?