criyle/codenet-compile-errors huggingface dataset:
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;
	REP(i,0,a-1)
	{		
		if(!('0'<=s[i]&&s[i]<='9'))
		{
			cout<<"No";	return 0;
		}
		x=i;
	}	
	if(s[a]!='-')
	{
		cout<<"No";
		return 0;
	}
	REP(j,a+1,j<a+b)
	{
		if(!('0'<=s[i]&&s[i]<='9'))
		{
			cout<<"No";
			return 0;
		}
	}	
	cout<<"Yes";
}

Compiler output:
a.cc: In function 'int main()':
a.cc:27:29: error: 'i' was not declared in this scope
   27 |                 if(!('0'<=s[i]&&s[i]<='9'))
      |                             ^
Language: C++

#include <bits/stdc++.h>

using namespace std;
using ll = long long;

#define REP(i, n) for (ll i = 0; i < n; i++)
#define INF 9223372036854775807
#define all(x) (x).begin(), (x).end()

ll ts = 1000000007;

int main() {
  ios::sync_with_stdio(false);
  cin.tie(0);

  bool can = true;

  ll a, b;
  string s;
  cin >> a >> b >> 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:23:12: error: extended character ’ is not valid in an identifier
   23 |     if (!( ’0 ’ <= s[i] && s[i] <= ’9 ’)) {
      |            ^
a.cc:23:15: error: extended character ’ is not valid in an identifier
   23 |     if (!( ’0 ’ <= s[i] && s[i] <= ’9 ’)) {
      |               ^
a.cc:23:36: error: extended character ’ is not valid in an identifier
   23 |     if (!( ’0 ’ <= s[i] && s[i] <= ’9 ’)) {
      |                                    ^
a.cc:23:39: error: extended character ’ is not valid in an identifier
   23 |     if (!( ’0 ’ <= s[i] && s[i] <= ’9 ’)) {
      |                                       ^
a.cc:27:15: error: extended character ’ is not valid in an identifier
   27 |   if (s[a] != ’ - ’) {
      |               ^
a.cc:27:19: error: extended character ’ is not valid in an identifier
   27 |   if (s[a] != ’ - ’) {
      |                   ^
a.cc:32:12: error: extended character ’ is not valid in an identifier
   32 |     if (!( ’0 ’ <= s[i] && s[i] <= ’9 ’)) {
      |            ^
a.cc:32:15: error: extended character ’ is not valid in an identifier
   32 |     if (!( ’0 ’ <= s[i] && s[i] <= ’9 ’)) {
      |               ^
a.cc:32:36: error: extended character ’ is not valid in an identifier
   32 |     if (!( ’0 ’ <= s[i] && s[i] <= ’9 ’)) {
      |                                    ^
a.cc:32:39: error: extended character ’ is not valid in an identifier
   32 |     if (!( ’0 ’ <= s[i] && s[i] <= ’9 ’)) {
      |                                       ^
a.cc: In function 'int main()':
a.cc:23:12: error: '\U000020190' was not declared in this scope
   23 |     if (!( ’0 ’ <= s[i] && s[i] <= ’9 ’)) {
      |            ^~
a.cc:23:14: error: expected ')' before '\U00002019'
   23 |     if (!( ’0 ’ <= s[i] && s[i] <= ’9 ’)) {
      |          ~   ^~
      |              )
a.cc:26:6: error: expected ')' before 'if'
   26 |     }
      |      ^
      |      )
   27 |   if (s[a] != ’ - ’) {
      |   ~~  
a.cc:23:8: note: to match this '('
   23 |     if (!( ’0 ’ <= s[i] && s[i] <= ’9 ’)) {
      |        ^
a.cc:31:23: error: 'i' was not declared in this scope
   31 |   for (int i = a + 1; i <= a + b; i++)
      |                       ^
Language: C++

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

int main(){
  int a,b;
  string s;
  cin>>a>>b>>s;
  int at=0;
  for(int i=0;i<a;i++){
    if(!(s[i]>='1'&&s[i]<='9')){
      at++;
    }
  }
  for(int i=a+1;i<a+b+1;i++){
    if(!(s[i]>='1'&&a[i]<='9')){
      at++;
    }
  }
  if(s[a]!='-'){
    at++;
  }
  if(at>0) cout<<"No"<<endl;
  else cout<<"Yes"<<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:15:22: error: invalid types 'int[int]' for array subscript
   15 |     if(!(s[i]>='1'&&a[i]<='9')){
      |                      ^
Language: C++

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

int main(){
  int a,b;
  string s;
  cin>>a>>b>>s;
  int at=0;
  for(int i=0;i<a;i++){
    if(!(s[i]>='1'&&s[i]<='9')){
      at++;
    }
  }
  for(i=a+1;i<a+b+1;i++){
    if(!(s[i]>='1'&&a[i]<='9')){
      at++;
    }
  }
  if(s[a]!='-'){
    at++;
  }
  if(at>0) cout<<"No"<<endl;
  else cout<<"Yes"<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:7: error: 'i' was not declared in this scope
   14 |   for(i=a+1;i<a+b+1;i++){
      |       ^
Language: C

#include <stdi.h>
int main(){
  int A, B;
  scanf("%d %d", &A, &B);
  char c[A + B + 2];
  scanf("%s", c);
  for(int i = 0; i < A + B + 1; i++){
    if(i != A && (0 > c[i] - '0' || c[i] - '0' > 9)){
      printf("No\n");
    }
    else if(c[i] != '-'){
      printf("No\n");
    }
  }
  printf("Yes");
}

Compiler output:
main.c:1:10: fatal error: stdi.h: No such file or directory
    1 | #include <stdi.h>
      |          ^~~~~~~~
compilation terminated.
Language: C++

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

int main(){
    int A,B;
    stirng S;
    cin >> A >> B >> S;
    for(int i = 0; i < A+B+1; i++) {
        if(i != A) {
            if(S[i] != '-') {
                continue;
            }
            else {
                cout << "No" << endl;
            }
        } 
        else {
            if(S[i] != '-') {
                cout << "No" << endl;
                return 0;
            }
        }
    }
    cout << "Yes" << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:5: error: 'stirng' was not declared in this scope
    6 |     stirng S;
      |     ^~~~~~
a.cc:7:22: error: 'S' was not declared in this scope
    7 |     cin >> A >> B >> S;
      |                      ^
Language: C++

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

int main(){
  bool ad=false;
  int a,b;
  string s;
  cin>>a>>b>>s;
  for(int i=0;i<a;i++){
    if(!(s[i]>='1'&&s[i]<='9')){
      ad=true;
      break;
    }
  }
  for(int i=a+1;i<A+B+1;i++){
    if(!(s[i]>='1'&&s[i]<='9')){
      ad=true;
      break;
    }
  }
  if(s[a]!='-'){
    ad=true;
  }
  if(ad) cout<<"No"<<endl;
  else cout<<"Yes"<<endl;
  
}
    
    
  


Compiler output:
a.cc: In function 'int main()':
a.cc:15:19: error: 'A' was not declared in this scope
   15 |   for(int i=a+1;i<A+B+1;i++){
      |                   ^
a.cc:15:21: error: 'B' was not declared in this scope
   15 |   for(int i=a+1;i<A+B+1;i++){
      |                     ^
Language: C++

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

int main() {
  int A, B;
  string S;
  
  cin >> A >> B;
  cin >> S;
  if (S.size() == A + B + 1 && S.at(A) == '-'){
    for(int i; i < S.size(); i++){
        if (i == A && S.at(i) != '-') continue;
        else {
          cout << "No" << endl;
          return;
        }
    }
  }
  else {
    cout << "No" << endl;
    return;
  }
  
  cout << "Yes" << endl;
  
}


Compiler output:
a.cc: In function 'int main()':
a.cc:15:11: error: return-statement with no value, in function returning 'int' [-fpermissive]
   15 |           return;
      |           ^~~~~~
a.cc:21:5: error: return-statement with no value, in function returning 'int' [-fpermissive]
   21 |     return;
      |     ^~~~~~
Language: C++

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

int main() {
  int a;
  string s;
  
  cin >> a >> b;
  cin >> s;
  
  if(s.size() == a + b + 1 && s.at(a) == '-'){
    cout << "Yes" << endl;
  }
  else cout << "No" << endl;;
  
  
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:15: error: 'b' was not declared in this scope
    8 |   cin >> a >> b;
      |               ^
Language: C++

#include<math.h>
#include <bits/stdc++.h>
#include <algorithm>
#define rep(i, n) for (int i = 0; i < (int)n; i++)
#define ll long long int
#define py printf("Yes\n")
#define pn printf("No\n")
#define in cin>>
using namespace std;
const int INF = 1001001001;

int main()
{
    int a,b;
    char s[12];
    bool aflag=true;
    bool bflag=true;
    bool haiflag=true;


    in a>>b>>s;
    for(int i=0;i<a;i++)if(!('0'<=s[i]&&s[i]<='9'))aflag=false;
    if(s[a]!='-')bflag=false;
    for(int i=a+1;i<b;i++)if(!('0'<=s[i]&&s[i]<='9'))haiflag=false;
    if(aflag&&bflag&&haiflag)puts("Yes");
    else puts("No")
}


Compiler output:
a.cc: In function 'int main()':
a.cc:26:20: error: expected ';' before '}' token
   26 |     else puts("No")
      |                    ^
      |                    ;
   27 | }
      | ~
Language: C++

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

int main() {
  int a,b;
  string s;
  cin>>a>>b>>s;
  string ans="Yes";
  for(int i=0;i<a;i++){
    if(s[i]=='-') ans="No";
  }
  if(s[a]!="-") ans="No";
  for(int i=0;i<b;i++){
    if(s[a+1+i]=='-') ans="No";
  }
  cout<<ans<<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:12:10: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   12 |   if(s[a]!="-") ans="No";
Language: C++

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

int main() {
  int a,b;
  cin>>a>>b;
  string s;
  cin>>s;
  bool b0=true;
  for(int i=0;i<b;i++){
    if(s[i]=='-') bo=false;
  }
  if(s[b]!='-') bo=false;
  for(int i=0;i<a;i++){
    if(s[b+1+i]=='-') bo=false;
  }
  if(bo) cout<<"Yes"<<endl;
  else cout<<"No"<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:19: error: 'bo' was not declared in this scope; did you mean 'b0'?
   11 |     if(s[i]=='-') bo=false;
      |                   ^~
      |                   b0
a.cc:13:17: error: 'bo' was not declared in this scope; did you mean 'b0'?
   13 |   if(s[b]!='-') bo=false;
      |                 ^~
      |                 b0
a.cc:15:23: error: 'bo' was not declared in this scope; did you mean 'b0'?
   15 |     if(s[b+1+i]=='-') bo=false;
      |                       ^~
      |                       b0
a.cc:17:6: error: 'bo' was not declared in this scope; did you mean 'b0'?
   17 |   if(bo) cout<<"Yes"<<endl;
      |      ^~
      |      b0
Language: C++

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

int main() {
  int a,b;
  cin>>a>>b;
  string s;
  cin>>s;
  bool b=true;
  for(int i=0;i<b;i++){
    if(s[i]=='-') b=false;
  }
  if(s[b]!='-') b=false;
  for(int i=0;i<a;i++){
    if(s[b+1+i]=='-') b=false;
  }
  if(b) cout<<"Yes"<<endl;
  else cout<<"No"<<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:8: error: conflicting declaration 'bool b'
    9 |   bool b=true;
      |        ^
a.cc:5:9: note: previous declaration as 'int b'
    5 |   int a,b;
      |         ^
Language: C++

using namespace std;

int main() {
  int a, b; cin >> a >> b;
  string s; cin >> s;
  string ans = "Yes";
  
  for (int i = 0; i < s.size(); ++i) {
    char c = s[i];
    if (i == a) {
      if (c != '-') {
        ans = "No";
        break;
      }
    }
    else {
      if (c == '-') {
        ans = "No";
      	break;
      }
    }
  }
  
  cout << ans << endl;
  
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:13: error: 'cin' was not declared in this scope
    4 |   int a, b; cin >> a >> b;
      |             ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | using namespace std;
a.cc:5:3: error: 'string' was not declared in this scope
    5 |   string s; cin >> s;
      |   ^~~~~~
a.cc:1:1: note: 'std::string' is defined in header '<string>'; this is probably fixable by adding '#include <string>'
  +++ |+#include <string>
    1 | using namespace std;
a.cc:5:20: error: 's' was not declared in this scope
    5 |   string s; cin >> s;
      |                    ^
a.cc:6:9: error: expected ';' before 'ans'
    6 |   string ans = "Yes";
      |         ^~~~
      |         ;
a.cc:12:9: error: 'ans' was not declared in this scope
   12 |         ans = "No";
      |         ^~~
a.cc:18:9: error: 'ans' was not declared in this scope
   18 |         ans = "No";
      |         ^~~
a.cc:24:3: error: 'cout' was not declared in this scope
   24 |   cout << ans << endl;
      |   ^~~~
a.cc:24:3: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:24:11: error: 'ans' was not declared in this scope
   24 |   cout << ans << endl;
      |           ^~~
a.cc:24:18: error: 'endl' was not declared in this scope
   24 |   cout << ans << endl;
      |                  ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | using namespace std;
Language: C++

int main(){
    int a, b;
    cin >> a >> b;
    string s;
    cin >> s;
    
    for (int i = 0; i < s.length(); i++) {
        if (i == a && s[i] != '-'){
            cout << "No" << endl;
            return 0;
        }
        else if (i == a && s[a] == '-')
            continue ;
        
        if ( !('0' <= s[i] && s[i] <= '9') ) {
            cout << "No" << endl;
            return 0;
        }
    }
    
    cout << "Yes" << endl;
    
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:3:5: error: 'cin' was not declared in this scope
    3 |     cin >> a >> b;
      |     ^~~
a.cc:4:5: error: 'string' was not declared in this scope
    4 |     string s;
      |     ^~~~~~
a.cc:5:12: error: 's' was not declared in this scope
    5 |     cin >> s;
      |            ^
a.cc:9:13: error: 'cout' was not declared in this scope
    9 |             cout << "No" << endl;
      |             ^~~~
a.cc:9:29: error: 'endl' was not declared in this scope
    9 |             cout << "No" << endl;
      |                             ^~~~
a.cc:16:13: error: 'cout' was not declared in this scope
   16 |             cout << "No" << endl;
      |             ^~~~
a.cc:16:29: error: 'endl' was not declared in this scope
   16 |             cout << "No" << endl;
      |                             ^~~~
a.cc:21:5: error: 'cout' was not declared in this scope
   21 |     cout << "Yes" << endl;
      |     ^~~~
a.cc:21:22: error: 'endl' was not declared in this scope
   21 |     cout << "Yes" << endl;
      |                      ^~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define INF 1e9
#define PI 3.14159265359
#define MOD 1000000007
#define ALL(v) v.begin(),v.end()
#define ALLR(v) v.rbegin(),v.rend()
typedef long long ll;
const int dx[4] = {1,0,-1,0};
const int dy[4] = {0,1,0,-1};
//isPrime
//modpow modinv
//getDigit
int main() {
  cout << fixed << setprecision(10);
  int a,b;
  cin >> a >> b;
  string s;
  cin >> s;
  bool c = true;
  if(s.at(i)!='-'){
    c=false;
  }
  rep(i,a+b+1){
    if(i==a) continue;
    if(s.at(i)=='-'){
      c = false;
    }
  }
  if(c){
    cout << "Yes" << endl;
  }else{
    cout << "No" << endl;
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:22:11: error: 'i' was not declared in this scope
   22 |   if(s.at(i)!='-'){
      |           ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define INF 1e9
#define PI 3.14159265359
#define MOD 1000000007
#define ALL(v) v.begin(),v.end()
#define ALLR(v) v.rbegin(),v.rend()
typedef long long ll;
const int dx[4] = {1,0,-1,0};
const int dy[4] = {0,1,0,-1};
//isPrime
//modpow modinv
//getDigit
int main() {
  cout << fixed << setprecision(10);
  int a,b;
  cin >> a >> b;
  string s;
  cin >> s;
  bool a = true;
  if(s.at(i)!='-'){
    a=false;
  }
  rep(i,a+b+1){
    if(i==a) continue;
    if(s.at(i)=='-'){
      a = false;
    }
  }
  if(a){
    cout << "Yes" << endl;
  }else{
    cout << "No" << endl;
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:21:8: error: conflicting declaration 'bool a'
   21 |   bool a = true;
      |        ^
a.cc:17:7: note: previous declaration as 'int a'
   17 |   int a,b;
      |       ^
a.cc:22:11: error: 'i' was not declared in this scope
   22 |   if(s.at(i)!='-'){
      |           ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define INF 1e9
#define PI 3.14159265359
#define MOD 1000000007
#define ALL(v) v.begin(),v.end()
#define ALLR(v) v.rbegin(),v.rend()
typedef long long ll;
const int dx[4] = {1,0,-1,0};
const int dy[4] = {0,1,0,-1};
//isPrime
//modpow modinv
//getDigit
int main() {
  cout << fixed << setprecision(10);
  int a,b;
  cin >> a >> b;
  string s;
  cin >> s;
  bool a = true;
  if(s.at(i)!='-'){
    a=false;
  }
  rep(i,a+b+1){
    if(i==a) continue;
    if(a.at(i)=='-'){
      a = false;
    }
  }
  if(a){
    cout << "Yes" << endl;
  }else{
    cout << "No" << endl;
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:21:8: error: conflicting declaration 'bool a'
   21 |   bool a = true;
      |        ^
a.cc:17:7: note: previous declaration as 'int a'
   17 |   int a,b;
      |       ^
a.cc:22:11: error: 'i' was not declared in this scope
   22 |   if(s.at(i)!='-'){
      |           ^
a.cc:27:10: error: request for member 'at' in 'a', which is of non-class type 'int'
   27 |     if(a.at(i)=='-'){
      |          ^~
Language: C++

#include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < n; i++)
using namespace std;

int main() {
    int A, B;
    string S;
    ans = "Yes\n";
    cin >> A >> B >> S;
    rep(i, A + B + 1) {
        if (i == A) {
            if (S[i] != '-') ans = "No\n";
        } else {//ハイフン以外のところ
            if (S[i] < '0' || S[i] > '9') ans = "No\n";
        }
    }
    cout << ans;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:5: error: 'ans' was not declared in this scope; did you mean 'abs'?
    8 |     ans = "Yes\n";
      |     ^~~
      |     abs
Language: C++

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

int main() {
  int A,B,S;
  S=A+B+1;
  cin>>A>>B;
  
  cout << (24-M)+24 << endl;
  
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:15: error: 'M' was not declared in this scope
    9 |   cout << (24-M)+24 << endl;
      |               ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
  int a,b;
  cin >> a >> b;
  string s;
  cin >> s;
  int i;
  string t="Yes";
  if(s.at(a)!='-'){
    t="No";
  }
  for(i=0;i<s.size(),i++){
    if(i==a){
      continue;
    }
    if(s.at(i)>'9' && s.at(i)<'0'){
      t="No";
    }
  }
  cout << t;
}
    
    

Compiler output:
a.cc: In function 'int main()':
a.cc:13:25: error: expected ';' before ')' token
   13 |   for(i=0;i<s.size(),i++){
      |                         ^
      |                         ;
Language: C++

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

int main() {
  int a, b, c;
  cin >> A>>B ;
  cout << a * b * c << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:10: error: 'A' was not declared in this scope
    6 |   cin >> A>>B ;
      |          ^
a.cc:6:13: error: 'B' was not declared in this scope
    6 |   cin >> A>>B ;
      |             ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
int A,B;
  cin>>A>>B;
  string S;
  cin>>S;
  bool ans=true;
  for(int i=0;i<N;i++){
  if(i==A){
  if(S.at(i)!='-'){
    ans=false; break;
  }
  }else{
  if(S.at(i)=='-'){
  ans=false; break;
  }
  }
  
  }if(ans)
    cout<<"Yes"<<endl;
  else
    cout<<"No"<<endl;

  
  
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:17: error: 'N' was not declared in this scope
    9 |   for(int i=0;i<N;i++){
      |                 ^
Language: Java

import java.io.*;
import java.util.*;
public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        PrintWriter out = new PrintWriter(System.out);
        
        final int A = Integer.parseInt(sc.next());
        final int B = Integer.parseInt(sc.next());
        String[] ss = sc.next().split("-");
        
        if (ss.length > 1
                && ss[0].length() == A
                && ss[0].matches("[0-9]+")
                && ss[1].length() == B
                && ss[1].matches("[0-9]+")) {
            out.println("Yes");
        } else {
            out.println("No");
        }
        
        out.flush();
    }

Compiler output:
Main.java:23: error: reached end of file while parsing
    }
     ^
1 error
Language: C++

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

int main(){
  int a,b;
  cin >> a >> b;
  string s;
  cin >> s;

  for (int i=0;i<a;i++){
    if (!('0'<=s[i]&&s[i]<='9')){
    cout << "No" << endl; 
    }
    if (s[a]!='-'){
    cout << "No" << endl;
    }
  }
  for (int i=a+1;i<=a+b;i++){
    if (!('0'<=s[i]&&s[i]<='9')){
    cout << "No" << endl;
    }
  }
  else cout << "Yes" << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:23:3: error: 'else' without a previous 'if'
   23 |   else cout << "Yes" << endl;
      |   ^~~~
Language: C++

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

int main(){
  int a,b;
  cin >> a >> b;
  string s;
  cin >> s;

  for (int i=0;i<a;i++){
    if (!(’0’<=s[i]&&s[i]<=’9’)){
    cout << "No" << endl; 
    }
    if (s[a]!=’-’){
    cout << "No" << endl;
    }
  }
  for (int i=a+1;i<=a+b;i++){
    if (!(’0’<=s[i]&&s[i]<=’9’)){
    cout << "No" << endl;
    }
  }
  else cout << "Yes" << endl;
}


Compiler output:
a.cc:11:11: error: extended character ’ is not valid in an identifier
   11 |     if (!(’0’<=s[i]&&s[i]<=’9’)){
      |           ^
a.cc:11:11: error: extended character ’ is not valid in an identifier
a.cc:11:28: error: extended character ’ is not valid in an identifier
   11 |     if (!(’0’<=s[i]&&s[i]<=’9’)){
      |                            ^
a.cc:11:28: error: extended character ’ is not valid in an identifier
a.cc:14:15: error: extended character ’ is not valid in an identifier
   14 |     if (s[a]!=’-’){
      |               ^
a.cc:14:17: error: extended character ’ is not valid in an identifier
   14 |     if (s[a]!=’-’){
      |                 ^
a.cc:19:11: error: extended character ’ is not valid in an identifier
   19 |     if (!(’0’<=s[i]&&s[i]<=’9’)){
      |           ^
a.cc:19:11: error: extended character ’ is not valid in an identifier
a.cc:19:28: error: extended character ’ is not valid in an identifier
   19 |     if (!(’0’<=s[i]&&s[i]<=’9’)){
      |                            ^
a.cc:19:28: error: extended character ’ is not valid in an identifier
a.cc: In function 'int main()':
a.cc:11:11: error: '\U000020190\U00002019' was not declared in this scope
   11 |     if (!(’0’<=s[i]&&s[i]<=’9’)){
      |           ^~~
a.cc:11:28: error: '\U000020199\U00002019' was not declared in this scope
   11 |     if (!(’0’<=s[i]&&s[i]<=’9’)){
      |                            ^~~
a.cc:14:15: error: '\U00002019' was not declared in this scope
   14 |     if (s[a]!=’-’){
      |               ^
a.cc:19:11: error: '\U000020190\U00002019' was not declared in this scope
   19 |     if (!(’0’<=s[i]&&s[i]<=’9’)){
      |           ^~~
a.cc:19:28: error: '\U000020199\U00002019' was not declared in this scope
   19 |     if (!(’0’<=s[i]&&s[i]<=’9’)){
      |                            ^~~
a.cc:23:3: error: 'else' without a previous 'if'
   23 |   else cout << "Yes" << endl;
      |   ^~~~
Language: C++

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

int main(){
  int a,b;
  cin >> a >> b;
  string s;
  cin >> s;

  for (int i=0;i<a;i++){
    if (!(’0’<=s[i]&&s[i]<=’9’)){
    cout << "No" << endl; 
  }
    if (s[a]!=’-’){
    cout << "No" << endl;
  }
  for (int i=a+1;i<=a+b;i++){
    if (!(’0’<=s[i]&&s[i]<=’9’)){
    cout << "No" << endl;
  }
  else cout << "Yes" << endl;
}


Compiler output:
a.cc:11:11: error: extended character ’ is not valid in an identifier
   11 |     if (!(’0’<=s[i]&&s[i]<=’9’)){
      |           ^
a.cc:11:11: error: extended character ’ is not valid in an identifier
a.cc:11:28: error: extended character ’ is not valid in an identifier
   11 |     if (!(’0’<=s[i]&&s[i]<=’9’)){
      |                            ^
a.cc:11:28: error: extended character ’ is not valid in an identifier
a.cc:14:15: error: extended character ’ is not valid in an identifier
   14 |     if (s[a]!=’-’){
      |               ^
a.cc:14:17: error: extended character ’ is not valid in an identifier
   14 |     if (s[a]!=’-’){
      |                 ^
a.cc:18:11: error: extended character ’ is not valid in an identifier
   18 |     if (!(’0’<=s[i]&&s[i]<=’9’)){
      |           ^
a.cc:18:11: error: extended character ’ is not valid in an identifier
a.cc:18:28: error: extended character ’ is not valid in an identifier
   18 |     if (!(’0’<=s[i]&&s[i]<=’9’)){
      |                            ^
a.cc:18:28: error: extended character ’ is not valid in an identifier
a.cc: In function 'int main()':
a.cc:11:11: error: '\U000020190\U00002019' was not declared in this scope
   11 |     if (!(’0’<=s[i]&&s[i]<=’9’)){
      |           ^~~
a.cc:11:28: error: '\U000020199\U00002019' was not declared in this scope
   11 |     if (!(’0’<=s[i]&&s[i]<=’9’)){
      |                            ^~~
a.cc:14:15: error: '\U00002019' was not declared in this scope
   14 |     if (s[a]!=’-’){
      |               ^
a.cc:18:11: error: '\U000020190\U00002019' was not declared in this scope
   18 |     if (!(’0’<=s[i]&&s[i]<=’9’)){
      |           ^~~
a.cc:18:28: error: '\U000020199\U00002019' was not declared in this scope
   18 |     if (!(’0’<=s[i]&&s[i]<=’9’)){
      |                            ^~~
a.cc:22:2: error: expected '}' at end of input
   22 | }
      |  ^
a.cc:10:24: note: to match this '{'
   10 |   for (int i=0;i<a;i++){
      |                        ^
a.cc:22:2: error: expected '}' at end of input
   22 | }
      |  ^
a.cc:4:11: note: to match this '{'
    4 | int main(){
      |           ^
Language: C++

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

int main(){
  int a,b;
  cin >> a >> b;
  string s;
  cin >> s;

  for (int i =0;i<A;i++){
    if (!(’0’<=s[i]&&s[i]<=’9’)){
    cout << "No" << endl; 
  }
    if (s[A]!=’-’){
    cout << "No" << endl;
  }
  for ( int i=A+1;i<=A+B;i++){
    if (!(’0’<=s[i]&&s[i]<=’9’)){
    cout << "No" << endl;
  }
  else cout << "Yes" << endl;
}

Compiler output:
a.cc:11:11: error: extended character ’ is not valid in an identifier
   11 |     if (!(’0’<=s[i]&&s[i]<=’9’)){
      |           ^
a.cc:11:11: error: extended character ’ is not valid in an identifier
a.cc:11:28: error: extended character ’ is not valid in an identifier
   11 |     if (!(’0’<=s[i]&&s[i]<=’9’)){
      |                            ^
a.cc:11:28: error: extended character ’ is not valid in an identifier
a.cc:14:15: error: extended character ’ is not valid in an identifier
   14 |     if (s[A]!=’-’){
      |               ^
a.cc:14:17: error: extended character ’ is not valid in an identifier
   14 |     if (s[A]!=’-’){
      |                 ^
a.cc:18:11: error: extended character ’ is not valid in an identifier
   18 |     if (!(’0’<=s[i]&&s[i]<=’9’)){
      |           ^
a.cc:18:11: error: extended character ’ is not valid in an identifier
a.cc:18:28: error: extended character ’ is not valid in an identifier
   18 |     if (!(’0’<=s[i]&&s[i]<=’9’)){
      |                            ^
a.cc:18:28: error: extended character ’ is not valid in an identifier
a.cc: In function 'int main()':
a.cc:10:19: error: 'A' was not declared in this scope
   10 |   for (int i =0;i<A;i++){
      |                   ^
a.cc:11:11: error: '\U000020190\U00002019' was not declared in this scope
   11 |     if (!(’0’<=s[i]&&s[i]<=’9’)){
      |           ^~~
a.cc:11:28: error: '\U000020199\U00002019' was not declared in this scope
   11 |     if (!(’0’<=s[i]&&s[i]<=’9’)){
      |                            ^~~
a.cc:14:15: error: '\U00002019' was not declared in this scope
   14 |     if (s[A]!=’-’){
      |               ^
a.cc:17:24: error: 'B' was not declared in this scope
   17 |   for ( int i=A+1;i<=A+B;i++){
      |                        ^
a.cc:18:11: error: '\U000020190\U00002019' was not declared in this scope
   18 |     if (!(’0’<=s[i]&&s[i]<=’9’)){
      |           ^~~
a.cc:18:28: error: '\U000020199\U00002019' was not declared in this scope
   18 |     if (!(’0’<=s[i]&&s[i]<=’9’)){
      |                            ^~~
a.cc:22:2: error: expected '}' at end of input
   22 | }
      |  ^
a.cc:10:25: note: to match this '{'
   10 |   for (int i =0;i<A;i++){
      |                         ^
a.cc:22:2: error: expected '}' at end of input
   22 | }
      |  ^
a.cc:4:11: note: to match this '{'
    4 | int main(){
      |           ^
Language: C++

#include <string>
#include <iostream>
using namespace std;

bool isNum(char x){
	return '0' <= x and x<='9';
}

int main(){
  int a,b; cin >> a >> b;
  string s; cin >> s;
  string ans="Yes";
  for(int i=0;i<s.length();i++){
  	if(i==a){
    	if(s[i]=='-') continue;
       else ans="No";
    }
    else{
      if(isNum(s[i]) continue;
      else ans="No";    
    }
  }
  cout << ans << endl;
 return 0;
  
}

Compiler output:
a.cc: In function 'int main()':
a.cc:19:21: error: expected ';' before 'continue'
   19 |       if(isNum(s[i]) continue;
      |                     ^~~~~~~~~
      |                     ;
a.cc:20:7: error: expected primary-expression before 'else'
   20 |       else ans="No";
      |       ^~~~
a.cc:19:31: error: expected ')' before 'else'
   19 |       if(isNum(s[i]) continue;
      |         ~                     ^
      |                               )
   20 |       else ans="No";
      |       ~~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main(void){
  int A,B;
  string S;
  cin >> S;
  if(A < 1 || B > 5 ){
    cout<< "No" << endl;
    return 0;
  }
  if(S.find("-"); == A+1){
	cout << "No" << endl;
    return 0;
  }
  if(S.length() == A+B+1){
    cout << "Yes" << endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:12: warning: ignoring return value of 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size_type std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::find(const _CharT*, size_type) const [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>; size_type = long unsigned int]', declared with attribute 'nodiscard' [-Wunused-result]
   11 |   if(S.find("-"); == A+1){
      |      ~~~~~~^~~~~
In file included from /usr/include/c++/14/string:54,
                 from /usr/include/c++/14/bitset:52,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:52,
                 from a.cc:1:
/usr/include/c++/14/bits/basic_string.h:2740:7: note: declared here
 2740 |       find(const _CharT* __s, size_type __pos = 0) const _GLIBCXX_NOEXCEPT
      |       ^~~~
a.cc:11:19: error: expected primary-expression before '==' token
   11 |   if(S.find("-"); == A+1){
      |                   ^~
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main(void){
  int A,B;
  string S;
  cin >> S;
  if(A < 1 || B > 5 ){
    cout<< "No" << endl;
    return 0;
  }
  S.find(-);
  if(string::npos == A+1){
	cout << "No" << endl;
    return 0;
  }
  if(S.length() == A+B+1){
    cout << "Yes" << endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:11: error: expected primary-expression before ')' token
   11 |   S.find(-);
      |           ^
Language: C++

#include <iostream>
#include <string>
#include <ctype.h>
using namespace std;
int main(){
  int a,b;
  string s;
  cin >> a >> b;
  cin >> s;
  if(s.compare(a+1,1,"-")==0 ){
    if(all_of(0,a,isdigit)){
      if(all_of(a+1,b,isdigit)){
        cout << "Yes";
      }
    }
  }else{
    cout << "No";
  }
  return 0;
}
  


Compiler output:
a.cc: In function 'int main()':
a.cc:11:8: error: 'all_of' was not declared in this scope
   11 |     if(all_of(0,a,isdigit)){
      |        ^~~~~~
Language: C++

#include <iostream>
#include <string>
using namespace std;
int main(){
  int a,b;
  string s;
  cin >> a >> b;
  cin >> s;
  if(s.compare(a+1,1,"-")=="-"){
    cout << "Yes";
  }else{
    cout << "No";
  }
  return 0;
}
  


Compiler output:
a.cc: In function 'int main()':
a.cc:9:26: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    9 |   if(s.compare(a+1,1,"-")=="-"){
      |      ~~~~~~~~~~~~~~~~~~~~^~~~~
Language: C++

include <iostream>
include <string>
using namespace std;
int main(){
  int a,b;
  string s;
  cin >> a >> b;
  cin >> s;
  if(s.compare(a+1,1,"-")=="-"){
    cout << "Yes";
  }else{
    cout << "No";
  }
  return 0;
}
  


Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include <iostream>
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc:6:3: error: 'string' was not declared in this scope
    6 |   string s;
      |   ^~~~~~
a.cc:7:3: error: 'cin' was not declared in this scope
    7 |   cin >> a >> b;
      |   ^~~
a.cc:8:10: error: 's' was not declared in this scope
    8 |   cin >> s;
      |          ^
a.cc:10:5: error: 'cout' was not declared in this scope
   10 |     cout << "Yes";
      |     ^~~~
a.cc:12:5: error: 'cout' was not declared in this scope
   12 |     cout << "No";
      |     ^~~~
Language: C++

include<iostream>
include<string>
using namespace std;
int main(){
  int a,b;
  string s;
  cin >> a >> b;
  cin >> s;
  if(s.compare(a+1,1,"-")=="-"){
    cout << "Yes";
  }else{
    cout << "No";
  }
  return 0;
}
  

Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include<iostream>
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc:6:3: error: 'string' was not declared in this scope
    6 |   string s;
      |   ^~~~~~
a.cc:7:3: error: 'cin' was not declared in this scope
    7 |   cin >> a >> b;
      |   ^~~
a.cc:8:10: error: 's' was not declared in this scope
    8 |   cin >> s;
      |          ^
a.cc:10:5: error: 'cout' was not declared in this scope
   10 |     cout << "Yes";
      |     ^~~~
a.cc:12:5: error: 'cout' was not declared in this scope
   12 |     cout << "No";
      |     ^~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main()
{
  int A,B;
  char S;
  
  cin>> A >> B;
  cin>> S;
  
  for(int i = 0; i < A; i++) {
	for(int j = 0; j < B; j++) {
		
      if(S.at(A+1) == - && S.at(i) != - && S.at(A+2+j) != -) {
			cout << "Yes" <<endl;
      }
      else {
        cout << "No" <<endl;
      }
    }
  }
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:14:12: error: request for member 'at' in 'S', which is of non-class type 'char'
   14 |       if(S.at(A+1) == - && S.at(i) != - && S.at(A+2+j) != -) {
      |            ^~
a.cc:14:25: error: wrong type argument to unary minus
   14 |       if(S.at(A+1) == - && S.at(i) != - && S.at(A+2+j) != -) {
      |                         ^~~~
a.cc:14:29: error: expected ')' before '.' token
   14 |       if(S.at(A+1) == - && S.at(i) != - && S.at(A+2+j) != -) {
      |         ~                   ^
      |                             )
a.cc:14:28: error: label 'S' used but not defined
   14 |       if(S.at(A+1) == - && S.at(i) != - && S.at(A+2+j) != -) {
      |                            ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main()
{
  int A,B;
  string S;
  
  cin>> A >> B;
  cin>> S;
  
  for(int i = 0; i < A; i++) {
	for(int j = 0; j < B; j++) {
		
      if(S.at(A+1) == - && S.at(i) != - && S.at(A+2+j) != -) {
			cout << "Yes" <<endl;
      }
      else {
        cout << "No" <<endl;
      }
    }
  }
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:14:25: error: wrong type argument to unary minus
   14 |       if(S.at(A+1) == - && S.at(i) != - && S.at(A+2+j) != -) {
      |                         ^~~~
a.cc:14:29: error: expected ')' before '.' token
   14 |       if(S.at(A+1) == - && S.at(i) != - && S.at(A+2+j) != -) {
      |         ~                   ^
      |                             )
a.cc:14:28: error: label 'S' used but not defined
   14 |       if(S.at(A+1) == - && S.at(i) != - && S.at(A+2+j) != -) {
      |                            ^
Language: C++

#include<iostream>
using namespace std;
int main(){
  int a,b,f=1;
  cin>>a>>b;
  string s;
  cin>>s;
  for(int i=0;i<a;i++)if(s[i]<'0'||s[i]>'9')f=0;
  if(s[i]!='-')f=0;
  for(int i=a+1;i<a+b+1;i++)if(s[i]<'0'||s[i]>'9')f=0;
  if(f==1)cout<<"Yes"<<endl;
  else cout<<"No"<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:8: error: 'i' was not declared in this scope
    9 |   if(s[i]!='-')f=0;
      |        ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
 
#define pfi(a) printf("%d",a);
#define pfl(a) printf("%lld",a);
#define pfin(a) printf("%d\n",a);
#define pfln(a) printf("%lld\n",a);
#define pfis(a) printf("%d ",a);
#define pfls(a) printf("%lld ",a);
#define sfi(a) scanf("%d",&a);
#define sfl(a) scanf("%lld",&a);
#define fast ios_base::sync_with_stdio(false);cin.tie(NULL);cout.tie(NULL)
#define f(i,a,b) for(int i=a;i<b;i++)
#define pb(a) push_back(a);
#define mp(a,b) make_pair(a,b)
#define ll long long   

const ll mod=1e9+7;

int main()
{
  string s;
  ll a,b;
  sfl(a);
  sfl(b);
  cin>>s;
  i=0;
  ll flag=0;
  while(s[i]!='\0')
  {
    if(s[i]=='-' || s[i]=='0'||s[i]=='1'||s[i]=='2'||s[i]=='3'||s[i]=='4'||s[i]=='5'||s[i]=='6'||s[i]=='7'||s[i]=='8'||s[i]=='9')
    {
      flag=1;
    }
    else
    {
      flag=0;
      break;
    }
  }
  if(flag==1 && s[a]=="-")
  {
    
    cout<<"Yes"<<endl;
  }
  else
  {
    cout<<"No"<<endl;
  }
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:27:3: error: 'i' was not declared in this scope
   27 |   i=0;
      |   ^
a.cc:41:21: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   41 |   if(flag==1 && s[a]=="-")
Language: C++

#include<bits/stdc++.h>
using namespace std;
char s[100005];
int main(int argc, char **argv){
    int a,b;
    cin>>a>>b;
    for(int i=1;i<=a+b+1;i++) cin>>s[i];
    for(int i=1;i<=a+b+1;i++)
    {
        if(s[i]<48&&i!=a+1||s[i]>58&&i!=a+1)
        {
            cout<<"No"<<endl;
            exit(0);
        }
        if(i==a+1&&s[i]!='-')
        {
            cout<<"No\r\n";
            return 0;
        }
    }
    cout<<"Yes";
putcahr('\n');
}

Compiler output:
a.cc: In function 'int main(int, char**)':
a.cc:22:1: error: 'putcahr' was not declared in this scope; did you mean 'putchar'?
   22 | putcahr('\n');
      | ^~~~~~~
      | putchar
Language: C++

#include<bits/stdc++.h>
using namespace std;
char s[100005];
int main(int argc, char **argv){
    int a,b;
    cin>>a>>b;
    for(int i=1;i<=a+b+1;i++) cin>>s[i];
    for(int i=1;i<=a+b+1;i++)
    {
        if(s[i]<48&&i!=a+1||s[i]>58&&i!=a+1)
        {
            cout<<"No"<<endl;
            exit(0);
        }
        if(i==a+1&&s[i]!='-')
        {
            cout<<"No\r\n";
            return 0;
        }
    }
    cout<<"Yes";
putcahr('\n')
}

Compiler output:
a.cc: In function 'int main(int, char**)':
a.cc:22:1: error: 'putcahr' was not declared in this scope; did you mean 'putchar'?
   22 | putcahr('\n')
      | ^~~~~~~
      | putchar
Language: C++

#include<bits/stdc++.h>
using namespace std;
char s[100005];
int main(int argc, cahr **argv){
    int a,b;
    cin>>a>>b;
    for(int i=1;i<=a+b+1;i++) cin>>s[i];
    for(int i=1;i<=a+b+1;i++)
    {
        if(s[i]<48&&i!=a+1||s[i]>58&&i!=a+1)
        {
            cout<<"No"<<endl;
            exit(0);
        }
        if(i==a+1&&s[i]!='-')
        {
            cout<<"No\r\n";
            return 0;
        }
    }
    cout<<"Yes";
putcahr('\n')
}

Compiler output:
a.cc:4:20: error: 'cahr' has not been declared
    4 | int main(int argc, cahr **argv){
      |                    ^~~~
a.cc:4:5: warning: second argument of 'int main(int, int**)' should be 'char **' [-Wmain]
    4 | int main(int argc, cahr **argv){
      |     ^~~~
a.cc: In function 'int main(int, int**)':
a.cc:22:1: error: 'putcahr' was not declared in this scope; did you mean 'putchar'?
   22 | putcahr('\n')
      | ^~~~~~~
      | putchar
Language: C++

//#define _GLIBCXX_DEBUG

#include<bits/stdc++.h>
#define PI 3.14159265359
using namespace std;
#define rep(i, n) for (ll i = 0; i < (ll)(n); i++)
const int INF= 1e9+5;
typedef long long ll;
typedef vector<ll> vl;
typedef vector<vector<ll> >vvl;
typedef pair<ll,ll> P;
typedef tuple<ll,ll,ll> T;
const ll MOD=1000000007LL;
string abc="abcdefghijklmnopqrstuvwxyz";
string ABC="ABCDEFGHIJKLMNOPQRSTUVWXYZ";

int main(){
  ll a,b;cin>>a>>b;
  string s;cin>>s;
  if(s[i]!='-'){
    cout<<"No"<<endl;
    return 0;
  }
  ll count=0;
  rep(i,s.size()){
    if(s[i]!='-')count++;
  }
  if(count==a+b){
    cout<<"Yes"<<endl;
    return 0;
  }
  cout<<"No"<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:20:8: error: 'i' was not declared in this scope
   20 |   if(s[i]!='-'){
      |        ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
int A , B ;
char s [12];
int main() {
  scanf ("% d % d " ,&A ,& B );
  scanf ("% s " ,& 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:9:10: error: extended character ’ is not valid in an identifier
    9 |   if (!( ’0 ’ <= s [ i ]&& s [ i ] <= ’9 ’)){
      |          ^
a.cc:9:13: error: extended character ’ is not valid in an identifier
    9 |   if (!( ’0 ’ <= s [ i ]&& s [ i ] <= ’9 ’)){
      |             ^
a.cc:9:39: error: extended character ’ is not valid in an identifier
    9 |   if (!( ’0 ’ <= s [ i ]&& s [ i ] <= ’9 ’)){
      |                                       ^
a.cc:9:42: error: extended character ’ is not valid in an identifier
    9 |   if (!( ’0 ’ <= s [ i ]&& s [ i ] <= ’9 ’)){
      |                                          ^
a.cc:12:18: error: extended character ’ is not valid in an identifier
   12 |   if ( s [ A ]!= ’ - ’){
      |                  ^
a.cc:12:22: error: extended character ’ is not valid in an identifier
   12 |   if ( s [ A ]!= ’ - ’){
      |                      ^
a.cc:15:49: error: extended character ’ is not valid in an identifier
   15 |   for ( int i = A +1; i <= A + B ; i ++) if (!( ’0 ’ <= s [ i ]&& s [ i ] <= ’9 ’)){
      |                                                 ^
a.cc:15:52: error: extended character ’ is not valid in an identifier
   15 |   for ( int i = A +1; i <= A + B ; i ++) if (!( ’0 ’ <= s [ i ]&& s [ i ] <= ’9 ’)){
      |                                                    ^
a.cc:15:78: error: extended character ’ is not valid in an identifier
   15 |   for ( int i = A +1; i <= A + B ; i ++) if (!( ’0 ’ <= s [ i ]&& s [ i ] <= ’9 ’)){
      |                                                                              ^
a.cc:15:81: error: extended character ’ is not valid in an identifier
   15 |   for ( int i = A +1; i <= A + B ; i ++) if (!( ’0 ’ <= s [ i ]&& s [ i ] <= ’9 ’)){
      |                                                                                 ^
a.cc: In function 'int main()':
a.cc:9:10: error: '\U000020190' was not declared in this scope
    9 |   if (!( ’0 ’ <= s [ i ]&& s [ i ] <= ’9 ’)){
      |          ^~
a.cc:9:12: error: expected ')' before '\U00002019'
    9 |   if (!( ’0 ’ <= s [ i ]&& s [ i ] <= ’9 ’)){
      |        ~   ^~
      |            )
a.cc:11:4: error: expected ')' before 'if'
   11 |   }
      |    ^
      |    )
   12 |   if ( s [ A ]!= ’ - ’){
      |   ~~
a.cc:9:6: note: to match this '('
    9 |   if (!( ’0 ’ <= s [ i ]&& s [ i ] <= ’9 ’)){
      |      ^
a.cc:15:23: error: 'i' was not declared in this scope
   15 |   for ( int i = A +1; i <= A + B ; i ++) if (!( ’0 ’ <= s [ i ]&& s [ i ] <= ’9 ’)){
      |                       ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
 
  int A,B;
  
  A = B = 0 >= A <=9 or "-"
  
  cin >> A >> B;
 
  cout << A + B + 1 << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:28: error: expected ';' before 'cin'
    8 |   A = B = 0 >= A <=9 or "-"
      |                            ^
      |                            ;
    9 | 
   10 |   cin >> A >> B;
      |   ~~~
Language: C++

A, B = map(int, input().split())
S = input()

ans = "Yes"
if len(S) != A+B+1:
  ans = "No"
for i, s in enumerate(S):
  if i == A:
    if s != '-':
      ans = "No"
  else:
    if not '0' <= s <= '9':
      ans = "No"
print(ans)


Compiler output:
a.cc:1:1: error: 'A' does not name a type
    1 | A, B = map(int, input().split())
      | ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main(){
  int A,B;
  cin>>A>>B;
  string S;
  cin>>S;
  
  if(
    (int)(S.length())!=A+B+1
    || S[A]!='-'
  ){
  	cout<<"No"<<endl;
    return 0;
  }
  
  bool isVaild=true;
  for(int i=0,l=A+B+1;i<l;++i){
    id(i==A)continue;
    if('0'<=S[i]&&S[i]<='9')continue;
    isVaild=false;
    break;
  }
  cout<<(isVaild?"Yes":"No")<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:19:5: error: 'id' was not declared in this scope; did you mean 'i'?
   19 |     id(i==A)continue;
      |     ^~
      |     i
Language: C++

#include<iostream>
#include<string>
using namespace std;
#define isnum(x) ((x)>='0'&&(x)<='9')
int main(void)
{
  int a,b,i;cin >> a >> b;
  string s; cin >> s;
  bool ok=true;
  for(i=0:i<a;i++) {
    if(!isnum(s[i])) {
      ok=false;
    }
  }
  if(s[a]!='-') ok=false;
  for(i=a+1;i<a+b+1;i++) {
    if(!isnum(s[i])) {
      ok=false;
    }
  }
  cout << ((ok?"Yes":"No")) << endl;
    
    
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:10: error: expected ';' before ':' token
   10 |   for(i=0:i<a;i++) {
      |          ^
      |          ;
a.cc:10:18: error: expected ';' before ')' token
   10 |   for(i=0:i<a;i++) {
      |                  ^
      |                  ;
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  int A, B, S;
  cin >> A >> B >> S;
  cout << S = A + B + 1 << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:25: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator<<'
    7 |   cout << S = A + B + 1 << endl;
      |               ~~~~~~~~~~^~~~~~~
Language: C++

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

int main() {
  int A, B;
  string S;
  cin >> A >> B >> S;
  if(S.at(A+1)!="-") {
    cout << "No" <<endl;
  }
  for(int i=0; i<A; i++) {
    if(S.at(i)!=0,1,2,3,4,5,6,7,8,9) {
      cout << "No" <<endl;
    }
  }
  for(int i=0; i<B; i++) {
    if(S.at(A+B)!=0,1,2,3,4,5,6,7,8,9) {
      cout << "No" << endl;
    }
  }
  else {
    cout << "Yes" <<endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:15: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    8 |   if(S.at(A+1)!="-") {
      |      ~~~~~~~~~^~~~~
a.cc:21:3: error: 'else' without a previous 'if'
   21 |   else {
      |   ^~~~