Language: C++

#include "bits/stdc++.h"
using namespace std;
typedef pair<int, int> P;
typedef long long ll;
const int MOD = 1000000007;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
 
int main(){
  int n, k, q;
  string Sn, Sk, Sq;
  cin.get( Sn, Sk, Sq );
  n = Integer.valueOf(Sn).intValue();
  k = Integer.valueOf(Sk).intValue();
  q = Integer.valueOf(Sq).intValue();
  int* p = new int[n];
  int* a = new int[q];
  for (int i = 0; i < n; i++)
  {
    a[i] = k - q;
  }
  
  for (int i = 0; i < q; i++)
  {
    int a;
    cin >> a;
    p[a]++;
  }
  
  for (int i = 0; i < n; i++)
  {
    if (p[i] > 0)
    {
      cout << "Yes";
    }
    else
    {
      cout << "No";
    }
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:10: error: no matching function for call to 'std::basic_istream<char>::get(std::string&, std::string&, std::string&)'
   11 |   cin.get( Sn, Sk, Sq );
      |   ~~~~~~~^~~~~~~~~~~~~~
In file included from /usr/include/c++/14/sstream:40,
                 from /usr/include/c++/14/complex:45,
                 from /usr/include/c++/14/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:127,
                 from a.cc:1:
/usr/include/c++/14/istream:395:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::int_type std::basic_istream<_CharT, _Traits>::get() [with _CharT = char; _Traits = std::char_traits<char>; int_type = int]'
  395 |       get();
      |       ^~~
/usr/include/c++/14/istream:395:7: note:   candidate expects 0 arguments, 3 provided
/usr/include/c++/14/istream:409:7: note: candidate: 'std::basic_istream<_CharT, _Traits>& std::basic_istream<_CharT, _Traits>::get(char_type&) [with _CharT = char; _Traits = std::char_traits<char>; char_type = char]'
  409 |       get(char_type& __c);
      |       ^~~
/usr/include/c++/14/istream:409:7: note:   candidate expects 1 argument, 3 provided
/usr/include/c++/14/istream:436:7: note: candidate: 'std::basic_istream<_CharT, _Traits>& std::basic_istream<_CharT, _Traits>::get(char_type*, std::streamsize, char_type) [with _CharT = char; _Traits = std::char_traits<char>; char_type = char; std::streamsize = long int]'
  436 |       get(char_type* __s, streamsize __n, char_type __delim);
      |       ^~~
/usr/include/c++/14/istream:436:22: note:   no known conversion for argument 1 from 'std::string' {aka 'std::__cxx11::basic_string<char>'} to 'std::basic_istream<char>::char_type*' {aka 'char*'}
  436 |       get(char_type* __s, streamsize __n, char_type __delim);
      |           ~~~~~~~~~~~^~~
/usr/include/c++/14/istream:447:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::get(char_type*, std::streamsize) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>; char_type = char; std::streamsize = long int]'
  447 |       get(char_type* __s, streamsize __n)
      |       ^~~
/usr/include/c++/14/istream:447:7: note:   candidate expects 2 arguments, 3 provided
/usr/include/c++/14/istream:470:7: note: candidate: 'std::basic_istream<_CharT, _Traits>& std::basic_istream<_CharT, _Traits>::get(__streambuf_type&, char_type) [with _CharT = char; _Traits = std::char_traits<char>; __streambuf_type = std::basic_streambuf<char>; char_type = char]'
  470 |       get(__streambuf_type& __sb, char_type __delim);
      |       ^~~
/usr/include/c++/14/istream:470:7: note:   candidate expects 2 arguments, 3 provided
/usr/include/c++/14/istream:480:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::get(__streambuf_type&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>; __streambuf_type = std::basic_streambuf<char>]'
  480 |       get(__streambuf_type& __sb)
      |       ^~~
/usr/include/c++/14/istream:480:7: note:   candidate expects 1 argument, 3 provided
a.cc:12:7: error: 'Integer' was not declared in this scope
   12 |   n = Integer.valueOf(Sn).intValue();
      |       ^~~~~~~