Language: C++

#include "bits/stdc++.h"
using namespace std;
typedef long long ll;
typedef long double ld;
#define REP(i, a, b) for(ll i = ll(a); i <= ll(b); i++)
int main()
{
	ll a,b,x;
	cin>>a>>b;
	string s;
	cin>>s;
	for ( int i =0; i < A ; i ++) if (!( ’0 ’ <= s [ i ]&& s [ i ] <= ’9 ’))
	{
		puts (" No "); return 0;
	}
	if ( s [ A ]!= ’ - ’)
	{
		puts (" No "); return 0;
	}
	for ( int i = A +1; i <= A + B ; i ++) if (!( ’0 ’ <= s [ i ]&& s [ i ] <= ’9 ’))
	{
		puts (" No "); return 0;
	}
	puts (" Yes ");
}

Compiler output:
a.cc:12:46: error: extended character ’ is not valid in an identifier
   12 |         for ( int i =0; i < A ; i ++) if (!( ’0 ’ <= s [ i ]&& s [ i ] <= ’9 ’))
      |                                              ^
a.cc:12:49: error: extended character ’ is not valid in an identifier
   12 |         for ( int i =0; i < A ; i ++) if (!( ’0 ’ <= s [ i ]&& s [ i ] <= ’9 ’))
      |                                                 ^
a.cc:12:75: error: extended character ’ is not valid in an identifier
   12 |         for ( int i =0; i < A ; i ++) if (!( ’0 ’ <= s [ i ]&& s [ i ] <= ’9 ’))
      |                                                                           ^
a.cc:12:78: error: extended character ’ is not valid in an identifier
   12 |         for ( int i =0; i < A ; i ++) if (!( ’0 ’ <= s [ i ]&& s [ i ] <= ’9 ’))
      |                                                                              ^
a.cc:16:24: error: extended character ’ is not valid in an identifier
   16 |         if ( s [ A ]!= ’ - ’)
      |                        ^
a.cc:16:28: error: extended character ’ is not valid in an identifier
   16 |         if ( s [ A ]!= ’ - ’)
      |                            ^
a.cc:20:55: error: extended character ’ is not valid in an identifier
   20 |         for ( int i = A +1; i <= A + B ; i ++) if (!( ’0 ’ <= s [ i ]&& s [ i ] <= ’9 ’))
      |                                                       ^
a.cc:20:58: error: extended character ’ is not valid in an identifier
   20 |         for ( int i = A +1; i <= A + B ; i ++) if (!( ’0 ’ <= s [ i ]&& s [ i ] <= ’9 ’))
      |                                                          ^
a.cc:20:84: error: extended character ’ is not valid in an identifier
   20 |         for ( int i = A +1; i <= A + B ; i ++) if (!( ’0 ’ <= s [ i ]&& s [ i ] <= ’9 ’))
      |                                                                                    ^
a.cc:20:87: error: extended character ’ is not valid in an identifier
   20 |         for ( int i = A +1; i <= A + B ; i ++) if (!( ’0 ’ <= s [ i ]&& s [ i ] <= ’9 ’))
      |                                                                                       ^
a.cc: In function 'int main()':
a.cc:12:29: error: 'A' was not declared in this scope
   12 |         for ( int i =0; i < A ; i ++) if (!( ’0 ’ <= s [ i ]&& s [ i ] <= ’9 ’))
      |                             ^
a.cc:12:46: error: '\U000020190' was not declared in this scope
   12 |         for ( int i =0; i < A ; i ++) if (!( ’0 ’ <= s [ i ]&& s [ i ] <= ’9 ’))
      |                                              ^~
a.cc:12:48: error: expected ')' before '\U00002019'
   12 |         for ( int i =0; i < A ; i ++) if (!( ’0 ’ <= s [ i ]&& s [ i ] <= ’9 ’))
      |                                            ~   ^~
      |                                                )
a.cc:15:10: error: expected ')' before 'if'
   15 |         }
      |          ^
      |          )
   16 |         if ( s [ A ]!= ’ - ’)
      |         ~~
a.cc:12:42: note: to match this '('
   12 |         for ( int i =0; i < A ; i ++) if (!( ’0 ’ <= s [ i ]&& s [ i ] <= ’9 ’))
      |                                          ^
a.cc:20:29: error: 'i' was not declared in this scope
   20 |         for ( int i = A +1; i <= A + B ; i ++) if (!( ’0 ’ <= s [ i ]&& s [ i ] <= ’9 ’))
      |                             ^
a.cc:20:34: error: 'A' was not declared in this scope
   20 |         for ( int i = A +1; i <= A + B ; i ++) if (!( ’0 ’ <= s [ i ]&& s [ i ] <= ’9 ’))
      |                                  ^
a.cc:20:38: error: 'B' was not declared in this scope
   20 |         for ( int i = A +1; i <= A + B ; i ++) if (!( ’0 ’ <= s [ i ]&& s [ i ] <= ’9 ’))
      |                                      ^