criyle/codenet-compile-errors huggingface dataset:
Language: C++


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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:5: error: 'cin' was not declared in this scope
    7 |     cin>>a>>b;
      |     ^~~
a.cc:3:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    2 | #include <string>
  +++ |+#include <iostream>
    3 | using namespace std;
a.cc:12:11: error: 'cout' was not declared in this scope
   12 |           cout << "No" << endl;
      |           ^~~~
a.cc:12:11: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:12:27: error: 'endl' was not declared in this scope
   12 |           cout << "No" << endl;
      |                           ^~~~
a.cc:3:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
    2 | #include <string>
  +++ |+#include <ostream>
    3 | using namespace std;
a.cc:16:11: error: 'cout' was not declared in this scope
   16 |           cout << "No" << endl;
      |           ^~~~
a.cc:16:11: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:16:27: error: 'endl' was not declared in this scope
   16 |           cout << "No" << endl;
      |                           ^~~~
a.cc:16:27: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
a.cc:21:1: error: 'cout' was not declared in this scope
   21 | cout << "Yes" << endl;
      | ^~~~
a.cc:21:1: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:21:18: error: 'endl' was not declared in this scope
   21 | cout << "Yes" << endl;
      |                  ^~~~
a.cc:21:18: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
Language: C++

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

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

#include <bits/stdc++.h>
using namespace std;
 
int main(){
    int A, B;
    cin >> A >> B;

    char S[A+B+1];
    for (int i = 0; i < A+B+1; i++){
        cin >> S[i];
    }

    int count = 0;
    for (int i = 0; i < A + B + 1; i++){
        if ( i < A && !('0' <= S[i] && S[i] <= '9') ){
            count++;
        }
        else if (S[A] != '-'){
            cout++;
        }
        else if ( A+1 <= i && i < A+B+1 && !('0' <= S[i] && S[i] <= '9')){
            count++;
        }
    }

    if (count > 0){
        cout << "No" << endl;
    }
    else {
        cout << "Yes" << endl;
    }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:19:17: error: no 'operator++(int)' declared for postfix '++' [-fpermissive]
   19 |             cout++;
      |             ~~~~^~
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  int A,B;
  string S,X;
  
  cin >> A >> B >> S;
  
  X = A + "-" + B; 
  if(X[A] == "-"){
  	if(X.size() == A+B){
    	cout << "Yes" << endl;
    }
  }
  cout << "No" << endl; 
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:11: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   11 |   if(X[A] == "-"){
Language: C++

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

int main() {
    int A, B;
    cin >> A >> B;
    string S;
    cin >> S;
    bool frag = true;
    for (int i = 0; i <= A+B; i++) {
        if ((i != A) && (S[i] == '-')){
            cout << "No" << endl;
            frag = false;
            break;
        }
        if ((i == !) && (S[i] != '-')){
            cout << "No" << endl;
            frag = false;
            break;
        }
    }
    if (frag){
        cout << "Yes" << endl;
    }

}


Compiler output:
a.cc: In function 'int main()':
a.cc:19:20: error: expected primary-expression before ')' token
   19 |         if ((i == !) && (S[i] != '-')){
      |                    ^
Language: C++

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

int main() {
    int A, B;
    cin >> A >> B;
    string S;
    cin >> S;
    bool frag = true;
    for (int i = 0; i <= A+B; i++) {
        if (i != A && S[i] == '-'){
            cout << "No" << endl;
            frag = false;
            break;
        }
        if (i == ! && S[i] != '-'){
            cout << "No" << endl;
            frag = false;
            break;
        }
    }
    if (frag){
        cout << "Yes" << endl;
    }

}


Compiler output:
a.cc: In function 'int main()':
a.cc:19:24: error: expected ')' before '[' token
   19 |         if (i == ! && S[i] != '-'){
      |            ~           ^
      |                        )
a.cc:19:23: error: label 'S' used but not defined
   19 |         if (i == ! && S[i] != '-'){
      |                       ^
Language: C++

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

int main() {
    int A, B;
    cin >> A >> B;
    string S;
    cin >> S;
    bool frag = true;
    for (int i = 0; i < A+B) {
        if (i != A && S[i] == '-'){
            cout << "No" << endl;
            frag = false;
            break;
        }
        if (i == ! && S[i] != '-'){
            cout << "No" << endl;
            frag = false;
            break;
        }
    }
    if (frag){
        cout << "Yes" << endl;
    }

}


Compiler output:
a.cc: In function 'int main()':
a.cc:13:28: error: expected ';' before ')' token
   13 |     for (int i = 0; i < A+B) {
      |                            ^
      |                            ;
a.cc:19:24: error: expected ')' before '[' token
   19 |         if (i == ! && S[i] != '-'){
      |            ~           ^
      |                        )
a.cc:19:23: error: label 'S' used but not defined
   19 |         if (i == ! && S[i] != '-'){
      |                       ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
	int a,b,sum=0;
	cin>>a>>b;
	char s[a+b+10];
	cin.getline(s,a+b+8);
	for(int i=0;i<a+b+1;i++){
		if(i==a+1){
			if(s[i]!='-'){
				cout<<"No"<<endl;
				return 0;
			}
		}
		else{
			if(a[i]>='9'||a[i]<='0'){
				sum++;
			}
		}
	}
	if(!sum){
		cout<<"No"<<endl;
		return 0;
	}
	else{
		cout<<"Yes"<<endl;
		return 0;
	}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:16:29: error: invalid types 'int[int]' for array subscript
   16 |                         if(a[i]>='9'||a[i]<='0'){
      |                             ^
a.cc:16:40: error: invalid types 'int[int]' for array subscript
   16 |                         if(a[i]>='9'||a[i]<='0'){
      |                                        ^
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<s.size();i++){
    if(i==A && s.at(i)!='-' || i!=A && s.at(i)=='-'){
      cout << "No" << endl;
      return 0;
    }
  }
  cout << "Yes"
}


Compiler output:
a.cc: In function 'int main()':
a.cc:16:16: error: expected ';' before '}' token
   16 |   cout << "Yes"
      |                ^
      |                ;
   17 | }
      | ~
Language: C++

# util functions

# debug
$debugFlag = ( ARGV[0] != nil )
p "==== DEBUG MODE ====" if $debugFlag

def pd(str)
  p str if $debugFlag
end

def printd(str)
  print str if $debugFlag
end

# input
inputs = []
lc = 0
while l = $stdin.gets do
  if true
    inputs << l.chomp.split(" ").map(&:to_s)
  else
    inputs << l.chomp.split(" ").map(&:to_i)
  end
  lc += 1
end

# input check
if $debugFlag
  p "--- INPUT (begin) ---"
  inputs.each do |l_i|
    p l_i
  end
  p "--- INPUT (end) ---"
  print "\n"
end

aa = inputs[0][0].to_i
bb = inputs[0][1].to_i
str = inputs[1][0]

# body
if $debugFlag
  p aa
  p str
end

substr = ""
conda = (str[aa] == "-")
substr = str[0..aa-1] + str[aa+1..-1]

pd substr

if substr =~ /[0-9]+/ and substr.length == (aa + bb) and conda
  puts "Yes"
else
  puts "No"
end


Compiler output:
a.cc:1:3: error: invalid preprocessing directive #util
    1 | # util functions
      |   ^~~~
a.cc:3:3: error: invalid preprocessing directive #debug
    3 | # debug
      |   ^~~~~
a.cc:15:3: error: invalid preprocessing directive #input
   15 | # input
      |   ^~~~~
a.cc:27:3: error: invalid preprocessing directive #input
   27 | # input check
      |   ^~~~~
a.cc:41:3: error: invalid preprocessing directive #body
   41 | # body
      |   ^~~~
a.cc:49:14: error: too many decimal points in number
   49 | substr = str[0..aa-1] + str[aa+1..-1]
      |              ^~~~~
a.cc:49:32: error: too many decimal points in number
   49 | substr = str[0..aa-1] + str[aa+1..-1]
      |                                ^~~
a.cc:4:1: error: '$debugFlag' does not name a type
    4 | $debugFlag = ( ARGV[0] != nil )
      | ^~~~~~~~~~
Language: C++

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

int main(){
	string s;
	int count = 0;
	int index;
	cin >> s;
	for(int i=0; i<s.size(); i++){
		if(s[i] =='-') {
			count++;
			index = i;
		}
	}
	if(count == 1 && i != 0 && i != s.size () - 1)
		cout << "Yes";
	else
		cout << "No";
	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:16:26: error: 'i' was not declared in this scope
   16 |         if(count == 1 && i != 0 && i != s.size () - 1)
      |                          ^
Language: C++

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

int main(){
	int s;
	int count = 0;
	int index;
	cin >> s;
	for(int i=0; i<s.size(); i++){
		if(s[i] =='-') {
			count++;
			index = i;
		}
	}
	if(count == 1 && i != 0 && i != s.size () - 1)
		cout << "Yes";
	else
		cout << "No";
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:26: error: request for member 'size' in 's', which is of non-class type 'int'
   10 |         for(int i=0; i<s.size(); i++){
      |                          ^~~~
a.cc:11:21: error: invalid types 'int[int]' for array subscript
   11 |                 if(s[i] =='-') {
      |                     ^
a.cc:16:26: error: 'i' was not declared in this scope
   16 |         if(count == 1 && i != 0 && i != s.size () - 1)
      |                          ^
a.cc:16:43: error: request for member 'size' in 's', which is of non-class type 'int'
   16 |         if(count == 1 && i != 0 && i != s.size () - 1)
      |                                           ^~~~
Language: C++

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

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

    int a_cnt=0, b_cnt, bar_cnt=0;
    int length = s.size()
    for(int i=0; i<length; i++){
        if(s.at(i) == '-'){
            bar_cnt++;
            continue;
        }
        if(bar_cnt < 1) a_cnt++;
        else b_cnt++;
    }
    if(bar_cnt != 1){
        cout << "No\n";
    }
    else if(a_cnt == a && b_cnt == b){
        cout << "Yes\n";
    }
    else{
        cout << "No\n"
    }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:5: error: expected ',' or ';' before 'for'
   13 |     for(int i=0; i<length; i++){
      |     ^~~
a.cc:13:18: error: 'i' was not declared in this scope
   13 |     for(int i=0; i<length; i++){
      |                  ^
a.cc:28:23: error: expected ';' before '}' token
   28 |         cout << "No\n"
      |                       ^
      |                       ;
   29 |     }
      |     ~
Language: C++

#include <bits/stdc++.h>
#define REP(i, n) for (int (i) = 0; (i) < (int)(n); i++) 
#define FOR(i, a, b) for(int (i) = a; (i) < (int)b; i++)
#define RREP(i, n) for(int (i)=((int)(n)-1); (i)>=0; i--)
#define RFOR(i, a, b) for(int (i) =((int)(b)-1); (i)>=(int)a; i--)
#define ALL(v) (v).begin(),(v).end()
#define MOD 1000000007
#define FT first
#define SC second

using namespace std ;
typedef long long ll;
typedef vector<int> vint;
typedef vector<vint> vvint;
typedef pair<int, int> pint;
const int INF = 1e9;
const double EPS = 1e-9;



int main()
{
  int a, b ;
  cin >> a >> b ;
  string s ;
  cin >> s ;
  
  REP(i,a){
    if(s.at(i)-'0'<0){
      cout << "No"<<endl ;
      return 0 ;
    }
  }
  if(s.at(a)!='-'){
    cout <<"No"<<endl ;
    retirn 0 ;
  }
  FOR(i,a+1,a+b+1){
    if(s.at(i)-'0'<0){
      cout <<"No"<<endl ;
      return 0 ;
    }
  }
  
  cout << "Yes"<<endl ;

  return 0 ;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:36:5: error: 'retirn' was not declared in this scope
   36 |     retirn 0 ;
      |     ^~~~~~
Language: C++

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

int main(){
	int A,B;
  	string S;
  	cin >> A >> B >> S;
  	if(s.find(S.find("-")== A and S.find("-", A+1)==string::npos) {
    	cout << "Yes" << endl;
    }else{
    	cout << "No" << endl;
    }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:12: error: 's' was not declared in this scope
    8 |         if(s.find(S.find("-")== A and S.find("-", A+1)==string::npos) {
      |            ^
a.cc:8:70: error: expected ')' before '{' token
    8 |         if(s.find(S.find("-")== A and S.find("-", A+1)==string::npos) {
      |           ~                                                          ^~
      |                                                                      )
a.cc:13:1: error: expected primary-expression before '}' token
   13 | }
      | ^
Language: C++

#include <iostream>
#include <vector>
#include <string>
#include <algorithm>
#include <tuple>
#include <map>
#include <set>
typedef long long ll;
using namespace std;
#define rep(i, n) for (int i = 0; i <= int(n); i++)
#define mod 1000000007

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

Compiler output:
a.cc: In function 'int main()':
a.cc:24:17: error: 'a' was not declared in this scope
   24 |         if(i == a){
      |                 ^
Language: C++

#include <iostream>
#include <vector>
#include <string>
#include <algorithm>
#include <tuple>
#include <map>
#include <set>
typedef long long ll;
using namespace std;
#define rep(i, n) for (int i = 0; i <= int(n); i++)
#define mod 1000000007

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

Compiler output:
a.cc: In function 'int main()':
a.cc:23:29: error: expected ')' before ';' token
   23 |     if(int i = 0; i <= A+B+1; i++){
      |       ~                     ^
      |                             )
a.cc:23:31: error: 'i' was not declared in this scope
   23 |     if(int i = 0; i <= A+B+1; i++){
      |                               ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
 
int main(void){
    int a,b;cin >> a >> b;
    string s; cin >> s;

    bool isnew = false;
    int preCount = 0;
    int fuCount = 0;

    for (int i=0;i<s.size();i++){
        if (s[i]!='-'){
            if (!isnew) {
                preCount++;
            } else {
                fuCount+=;
            }
        } else {
            isnew = true;
        }
    }

    if (preCount == a && fuCount == b) {
        cout << "Yes" << endl;
        return 0;
    }

    cout << "No" << endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:17:26: error: expected primary-expression before ';' token
   17 |                 fuCount+=;
      |                          ^
Language: C++

fn get_input() -> String {
    let mut word = String::new();
    std::io::stdin().read_line(&mut word).unwrap();
    word.trim().to_owned()
}

fn main() {
    let (a, b) = {
        let line = get_input();
        let mut split = line.split_whitespace();
        let a: usize = split.next().unwrap().parse().unwrap();
        let b: usize = split.next().unwrap().parse().unwrap();
        (a, b)
    };

    let s = get_input();

    let s1 = &s[0..a];
    let s2 = &s[a..s.len()-b];
    let s3 = &s[s.len()-b..];

    if s1.parse::<u64>().is_ok() && s2 == "-" && s3.parse::<u64>().is_ok() {
        println!("Yes");
    } else {
        println!("No");
    }
}

Compiler output:
a.cc:18:17: error: too many decimal points in number
   18 |     let s1 = &s[0..a];
      |                 ^~~~
a.cc:1:1: error: 'fn' does not name a type
    1 | fn get_input() -> String {
      | ^~
a.cc:7:1: error: 'fn' does not name a type
    7 | fn main() {
      | ^~
Language: C++

#include <iostream>
#include <string>
#include <cctype>
 
int
main(void)
{
  int a, b;
  std::string s;
  std::cin >> a >> b >> s;
  int start = 0;
  int end = a;
  for (int start = 0; i < end; ++i) {
    if (! isdigit(s[i])) {
      std::cout << "No" << std::endl;
      return 0;
    }
  }
  start = end;
  if (s[end] != '-') {
    std::cout << "No" << std::endl;
    return 0;
  }
  ++start;
  end += start + b;
  for (int i = start; i < end; ++i) {
    if (! isdigit(s[i])) {
      std::cout << "No" << std::endl;
      return 0;
    }
  }
  std::cout << "Yes" << std::endl;
  
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:13:23: error: 'i' was not declared in this scope
   13 |   for (int start = 0; i < end; ++i) {
      |                       ^
Language: C++

#include <iostream>
#include <string>
#include <cctype>
 
int
main(void)
{
  int a, b;
  std::string s;
  std::cin >> a >> b >> s;
  int end = a;
  for (int i = 0; i < end; ++i) {
    if (! isdigit(s[i])) {
      std::cout << "No" << std::endl;
      retrn 0;
    }
  }
  if (s[end] != '-') {
    std::cout << "No" << std::endl;
    return 0;
  }
  end += b + 1;
  for (int i = a; i < end; ++i) {
    if (! isdigit(s[i])) {
      std::cout << "No" << std::endl;
      return 0;
    }
  }
  std::cout << "Yes" << std::endl;
  
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:15:7: error: 'retrn' was not declared in this scope
   15 |       retrn 0;
      |       ^~~~~
Language: C++

#include <iostream>
#include <cctype>

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:7: error: 'string' was not declared in this scope
    8 |   std:string s;
      |       ^~~~~~
a.cc:8:7: note: suggested alternatives:
In file included from /usr/include/c++/14/iosfwd:41,
                 from /usr/include/c++/14/ios:40,
                 from /usr/include/c++/14/ostream:40,
                 from /usr/include/c++/14/iostream:41,
                 from a.cc:1:
/usr/include/c++/14/bits/stringfwd.h:77:33: note:   'std::string'
   77 |   typedef basic_string<char>    string;
      |                                 ^~~~~~
In file included from /usr/include/c++/14/bits/locale_classes.h:40,
                 from /usr/include/c++/14/bits/ios_base.h:41,
                 from /usr/include/c++/14/ios:44:
/usr/include/c++/14/string:76:11: note:   'std::pmr::string'
   76 |     using string    = basic_string<char>;
      |           ^~~~~~
a.cc:9:25: error: 's' was not declared in this scope
    9 |   std::cin >> a >> b >> s;
      |                         ^
a.cc:14:7: error: 'retrn' was not declared in this scope
   14 |       retrn 0;
      |       ^~~~~
Language: C++

#include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define repm(i, m, n) for (int i = (m); i < (int)(n); i++)
#define repr(i, n) for (int i = (n); i > 0; i--)
#define all(vec) vec.begin(), vec.end()
using namespace std;

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

  //int ans = 0;
  string ans = "Yes";
  rep(i, a + b + 1){
    if (i != a){
      if (d[i] == '-') ans = "No";
    }
    else{
      if (d[i] != '-') ans = "No";
    }
  }
  
  cout << ans << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:17:11: error: 'd' was not declared in this scope
   17 |       if (d[i] == '-') ans = "No";
      |           ^
a.cc:20:11: error: 'd' was not declared in this scope
   20 |       if (d[i] != '-') ans = "No";
      |           ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
typedef long long ll;
#define rep(i,n) for(int i=0;i<(int)(n);i++)
#define rep1(i,n) for(int i=1;i<(int)(n);i++)
#define fs first
#define sc second
typedef pair<ll, ll> l_l;
#define EPS (1e-7)
#define INF (1e9)
#define PI (acos(-1))
int main(){
  int a,b;
  cin>>a>>b;
  string s;
  cin>>s;
  bool f=false;
  if(s[a]=='-')f=true;
  bool b=false;
  for(int i=0;i<a;i++)if(0<=s[i]-'0'&&s[i]-'0'<=9)b=true;
  bool d=false;
  for(int i=a+1;i<a+b+1;i++)if(0<=s[i]-'0'&&s[i]-'0'<=9)d=true;
  if(f&&b&&d)
  cout <<"Yes"<<endl;
  else cout<<"No"<<endl;
}

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

#include <bits/stdc++.h>
using namespace std;
int A, B;
char s[12];

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:11: error: expected ';' before 'B'
    7 |   cin >> A B;
      |           ^~
      |           ;
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:12:12: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   12 |   if (s[A] != "-"){
      |       ~~~~~^~~~~~
a.cc:21:7: error: 'else' without a previous 'if'
   21 |     } else {
      |       ^~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
#define FOR(i, a, b) for (int i = a; i <= b; i++)
#define FORD(i, a, b) for (int i = a; i >= b; i--)
#define REP(i, n) FOR(i, 0, (int)n - 1)
#define pb push_back
#define pi 3.141592653589793
#define sll signed long long int // -10^9 to 10^9
#define ll long long int// for 0 to 10^18
#define ull unsigned long long int // for 0 to 10^18
#define endl "\n"
#define FAST ios_base::sync_with_stdio(false);cin.tie(NULL);cout.tie(NULL);
#define all(x) x.begin(),x.end()
#define MOD 1000000007
template<typename T> T gcd(T a,T b){if(a==0) return b; return gcd(b%a,a);}
template<typename T> T power(T x,T y,ll m=MOD){T ans=1;while(y>0){if(y&1LL) ans=(ans*x)%m;y>>=1LL;x=(x*x)%m;}return ans%m;}
typedef vector<int> vi;
/* 
ll sum_ofGP_modM(ll a , ll n, ll mod)  //// (1 + A^1 +A^2 + A^3 + A^4 + -------+ A^N) % M  usually here n= Total terms in series-1
////and  if series is something for eg 3^2 + 3^4 here a= 9,r=9  our ans can be found out as 
// let a1= first term 3^2 just do ans = a1*sum_ofGP_modM(9 , N-1, ull mod)
	if(n == 0) return 1;
	if(n == 1) return (1 + a) % mod;
	ll res;
	if(n % 2)
		res = (a + 1) * GPSumWithMod((a*a) % mod , (n-1)/2);
	else{ res = (a + 1) * GPSumWithMod((a*a) % mod , n/2 - 1);res %= mod;res = (res * a) + 1;}
    return res % mod;
}
//Whenever we have (a/b)%P == (a * fast_pow(b,P-2))%P
bool isprime(ll a){
  if(a==2)return 1;
  if(!(a&1))return 0;
  for(ll i=3;i*i<=a;i+=2)
    if(a%i==0)return 0;
  return 1;
} */



int main() {
  FAST
  int a,b;cin>>a>>b;
  string s;cin>>s;
  if(s[a]!='-') cout<<"No";
  else{
    bool p= true;
    for(int i=0;s[i]!='\0';i++){
      if(s[i]=='-' && i!=a) {p=false;break;}
      else if(s[i]<48 || s[i]>57) {p=false;break;}
      else if( i==a && s[i]!='-' ){p=false;break;})
    }
    if(p) cout<<"Yes";
    else cout<<"No";
  }
  
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:52:51: error: expected primary-expression before ')' token
   52 |       else if( i==a && s[i]!='-' ){p=false;break;})
      |                                                   ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
#define FOR(i, a, b) for (int i = a; i <= b; i++)
#define FORD(i, a, b) for (int i = a; i >= b; i--)
#define REP(i, n) FOR(i, 0, (int)n - 1)
#define pb push_back
#define pi 3.141592653589793
#define sll signed long long int // -10^9 to 10^9
#define ll long long int// for 0 to 10^18
#define ull unsigned long long int // for 0 to 10^18
#define endl "\n"
#define FAST ios_base::sync_with_stdio(false);cin.tie(NULL);cout.tie(NULL);
#define all(x) x.begin(),x.end()
#define MOD 1000000007
template<typename T> T gcd(T a,T b){if(a==0) return b; return gcd(b%a,a);}
template<typename T> T power(T x,T y,ll m=MOD){T ans=1;while(y>0){if(y&1LL) ans=(ans*x)%m;y>>=1LL;x=(x*x)%m;}return ans%m;}
typedef vector<int> vi;
/* 
ll sum_ofGP_modM(ll a , ll n, ll mod)  //// (1 + A^1 +A^2 + A^3 + A^4 + -------+ A^N) % M  usually here n= Total terms in series-1
////and  if series is something for eg 3^2 + 3^4 here a= 9,r=9  our ans can be found out as 
// let a1= first term 3^2 just do ans = a1*sum_ofGP_modM(9 , N-1, ull mod)
	if(n == 0) return 1;
	if(n == 1) return (1 + a) % mod;
	ll res;
	if(n % 2)
		res = (a + 1) * GPSumWithMod((a*a) % mod , (n-1)/2);
	else{ res = (a + 1) * GPSumWithMod((a*a) % mod , n/2 - 1);res %= mod;res = (res * a) + 1;}
    return res % mod;
}
//Whenever we have (a/b)%P == (a * fast_pow(b,P-2))%P
bool isprime(ll a){
  if(a==2)return 1;
  if(!(a&1))return 0;
  for(ll i=3;i*i<=a;i+=2)
    if(a%i==0)return 0;
  return 1;
} */



int main() {
  FAST
  int a,b;cin>>a>>b;
  string s;cin>>s;
  if(s[a]!='-') cout<<"No";
  else{
    bool p= true;
    for(int i=0;s[i]!='\0';i++){
      if(s[i]=='-' && i!=a) {p=false;break;};
      else if(s[i]<48 || s[i]>57) {p=false;break;};
    }
    if(p) cout<<"Yes";
    else cout<<"No";
  }
  
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:51:7: error: 'else' without a previous 'if'
   51 |       else if(s[i]<48 || s[i]>57) {p=false;break;};
      |       ^~~~
Language: C++

#include <bits/stdc++.h>
#define rep(i,n) for (int i = 0; i < (n); i++)
#define repf(i,a,b) for (int i = (a); i < (b); i++)
#define repi(i,a,b) for (int i = (a); i <= (b); i++)
#define repr(i,a,b) for (int i = (a); i >= (b); i--)
#define all(x) (x).begin(),(x).end()
#define debug(x)  cout << #x << " = " << (x) << endl;
using namespace std;
using uint = unsigned int;
using ll = long long;
using ull = unsigned long long;
using vi = vector<int>;
using vvi = vector<vi>;
using pii = pair<int, int>;
using vc = vector<char>;
using vvc = vector<vc>;
using vs = vector<string>;
using tiii = tuple<int, int, int>;

int main() {
  int A, B; cin >> A >> B;
  string S; cin >> S;
  
  rep(i,A) if(!('0'<=s[i]&&s[i]<='9')) {
    cout << "No" << endl;
    return 0;
  }
  if (s[A]!='-') {
    cout << "No" << endl;
    return 0;
  }
  repi(i,A+1,A+B) if(!('0'<=s[i]&&s[i]<='9')) {
    cout << "No" << endl;
    return 0;
  }
  cout << "Yes" << endl;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:24:22: error: 's' was not declared in this scope
   24 |   rep(i,A) if(!('0'<=s[i]&&s[i]<='9')) {
      |                      ^
a.cc:28:7: error: 's' was not declared in this scope
   28 |   if (s[A]!='-') {
      |       ^
a.cc:32:29: error: 's' was not declared in this scope
   32 |   repi(i,A+1,A+B) if(!('0'<=s[i]&&s[i]<='9')) {
      |                             ^
Language: C

#include <stdio.h>
int main(){
  int a,b,c=1;
  char s[20];
  scanf("%d%d%s",&a,&b,s);
  for(int i=0,i<a;i++)if(!('0'<=s[i]&&s[i]<='9'))c=0;
  if(!(s[a]=='-'))c=0;
  for(int i=a+1,i<a+b+1;i++)if(!('0'<=s[i]&&s[i]<='9'))c=0;
  puts(c?"Yes":"No");
}

Compiler output:
main.c: In function 'main':
main.c:6:16: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
    6 |   for(int i=0,i<a;i++)if(!('0'<=s[i]&&s[i]<='9'))c=0;
      |                ^
main.c:6:22: error: expected ';' before ')' token
    6 |   for(int i=0,i<a;i++)if(!('0'<=s[i]&&s[i]<='9'))c=0;
      |                      ^
      |                      ;
main.c:8:18: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
    8 |   for(int i=a+1,i<a+b+1;i++)if(!('0'<=s[i]&&s[i]<='9'))c=0;
      |                  ^
main.c:8:28: error: expected ';' before ')' token
    8 |   for(int i=a+1,i<a+b+1;i++)if(!('0'<=s[i]&&s[i]<='9'))c=0;
      |                            ^
      |                            ;
Language: C++

#include <iostream>
#include <vector>

using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:11:3: error: 'f' was not declared in this scope
   11 |   f = 1;
      |   ^
Language: C

#include <stdio.h>
int main(){
  int a,b,c,d;
  char k,s[20];
  scanf("%d%d",&a,&b);
  scanf("%d%c%d",&c,&k,&d);
  puts(if(a==b&&c==d&&k=='-')"Yes"else "No");
}  

Compiler output:
main.c: In function 'main':
main.c:7:8: error: expected expression before 'if'
    7 |   puts(if(a==b&&c==d&&k=='-')"Yes"else "No");
      |        ^~
Language: C++

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


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

Compiler output:
a.cc: In function 'int main()':
a.cc:13:25: error: expected ';' before 'return'
   13 |         cout<<"No"<<endl
      |                         ^
      |                         ;
   14 |         return 0;
      |         ~~~~~~
Language: C++

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

int main(){
  string S;
  int A,B;
  cin >> A >> B;
  bool ret = true;
  for(int i = 0; i < A; ++i){
    ret *= (S[i] != "-");
  }
  ret *= (S[A] == "-");
  for(int i = 0; i < B; ++i){
    ret *=(S[A+1+i] != "-");
  }
  if(ret) {
    cout << "Yes" << endl;
  } else {
    cout << "No" << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:18: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   10 |     ret *= (S[i] != "-");
a.cc:12:16: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   12 |   ret *= (S[A] == "-");
a.cc:14:21: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   14 |     ret *=(S[A+1+i] != "-");
a.cc:20:2: error: expected '}' at end of input
   20 | }
      |  ^
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;
	string S;
  	cin >> A >> B;
	cin >> S;
  	for(int i = 0;i < A;i++) {
        if (!('0' < S[i] && S[i] < '9')){
            cout << "No" << endl;
            return 0;
        }
    }
    if (!(S[A] == '-')){
        cout << "No" << endl;
        return 0;
    }
    for (i = 0;i<(A+B+1);i++) {
        if (!('0' < S[i] && S[i] < '9')){
            cout << "No" << endl;
            return 0;
        }
    }
}

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

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

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

Compiler output:
a.cc:2:10: fatal error: catdio.h: No such file or directory
    2 | #include <catdio.h>
      |          ^~~~~~~~~~
compilation terminated.
Language: C++

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

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

Compiler output:
a.cc:2:10: fatal error: catdio: No such file or directory
    2 | #include <catdio>
      |          ^~~~~~~~
compilation terminated.
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main(){
  int A,B;
  string S;
  cin >> A >> B >> S;
  bool b = 1;
  if(S.at(A) == '-'){
    for(int i = 0;i < A + B;i++){
      if(i != A){
        if(S.at(i) == 0 ||S.at(i) ==1 || S.at(i) ==2 ||S.at(i) ==3 ||S.at(i) ==4 ||S.at(i) ==5 ||S.at(i) ==6 ||S.at(i) ==7 ||S.at(i) ==8 ||S.at(i) == 9 )
          else b = 0;
      }
    }
   if(b) cout << "Yes" << endl;
  }
  else cout << "No" << endl;
}
    
   
  

Compiler output:
a.cc: In function 'int main()':
a.cc:12:11: error: expected primary-expression before 'else'
   12 |           else b = 0;
      |           ^~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main(){
  int A,B;
  string S;
  cin >> A >> B >> S;
  bool b = 1;
  if(S.at(A) == '-'){
    for(int i = 0;i < A + B;i++){
      if(i != A){
        if(S.at(i) == 0 ||S.at(i) ==1 |||S.at(i) ==2 ||S.at(i) ==3 ||S.at(i) ==4 ||S.at(i) ==5 ||S.at(i) ==6 ||S.at(i) ==7 ||S.at(i) ==8 ||S.at(i) == 9 )
          else b = 0;
      }
    }
   if(bool) cout << "Yes" << endl;
  }
  else cout << "No" << endl;
}
    
   
  

Compiler output:
a.cc: In function 'int main()':
a.cc:11:41: error: expected primary-expression before '|' token
   11 |         if(S.at(i) == 0 ||S.at(i) ==1 |||S.at(i) ==2 ||S.at(i) ==3 ||S.at(i) ==4 ||S.at(i) ==5 ||S.at(i) ==6 ||S.at(i) ==7 ||S.at(i) ==8 ||S.at(i) == 9 )
      |                                         ^
a.cc:12:11: error: expected primary-expression before 'else'
   12 |           else b = 0;
      |           ^~~~
a.cc:15:11: error: expected unqualified-id before ')' token
   15 |    if(bool) cout << "Yes" << endl;
      |           ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main(){
  int A,B;
  string S;
  cin >> A >> B >> S;
  bool b = 1;
  if(S.at(A) == '-'){
    for(int i = 0;i < A + B;i++){
      if(i != A)
        if(S.at(i) == 0 ||S.at(i) ==1 |||S.at(i) ==2 ||S.at(i) ==3 ||S.at(i) ==4 ||S.at(i) ==5 ||S.at(i) ==6 ||S.at(i) ==7 ||S.at(i) ==8 ||S.at(i) == 9 )
          else b = 0;
    }
   if(bool) cout << "Yes" << endl;
  }
  else cout << "No" << endl;
}
    
   
  

Compiler output:
a.cc: In function 'int main()':
a.cc:11:41: error: expected primary-expression before '|' token
   11 |         if(S.at(i) == 0 ||S.at(i) ==1 |||S.at(i) ==2 ||S.at(i) ==3 ||S.at(i) ==4 ||S.at(i) ==5 ||S.at(i) ==6 ||S.at(i) ==7 ||S.at(i) ==8 ||S.at(i) == 9 )
      |                                         ^
a.cc:12:11: error: expected primary-expression before 'else'
   12 |           else b = 0;
      |           ^~~~
a.cc:14:11: error: expected unqualified-id before ')' token
   14 |    if(bool) cout << "Yes" << endl;
      |           ^
Language: C++

include <bits/stdc++.h>
using namespace std;
int main(){
  int A,B;
  string S;
  cin >> A >> B >> S;
  bool b = 1;
  if(S.at(A) == '-'){
    for(int i = 0;i < A + B;i++){
      if(i != A)
        if(S.at(i) == 0 ||S.at(i) ==1 |||S.at(i) ==2 ||S.at(i) ==3 ||S.at(i) ==4 ||S.at(i) ==5 ||S.at(i) ==6 ||S.at(i) ==7 ||S.at(i) ==8 ||S.at(i) == 9 )
          else b = 0;
    }
   if(bool) cout << "Yes" << endl;
  }
  else cout << "No" << endl;
}
    
   
  

Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include <bits/stdc++.h>
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc:5:3: error: 'string' was not declared in this scope
    5 |   string S;
      |   ^~~~~~
a.cc:6:3: error: 'cin' was not declared in this scope
    6 |   cin >> A >> B >> S;
      |   ^~~
a.cc:6:20: error: 'S' was not declared in this scope
    6 |   cin >> A >> B >> S;
      |                    ^
a.cc:11:41: error: expected primary-expression before '|' token
   11 |         if(S.at(i) == 0 ||S.at(i) ==1 |||S.at(i) ==2 ||S.at(i) ==3 ||S.at(i) ==4 ||S.at(i) ==5 ||S.at(i) ==6 ||S.at(i) ==7 ||S.at(i) ==8 ||S.at(i) == 9 )
      |                                         ^
a.cc:12:11: error: expected primary-expression before 'else'
   12 |           else b = 0;
      |           ^~~~
a.cc:14:11: error: expected unqualified-id before ')' token
   14 |    if(bool) cout << "Yes" << endl;
      |           ^
a.cc:14:13: error: 'cout' was not declared in this scope
   14 |    if(bool) cout << "Yes" << endl;
      |             ^~~~
a.cc:14:30: error: 'endl' was not declared in this scope
   14 |    if(bool) cout << "Yes" << endl;
      |                              ^~~~
a.cc:16:8: error: 'cout' was not declared in this scope
   16 |   else cout << "No" << endl;
      |        ^~~~
a.cc:16:24: error: 'endl' was not declared in this scope
   16 |   else cout << "No" << endl;
      |                        ^~~~
Language: C++

#include <bits/stdc++.h>
using  namespace  std;
using ll=long long;
int main(){
int a,b;
string s;
cin>>a>>b>>s;
bool flag=true;
for(int i=0;i<=a+b;i++){
  if(i==a&&s.at(i)!='-')flag=false;
  else if(s.at(i)=='-')flag false;
}
if(flag)cout<<"Yes"<<endl;
else cout<<"No"<<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:28: error: expected ';' before 'false'
   11 |   else if(s.at(i)=='-')flag false;
      |                            ^~~~~~
      |                            ;
Language: C++

// --https://kenkoooo.com/atcoder/#/table/soma62jp
#include <iostream>
#include <string>
#include <cmath>
#include <sstream>
#include <iomanip>
#include <vector>
#include <algorithm>
#include <numeric>
#include <cstring>

using namespace std;

int main(int argc, char* argv[]) {

	int A, B, ans = 1;
	string S;

	cin >> A >> B;
	cin >> S;

	if (S[A] != '-') {
		ans = 0;
	}

	for (int i = 0; i < S.length(); i++) {
		if (i == A)
			continue;
		if (!(S[i] >= '0' && S[i] <= '9')) {
			ans = 0;
		}
	}

	if (ans) {
		cout << "Yes" << endl;
	}
	else {
		cout << "No" << endl;
	}

	return 0;


Compiler output:
a.cc: In function 'int main(int, char**)':
a.cc:41:18: error: expected '}' at end of input
   41 |         return 0;
      |                  ^
a.cc:14:34: note: to match this '{'
   14 | int main(int argc, char* argv[]) {
      |                                  ^
Language: C++

#include <iostream>
using namespace std;
int main(){
  int a,b;cin>>a,b;
  string s;cin>>s;
  bool flg=true;
  if(s.size!=a+b+1)cout<<"No"<<endl,eixt(0);
  if(s[a]!='')cout<<"No"<<endl,eixt(0);
  for(int i=0;i<a+b+1,i++){
  if(i==a)continue;
  if(!isdigit(s[i]))  cout<<"No"<<endl,eixt(0);
    }
  cout<<"Yes"<<endl;
}

Compiler output:
a.cc:8:12: error: empty character constant
    8 |   if(s[a]!='')cout<<"No"<<endl,eixt(0);
      |            ^~
a.cc: In function 'int main()':
a.cc:7:8: error: invalid use of member function 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size_type std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size() const [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>; size_type = long unsigned int]' (did you forget the '()' ?)
    7 |   if(s.size!=a+b+1)cout<<"No"<<endl,eixt(0);
      |      ~~^~~~
      |            ()
a.cc:7:37: error: 'eixt' was not declared in this scope; did you mean 'exit'?
    7 |   if(s.size!=a+b+1)cout<<"No"<<endl,eixt(0);
      |                                     ^~~~
      |                                     exit
a.cc:8:32: error: 'eixt' was not declared in this scope; did you mean 'exit'?
    8 |   if(s[a]!='')cout<<"No"<<endl,eixt(0);
      |                                ^~~~
      |                                exit
a.cc:9:26: error: expected ';' before ')' token
    9 |   for(int i=0;i<a+b+1,i++){
      |                          ^
      |                          ;
a.cc:11:40: error: 'eixt' was not declared in this scope; did you mean 'exit'?
   11 |   if(!isdigit(s[i]))  cout<<"No"<<endl,eixt(0);
      |                                        ^~~~
      |                                        exit
Language: C++

#include <cstdio>
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:8:26: error: extended character ’ is not valid in an identifier
    8 | for(int i=0;i<A;i++)if(!(’0’<=s[i]&&s[i]<=’9’)) {
      |                          ^
a.cc:8:26: error: extended character ’ is not valid in an identifier
a.cc:8:43: error: extended character ’ is not valid in an identifier
    8 | for(int i=0;i<A;i++)if(!(’0’<=s[i]&&s[i]<=’9’)) {
      |                                           ^
a.cc:8:43: error: extended character ’ is not valid in an identifier
a.cc:10:12: error: extended character ’ is not valid in an identifier
   10 | } if(s[A]!=’-’) {
      |            ^
a.cc:10:14: error: extended character ’ is not valid in an identifier
   10 | } if(s[A]!=’-’) {
      |              ^
a.cc:13:31: error: extended character ’ is not valid in an identifier
   13 | for(int i=A+1;i<=A+B;i++)if(!(’0’<=s[i]&&s[i]<=’9’)) {
      |                               ^
a.cc:13:31: error: extended character ’ is not valid in an identifier
a.cc:13:48: error: extended character ’ is not valid in an identifier
   13 | for(int i=A+1;i<=A+B;i++)if(!(’0’<=s[i]&&s[i]<=’9’)) {
      |                                                ^
a.cc:13:48: error: extended character ’ is not valid in an identifier
a.cc: In function 'int main()':
a.cc:8:26: error: '\U000020190\U00002019' was not declared in this scope
    8 | for(int i=0;i<A;i++)if(!(’0’<=s[i]&&s[i]<=’9’)) {
      |                          ^~~
a.cc:8:43: error: '\U000020199\U00002019' was not declared in this scope
    8 | for(int i=0;i<A;i++)if(!(’0’<=s[i]&&s[i]<=’9’)) {
      |                                           ^~~
a.cc:10:12: error: '\U00002019' was not declared in this scope
   10 | } if(s[A]!=’-’) {
      |            ^
a.cc:13:31: error: '\U000020190\U00002019' was not declared in this scope
   13 | for(int i=A+1;i<=A+B;i++)if(!(’0’<=s[i]&&s[i]<=’9’)) {
      |                               ^~~
a.cc:13:48: error: '\U000020199\U00002019' was not declared in this scope
   13 | for(int i=A+1;i<=A+B;i++)if(!(’0’<=s[i]&&s[i]<=’9’)) {
      |                                                ^~~
Language: C++

#include <cstdio >
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:1:10: fatal error: cstdio : No such file or directory
    1 | #include <cstdio >
      |          ^~~~~~~~~
compilation terminated.
Language: C++

#include <cstdio > 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:1:20: warning: extra tokens at end of #include directive
    1 | #include <cstdio > int A,B;
      |                    ^~~
a.cc:1:10: fatal error: cstdio : No such file or directory
    1 | #include <cstdio > int A,B;
      |          ^~~~~~~~~
compilation terminated.
Language: C++

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

int main(){
  int A,B; cin >> A >> B;
  char N[20];
  int ans = 0;
  for(int i=0;i<N;i++)
    cin >> N[i];
  for(int i=0;i<A;i++){
    if(N[i] == '-'){
      ans++;
      break;
    }
  }
  for(int i=A+1;i<B+A+1;i++){
    if(N[i] == '-'){
      ans++;
      break;
    }
  }
  if(N[A] != '-')
    ans++
  if(ans == 0){
    cout << "Yes" << endl;
  }else{
    cout << "No" << endl;
  }
}
  
  
  
    
  

Compiler output:
a.cc: In function 'int main()':
a.cc:8:16: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    8 |   for(int i=0;i<N;i++)
      |               ~^~
a.cc:23:10: error: expected ';' before 'if'
   23 |     ans++
      |          ^
      |          ;
   24 |   if(ans == 0){
      |   ~~
Language: C++

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

template <class T> using V = vector<T>;

using ll = long long;
using db = double;
using st = string;
using ch = char;
using vll = V<ll>;
using vpll =V<pair<ll,ll>>;
using vst = V<st>;
using vdb = V<db>;
using vch = V<ch>;


#define FOR(i,a,b) for(ll i=(a);i<(ll)(b);i++)
#define rFOR(i,a,b) for(ll i=(b);i>(ll)(a);i--)
#define oFOR(i,a,b) for(ll i=(a);i<(ll)(b);i+=2)
#define bgn begin()
#define en end()
#define SORT(a) sort((a).bgn,(a).en)
#define REV(a) reverse((a).bgn,(a).en)
#define M(a,b) max(a,b)
#define rM(a,b) min(a,b)
#define fi first
#define se second
#define sz size()
#define gcd(a,b) __gcd(a,b)
#define lcm(a,b) __lcm(a,b)
#define co(a) cout<<a<<endl;
#define ci(a) cin>>a;



int main() {
  ll a,b;
  	ci(a>>b);
  st s;
  	ci(s);
  ch now;
  ll count=0;
  FOR(i,0,b+1){
    now=s[i];
    if(i==a){
      if(now!='-'){
        co("No")
          break;
      }
    }
      else{
        if(now<'0'||'9'<now){
          co("No")
            break;
        }
      }
        count++;
      }
  
  if(count==b+1){
    co("Yes")
  }      

Compiler output:
a.cc: In function 'int main()':
a.cc:63:4: error: expected '}' at end of input
   63 |   }
      |    ^
a.cc:37:12: note: to match this '{'
   37 | int main() {
      |            ^