Language: C++

#include<bits/stdc++.h>
using namespace std;

int main(){
  int N,count = 0;
  cin >> N;
  set<vector<char>> S;
  
  for(int i = 0;i < N;i++){
    string s;
    cin >> s;
    S.insert(s);
  }
  
  for(int i = 0;i < N;i++){
    for(int j = 0;j < 10;j++){
      if(S.at(i).at(i) == S.at(i).at(j)){
      	  char c = S.at(i).at(i);
      	  S.at(i).erase(c);
      	  char c1 = S.at(i).at(j);
      	  S.at(i).erase(c1);
      }
  	}
    if(S.at(i).empty){
      count++;
    }
  }
  
  cout << count << endl;
}
  
    

Compiler output:
a.cc: In function 'int main()':
a.cc:12:13: error: no matching function for call to 'std::set<std::vector<char> >::insert(std::string&)'
   12 |     S.insert(s);
      |     ~~~~~~~~^~~
In file included from /usr/include/c++/14/set:63,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:158,
                 from a.cc:1:
/usr/include/c++/14/bits/stl_set.h:568:9: note: candidate: 'template<class _InputIterator> void std::set<_Key, _Compare, _Alloc>::insert(_InputIterator, _InputIterator) [with _Key = std::vector<char>; _Compare = std::less<std::vector<char> >; _Alloc = std::allocator<std::vector<char> >]'
  568 |         insert(_InputIterator __first, _InputIterator __last)
      |         ^~~~~~
/usr/include/c++/14/bits/stl_set.h:568:9: note:   candidate expects 2 arguments, 1 provided
/usr/include/c++/14/bits/stl_set.h:511:7: note: candidate: 'std::pair<typename std::_Rb_tree<_Key, _Key, std::_Identity<_Tp>, _Compare, typename __gnu_cxx::__alloc_traits<_Alloc>::rebind<_Key>::other>::const_iterator, bool> std::set<_Key, _Compare, _Alloc>::insert(const value_type&) [with _Key = std::vector<char>; _Compare = std::less<std::vector<char> >; _Alloc = std::allocator<std::vector<char> >; typename std::_Rb_tree<_Key, _Key, std::_Identity<_Tp>, _Compare, typename __gnu_cxx::__alloc_traits<_Alloc>::rebind<_Key>::other>::const_iterator = std::_Rb_tree<std::vector<char>, std::vector<char>, std::_Identity<std::vector<char> >, std::less<std::vector<char> >, std::allocator<std::vector<char> > >::const_iterator; typename __gnu_cxx::__alloc_traits<_Alloc>::rebind<_Key>::other = std::allocator<std::vector<char> >; typename __gnu_cxx::__alloc_traits<_Alloc>::rebind<_Key> = __gnu_cxx::__alloc_traits<std::allocator<std::vector<char> >, std::vector<char> >::rebind<std::vector<char> >; typename _Alloc::value_type = std::vector<char>; value_type = std::vector<char>]'
  511 |       insert(const value_type& __x)
      |       ^~~~~~
/usr/include/c++/14/bits/stl_set.h:511:32: note:   no known conversion for argument 1 from 'std::string' {aka 'std::__cxx11::basic_string<char>'} to 'const std::set<std::vector<char> >::value_type&' {aka 'const std::vector<char>&'}
  511 |       insert(const value_type& __x)
      |              ~~~~~~~~~~~~~~~~~~^~~
/usr/include/c++/14/bits/stl_set.h:520:7: note: candidate: 'std::pair<typename std::_Rb_tree<_Key, _Key, std::_Identity<_Tp>, _Compare, typename __gnu_cxx::__alloc_traits<_Alloc>::rebind<_Key>::other>::const_iterator, bool> std::set<_Key, _Compare, _Alloc>::insert(value_type&&) [with _Key = std::vector<char>; _Compare = std::less<std::vector<char> >; _Alloc = std::allocator<std::vector<char> >; typename std::_Rb_tree<_Key, _Key, std::_Identity<_Tp>, _Compare, typename __gnu_cxx::__alloc_traits<_Alloc>::rebind<_Key>::other>::const_iterator = std::_Rb_tree<std::vector<char>, std::vector<char>, std::_Identity<std::vector<char> >, std::less<std::vector<char> >, std::allocator<std::vector<char> > >::const_iterator; typename __gnu_cxx::__alloc_traits<_Alloc>::rebind<_Key>::other = std::allocator<std::vector<char> >; typename __gnu_cxx::__alloc_traits<_Alloc>::rebind<_Key> = __gnu_cxx::__alloc_traits<std::allocator<std::vector<char> >, std::vector<char> >::rebind<std::vector<char> >; typename _Alloc::value_type = std::vector<char>; value_type = std::vector<char>]'
  520 |       insert(value_type&& __x)
      |       ^~~~~~
/usr/include/c++/14/bits/stl_set.h:520:27: note:   no known conversion for argument 1 from 'std::string' {aka 'std::__cxx11::basic_string<char>'} to 'std::set<std::vector<char> >::value_type&&' {aka 'std::vector<char>&&'}
  520 |       insert(value_type&& __x)
      |              ~~~~~~~~~~~~~^~~
/usr/include/c++/14/bits/stl_set.h:548:7: note: candidate: 'std::set<_Key, _Compare, _Alloc>::iterator std::set<_Key, _Compare, _Alloc>::insert(const_iterator, const value_type&) [with _Key = std::vector<char>; _Compare = std::less<std::vector<char> >; _Alloc = std::allocator<std::vector<char> >; iterator = std::_Rb_tree<std::vector<char>, std::vector<char>, std::_Identity<std::vector<char> >, std::less<std::vector<char> >, std::allocator<std::vector<char> > >::const_iterator; const_iterator = std::_Rb_tree<std::vector<char>, std::vector<char>, std::_Identity<std::vector<char> >, std::less<std::vector<char> >, std::allocator<std::vector<char> > >::const_iterator; value_type = std::vector<char>]'
  548 |       insert(const_iterator __position, const value_type& __x)
      |       ^~~~~~
/usr/include/c++/14/bits/stl_set.h:548:7: note:   candidate expects 2 arguments, 1 provided
/usr/include/c++/14/bits/stl_set.h:553:7: note: candidate: 'std::set<_Key, _Compare, _Alloc>::iterator std::set<_Key, _Compare, _Alloc>::insert(const_iterator, value_type&&) [with _Key = std::vector<char>; _Compare = std::less<std::vector<char> >; _Alloc = std::allocator<std::vector<char> >; iterator = std::_Rb_tree<std::vector<char>, std::vector<char>, std::_Identity<std::vector<char> >, std::less<std::vector<char> >, std::allocator<std::vector<char> > >::const_iterator; const_iterator = std::_Rb_tree<std::vector<char>, std::vector<char>, std::_Identity<std::vector<char> >, std::less<std::vector<char> >, std::allocator<std::vector<char> > >::const_iterator; value_type = std::vector<char>]'
  553 |       insert(const_iterator __position, value_type&& __x)
      |       ^~~~~~
/usr/include/c++/14/bits/stl_set.h:553:7: note:   candidate expects 2 arguments, 1 provided
/usr/include/c++/14/bits/stl_set.h:580:7: note: candidate: 'void std::set<_Key, _Compare, _Alloc>::insert(std::initializer_list<_Tp>) [with _Key = std::vector<char>; _Compare = std::less<std::vector<char> >; _Alloc = std::allocator<std::vector<char> >]'
  580 |       insert(initializer_list<value_type> __l)
      |       ^~~~~~
/usr/include/c++/14/bits/stl_set.h:580:43: note:   no known conversion for argument 1 from 'std::string' {aka 'std::__cxx11::basic_string<char>'} to 'std::initializer_list<std::vector<char> >'
  580 |       insert(initializer_list<value_type> __l)
      |              ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
/usr/include/c++/14/bits/stl_set.h:600:7: note: candidate: 'std::set<_Key, _Compare, _Alloc>::insert_return_type std::set<_Key, _Compare, _Alloc>::insert(node_type&&) [with _Key = std::vector<char>; _Compare = std::less<std::vector<char> >; _Alloc = std::allocator<std::vector<char> >; insert_return_type = std::_Rb_tree<std::vector<char>, std::vector<char>, std::_Identity<std::vector<char> >, std::less<std::vector<char> >, std::allocator<std::vector<char> > >::insert_return_type; node_type = std::_Rb_tree<std::vector<char>, std::vector<char>, std::_Identity<std::vector<char> >, std::less<std::vector<char> >, std::allocator<std::vector<char> > >::node_type]'
  600 |       insert(node_type&& __nh)
      |       ^~~~~~
/usr/include/c++/14/bits/stl_set.h:600:26: note:   no known conversion for argument 1 from 'std::string' {aka 'std::__cxx11::basic_string<char>'} to 'std::set<std::vector<char> >::node_type&&' {aka 'std::_Rb_tree<std::vector<char>, std::vector<char>, std::_Identity<std::vector<char> >, std::less<std::vector<char> >, std::allocator<std::vector<char> > >::node_type&&'}
  600 |       insert(node_type&& __nh)
      |              ~~~~~~~~~~~~^~~~
/usr/include/c++/14/bits/stl_set.h:605:7: note: candidate: 'std::set<_Key, _Compare, _Alloc>::iterator std::set<_Key, _Compare, _Alloc>::insert(const_iterator, node_type&&) [with _Key = std::vector<char>; _Compare = std::less<std::vector<char> >; _Alloc = std::allocator<std::vector<char> >; iterator = std::_Rb_tree<std::vector<char>, std::vector<char>, std::_Identity<std::vector<char> >, std::less<std::vector<char> >, std::allocator<std::vector<char> > >::const_iterator; const_iterator = std::_Rb_tree<std::vector<char>, std::vector<char>, std::_Identity<std::vector<char> >, std::less<std::vector<char> >, std::allocator<std::vector<char> > >::const_iterator; node_type = std::_Rb_tree<std::vector<char>, std::vector<char>, std::_Identity<std::vector<char> >, std::less<std::vector<char> >, std::allocator<std::vector<char> > >::node_type]'
  605 |       insert(const_iterator __hint, node_type&& __nh)
      |       ^~~~~~
/usr/include/c++/14/bits/stl_set.h:605:7: note:   candidate expects 2 arguments, 1 provided
a.cc:17:12: error: 'class std::set<std::vector<char> >' has no member named 'at'
   17 |       if(S.at(i).at(i) == S.at(i).at(j)){
      |            ^~
a.cc:17:29: error: 'class std::set<std::vector<char> >' has no member named 'at'
   17 |       if(S.at(i).at(i) == S.at(i).at(j)){
      |                             ^~
a.cc:18:22: error: 'class std::set<std::vector<char> >' has no member named 'at'
   18 |           char c = S.at(i).at(i);
      |                      ^~
a.cc:19:13: error: 'class std::set<std::vector<char> >' has no member named 'at'
   19 |           S.at(i).erase(c);
      |             ^~
a.cc:20:23: error: 'class std::set<std::vector<char> >' has no member named 'at'
   20 |           char c1 = S.at(i).at(j);
      |                       ^~
a.cc:21:13: error: 'class std::set<std::vector<char> >' has no member named 'at'
   21 |           S.at(i).erase(c1);
      |             ^~
a.cc:24:10: error: 'class std::set<std::vector<char> >' has no member named 'at'
   24 |     if(S.at(i).empty){
      |          ^~