Language: C++

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

int main()
{
string a;
int b,c[10],A = 0,B = 0,C = 0,D = 0,E = 0,F = 0,G = 0,H = 0,I = 0,J = 0;
cin >> a >> b;
for(int S = 0; S < b;S++){
	cin >> c[S];
	if(c[S] == 0){J = 1;}
	else if(c[S] == 1){A = 1;}
	else if(c[S] == 2){B = 1;}
	else if(c[S] == 3){C = 1;}
	else if(c[S] == 4){D = 1:}
	else if(c[S] == 5){E = 1:}
	else if(c[S] == 6){F = 1;}
	else if(c[S] == 7){G = 1;}
	else if(c[S] == 8){H = 1;}
	else if(c[S] == 9){I = 1;}
}
for(int S = 0; S < a.size();S++){
	if(J){if(a[S] == "0"){a[S] = "1";}}
	if(A){if(a[S] == "1"){a[S] = "2";}}
	if(B){if(a[S] == "2"){a[S] = "3";}}
	if(C){if(a[S] == "3"){a[S] = "4";}}
	if(D){if(a[S] == "4"){a[S] = "5";}}
	if(E){if(a[S] == "5"){a[S] = "6";}}
	if(F){if(a[S] == "6"){a[S] = "7";}}
	if(G){if(a[S] == "7"){a[S] = "8";}}
	if(H){if(a[S] == "8"){a[S] = "9";}}
	if(I){if(a[S] == "9"){a[S] = "0";}}
}
cout << a << endl;
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:15:33: error: expected ';' before ':' token
   15 |         else if(c[S] == 4){D = 1:}
      |                                 ^
      |                                 ;
a.cc:16:33: error: expected ';' before ':' token
   16 |         else if(c[S] == 5){E = 1:}
      |                                 ^
      |                                 ;
a.cc:23:23: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   23 |         if(J){if(a[S] == "0"){a[S] = "1";}}
a.cc:23:38: error: invalid conversion from 'const char*' to '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'} [-fpermissive]
   23 |         if(J){if(a[S] == "0"){a[S] = "1";}}
      |                                      ^~~
      |                                      |
      |                                      const char*
a.cc:24:23: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   24 |         if(A){if(a[S] == "1"){a[S] = "2";}}
a.cc:24:38: error: invalid conversion from 'const char*' to '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'} [-fpermissive]
   24 |         if(A){if(a[S] == "1"){a[S] = "2";}}
      |                                      ^~~
      |                                      |
      |                                      const char*
a.cc:25:23: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   25 |         if(B){if(a[S] == "2"){a[S] = "3";}}
a.cc:25:38: error: invalid conversion from 'const char*' to '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'} [-fpermissive]
   25 |         if(B){if(a[S] == "2"){a[S] = "3";}}
      |                                      ^~~
      |                                      |
      |                                      const char*
a.cc:26:23: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   26 |         if(C){if(a[S] == "3"){a[S] = "4";}}
a.cc:26:38: error: invalid conversion from 'const char*' to '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'} [-fpermissive]
   26 |         if(C){if(a[S] == "3"){a[S] = "4";}}
      |                                      ^~~
      |                                      |
      |                                      const char*
a.cc:27:23: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   27 |         if(D){if(a[S] == "4"){a[S] = "5";}}
a.cc:27:38: error: invalid conversion from 'const char*' to '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'} [-fpermissive]
   27 |         if(D){if(a[S] == "4"){a[S] = "5";}}
      |                                      ^~~
      |                                      |
      |                                      const char*
a.cc:28:23: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   28 |         if(E){if(a[S] == "5"){a[S] = "6";}}
a.cc:28:38: error: invalid conversion from 'const char*' to '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'} [-fpermissive]
   28 |         if(E){if(a[S] == "5"){a[S] = "6";}}
      |                                      ^~~
      |                                      |
      |                                      const char*
a.cc:29:23: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   29 |         if(F){if(a[S] == "6"){a[S] = "7";}}
a.cc:29:38: error: invalid conversion from 'const char*' to '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'} [-fpermissive]
   29 |         if(F){if(a[S] == "6"){a[S] = "7";}}
      |                                      ^~~
      |                                      |
      |                                      const char*
a.cc:30:23: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   30 |         if(G){if(a[S] == "7"){a[S] = "8";}}
a.cc:30:38: error: invalid conversion from 'const char*' to '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'} [-fpermissive]
   30 |         if(G){if(a[S] == "7"){a[S] = "8";}}
      |                                      ^~~
      |                                      |
      |                                      const char*
a.cc:31:23: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   31 |         if(H){if(a[S] == "8"){a[S] = "9";}}
a.cc:31:38: error: invalid conversion from 'const char*' to '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'} [-fpermissive]
   31 |         if(H){if(a[S] == "8"){a[S] = "9";}}
      |                                      ^~~
      |                                      |
      |                                      const char*
a.cc:32:23: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   32 |         if(I){if(a[S] == "9"){a[S] = "0";}}
a.cc:32:38: error: invalid conversion from 'const char*' to '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'} [-fpermissive]
   32 |         if(I){if(a[S] == "9"){a[S] = "0";}}
      |                                      ^~~
      |                                      |
      |                                      const char*