Language: C++

#include <cstdio>
using namespace std;
int main() {
  int N,tmp;
  str S;
  cin >> N;
  N=atoi(S);
  
  for(int i=0;i++;i<N){
    str s;
    sprintf(s, "%d", i);
    if(s.find('0') == std::string::npos &&
       s.find('1') == std::string::npos &&
       s.find('2') == std::string::npos &&
       s.find('3') != std::string::npos &&
       s.find('4') == std::string::npos &&
       s.find('5') != std::string::npos &&
       s.find('6') == std::string::npos &&
       s.find('7') != std::string::npos &&
       s.find('8') == std::string::npos &&
       s.find('9') == std::string::npos &&){
      tmp++;
    }
  }
  printf('%d', tmp)
}

Compiler output:
a.cc:25:10: warning: multi-character character constant [-Wmultichar]
   25 |   printf('%d', tmp)
      |          ^~~~
a.cc: In function 'int main()':
a.cc:5:3: error: 'str' was not declared in this scope; did you mean 'std'?
    5 |   str S;
      |   ^~~
      |   std
a.cc:6:3: error: 'cin' was not declared in this scope
    6 |   cin >> N;
      |   ^~~
a.cc:2:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    1 | #include <cstdio>
  +++ |+#include <iostream>
    2 | using namespace std;
a.cc:7:10: error: 'S' was not declared in this scope
    7 |   N=atoi(S);
      |          ^
a.cc:7:5: error: 'atoi' was not declared in this scope
    7 |   N=atoi(S);
      |     ^~~~
a.cc:10:8: error: expected ';' before 's'
   10 |     str s;
      |        ^~
      |        ;
a.cc:11:13: error: 's' was not declared in this scope
   11 |     sprintf(s, "%d", i);
      |             ^
a.cc:12:28: error: 'std::string' has not been declared
   12 |     if(s.find('0') == std::string::npos &&
      |                            ^~~~~~
a.cc:13:28: error: 'std::string' has not been declared
   13 |        s.find('1') == std::string::npos &&
      |                            ^~~~~~
a.cc:14:28: error: 'std::string' has not been declared
   14 |        s.find('2') == std::string::npos &&
      |                            ^~~~~~
a.cc:15:28: error: 'std::string' has not been declared
   15 |        s.find('3') != std::string::npos &&
      |                            ^~~~~~
a.cc:16:28: error: 'std::string' has not been declared
   16 |        s.find('4') == std::string::npos &&
      |                            ^~~~~~
a.cc:17:28: error: 'std::string' has not been declared
   17 |        s.find('5') != std::string::npos &&
      |                            ^~~~~~
a.cc:18:28: error: 'std::string' has not been declared
   18 |        s.find('6') == std::string::npos &&
      |                            ^~~~~~
a.cc:19:28: error: 'std::string' has not been declared
   19 |        s.find('7') != std::string::npos &&
      |                            ^~~~~~
a.cc:20:28: error: 'std::string' has not been declared
   20 |        s.find('8') == std::string::npos &&
      |                            ^~~~~~
a.cc:21:28: error: 'std::string' has not been declared
   21 |        s.find('9') == std::string::npos &&){
      |                            ^~~~~~
a.cc:21:43: error: expected primary-expression before ')' token
   21 |        s.find('9') == std::string::npos &&){
      |                                           ^
a.cc:25:10: error: invalid conversion from 'int' to 'const char*' [-fpermissive]
   25 |   printf('%d', tmp)
      |          ^~~~
      |          |
      |          int
In file included from /usr/include/c++/14/cstdio:42,
                 from a.cc:1:
/usr/include/stdio.h:363:43: note:   initializing argument 1 of 'int printf(const char*, ...)'
  363 | extern int printf (const char *__restrict __format, ...);
      |                    ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
a.cc:25:20: error: expected ';' before '}' token
   25 |   printf('%d', tmp)
      |                    ^
      |                    ;
   26 | }
      | ~