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

#include <stdio.h>

int main(){
	int A, B;
	char str[20];
	bool valid = true;
	scanf("%d %d", &A, &B);
	scanf("%s", str);
	
	if(str[A] != '-'){
		valid = false;
	}
	
	for(int i = 0; str[i] != '\0'; i++){
		if(i != A){
			if(str[i] < '0' || str [i] > '9'){
				valid = false;
				break;
			}
		}
	}
	(valid) ? puts("Yes") : puts("No");
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:6:9: error: unknown type name 'bool'
    6 |         bool valid = true;
      |         ^~~~
main.c:2:1: note: 'bool' is defined in header '<stdbool.h>'; this is probably fixable by adding '#include <stdbool.h>'
    1 | #include <stdio.h>
  +++ |+#include <stdbool.h>
    2 | 
main.c:6:22: error: 'true' undeclared (first use in this function)
    6 |         bool valid = true;
      |                      ^~~~
main.c:6:22: note: 'true' is defined in header '<stdbool.h>'; this is probably fixable by adding '#include <stdbool.h>'
main.c:6:22: note: each undeclared identifier is reported only once for each function it appears in
main.c:11:25: error: 'false' undeclared (first use in this function)
   11 |                 valid = false;
      |                         ^~~~~
main.c:11:25: note: 'false' is defined in header '<stdbool.h>'; this is probably fixable by adding '#include <stdbool.h>'
Language: C

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


Compiler output:
main.c: In function 'main':
main.c:5:9: error: unknown type name 'bool'
    5 |         bool valid = true;
      |         ^~~~
main.c:2:1: note: 'bool' is defined in header '<stdbool.h>'; this is probably fixable by adding '#include <stdbool.h>'
    1 | #include<stdio.h>
  +++ |+#include <stdbool.h>
    2 | int main(){
main.c:5:22: error: 'true' undeclared (first use in this function)
    5 |         bool valid = true;
      |                      ^~~~
main.c:5:22: note: 'true' is defined in header '<stdbool.h>'; this is probably fixable by adding '#include <stdbool.h>'
main.c:5:22: note: each undeclared identifier is reported only once for each function it appears in
main.c:11:25: error: 'false' undeclared (first use in this function)
   11 |                 valid = false;
      |                         ^~~~~
main.c:11:25: note: 'false' is defined in header '<stdbool.h>'; this is probably fixable by adding '#include <stdbool.h>'
Language: C

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


Compiler output:
main.c: In function 'main':
main.c:5:9: error: unknown type name 'bool'
    5 |         bool valid = true;
      |         ^~~~
main.c:2:1: note: 'bool' is defined in header '<stdbool.h>'; this is probably fixable by adding '#include <stdbool.h>'
    1 | #include<stdio.h>
  +++ |+#include <stdbool.h>
    2 | int main(){
main.c:5:22: error: 'true' undeclared (first use in this function)
    5 |         bool valid = true;
      |                      ^~~~
main.c:5:22: note: 'true' is defined in header '<stdbool.h>'; this is probably fixable by adding '#include <stdbool.h>'
main.c:5:22: note: each undeclared identifier is reported only once for each function it appears in
main.c:11:25: error: 'false' undeclared (first use in this function)
   11 |                 valid = false;
      |                         ^~~~~
main.c:11:25: note: 'false' is defined in header '<stdbool.h>'; this is probably fixable by adding '#include <stdbool.h>'
Language: C++

include<stdio.h>

int main()
{
    int A, B;
    scanf("%d %d", &A, &B);
    int size = A + B + 1;
    
    char str[100];
    scanf("%s", str);
    
    int i, count = 0;
    
    if (str[A] == '-')
    {
        for (i = 0; i < size; i++)
        {
            if (str[i] >= '0' && str[i] <= '9')
            {
                count++;
            }
        }
        
        if (count == size - 1)
        {
            printf("Yes\n");
        }
        
        else
        {
            printf("No\n");
        }
    }
    
    else
    {
        printf("No\n");
    }
    
    return 0;
}

Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include<stdio.h>
      | ^~~~~~~
Language: Java

import java.util.*;

import org.graalvm.compiler.nodes.extended.IntegerSwitchNode;
public class Main {
        public static void main(String[] args){
                Scanner sc = new Scanner(System.in);
                int a = sc.nextInt();
                int b = sc.nextInt();
                String s = sc.next();
                boolean ebishu = true;
                for(int i = 0 ; i < a + b + 1 ; i++){
                        if(i != a){
                                if(s.charAt(i) < 48 || s.charAt(i) > 58){
                                        ebishu = false;
                                }
                        }
                }
                if(s.charAt(a) != '-') ebishu = false;
                if(ebishu) System.out.println("Yes");
                else System.out.println("No");
        }
}

Compiler output:
Main.java:3: error: package org.graalvm.compiler.nodes.extended does not exist
import org.graalvm.compiler.nodes.extended.IntegerSwitchNode;
                                          ^
1 error
Language: C

#include <stdio.h>
#include <string.h>

int main() {
	
	int a, b, strip;
	
	scanf("%d %d", &a, &b);
	
	char s[100];
	
	scanf("%s", &s);
	
	if(s[a]!='-'){
		printf("No");
	}
	
	for(int i=0; i<=strlen(s); i++){
		if(s[i]=='-'){
			strip++;
		}
	}
	
	
	
	else if(strip>>1){
		printf("No");
	}
	
	else {
		printf("Yes");
	}
	
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:26:9: error: 'else' without a previous 'if'
   26 |         else if(strip>>1){
      |         ^~~~
Language: C++

#include<stdio.h>

int main()
{
    int A, B;
    scanf("%d %d", &A, &B);
    int total = A + B + 1;
    
    char str[100];
    scanf("%s", str);
    
    int i, count = 0;
    
    if (str[A] == '-')
    {
        for (i = 0; i < total; i++)
        {
            if (str[i] >= '0' && str[i] <= '9')
            {
                count++;
            }
        }
        
        if (count == size - 1)
        {
            printf("Yes\n");
        }
        
        else
        {
            printf("No\n");
        }
    }
    
    else
    {
        printf("No\n");
    }
    
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:24:22: error: 'size' was not declared in this scope; did you mean 'size_t'?
   24 |         if (count == size - 1)
      |                      ^~~~
      |                      size_t
Language: C++

#include <stdio.h>
#include <stdbool.h>
int main(){
	int a, b;
	bool lanjut = true;
	scanf("%d %d", &a, &b);
	
	char str[a+b+1];
	scanf("%s", &str);
	
	for(int i=0; str[i]!='\0'; i++){
		if(str[i] >= '0' && str[i] <= '9' || str[i] == '-'){
			if (str[a]=='-'){
				printAkhir = true;
			} 
			if (str[a] != '-'){
				printAkhir = false;
			}
		} 
	}
	if(printAkhir = true){
		printf("Yes\n");
	}
	if(printAkhir = false){
		printf("No\n");
	}
	
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:33: error: 'printAkhir' was not declared in this scope
   14 |                                 printAkhir = true;
      |                                 ^~~~~~~~~~
a.cc:17:33: error: 'printAkhir' was not declared in this scope
   17 |                                 printAkhir = false;
      |                                 ^~~~~~~~~~
a.cc:21:12: error: 'printAkhir' was not declared in this scope
   21 |         if(printAkhir = true){
      |            ^~~~~~~~~~
a.cc:24:12: error: 'printAkhir' was not declared in this scope
   24 |         if(printAkhir = false){
      |            ^~~~~~~~~~
Language: C++

#include <stdio.h>
#include <stdbool.h>
int main(){
	int a, b;
	bool lanjut = true;
	scanf("%d %d", &a, &b);
	
	char str[a+b+1];
	scanf("%s", &str);
	
	for(int i=0; str[i]!='\0'; i++){
		if(str[i] >= '0' && str[i] <= '9' || str[i] == '-'){
			if (str[a]=='-'){
				printAkhir = true;
				break;
			} 
			if (str[a] != '-'){
				printAkhir = false;
				break;
			}
		} 
	}
	if(printAkhir = true){
		printf("Yes\n");
	}
	if(printAkhir = false){
		printf("No\n");
	}
	
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:33: error: 'printAkhir' was not declared in this scope
   14 |                                 printAkhir = true;
      |                                 ^~~~~~~~~~
a.cc:18:33: error: 'printAkhir' was not declared in this scope
   18 |                                 printAkhir = false;
      |                                 ^~~~~~~~~~
a.cc:23:12: error: 'printAkhir' was not declared in this scope
   23 |         if(printAkhir = true){
      |            ^~~~~~~~~~
a.cc:26:12: error: 'printAkhir' was not declared in this scope
   26 |         if(printAkhir = false){
      |            ^~~~~~~~~~
Language: C++

#include <stdio.h>
#include <stdbool.h>
int main(){
	int a, b;
	bool printNo = true;
	bool printTrue = true;
	scanf("%d %d", &a, &b);
	
	char str[a+b+1];
	scanf("%s", &str);
	
	for(int i=0; str[i]!='\0'; i++){
		if(str[i] >= '0' && str[i] <= '9' || str[i] == '-'){
			if (str[a]=='-'){
				printNo = false;
			} 
			if (str[a] != '-'){
				printYes = false;
			}
		} 
	}
	if( printTrue){
		printf("Yes\n");
	}
	if( printNo){
		printf("No\n");
	}
	
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:18:33: error: 'printYes' was not declared in this scope
   18 |                                 printYes = false;
      |                                 ^~~~~~~~
Language: C++

#include <stdio.h>
#include <stdbool.h>
int main(){
	int a, b;
	scanf("%d %d", &a, &b);
	
	char str[a+b+1];
	scanf("%s", &str);
	
	for(int i=0; str[i]!='\0'; i++){
		if(str[i] >= '0' && str[i] <= '9' || str[i] == '-'){
			if (str[a]=='-'){
				printTrue = true;
			} 
			if (str[a] != '-'){
				printNo = true;
			}
		} 
	}
	if( printTrue= true){
		printf("Yes\n");
	}
	if( printNo= true){
		printf("No\n");
	}
	
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:33: error: 'printTrue' was not declared in this scope
   13 |                                 printTrue = true;
      |                                 ^~~~~~~~~
a.cc:16:33: error: 'printNo' was not declared in this scope; did you mean 'printf'?
   16 |                                 printNo = true;
      |                                 ^~~~~~~
      |                                 printf
a.cc:20:13: error: 'printTrue' was not declared in this scope
   20 |         if( printTrue= true){
      |             ^~~~~~~~~
a.cc:23:13: error: 'printNo' was not declared in this scope; did you mean 'printf'?
   23 |         if( printNo= true){
      |             ^~~~~~~
      |             printf
Language: C++

#include <stdio.h>
int main(){
	int a, b;
	scanf("%d %d", &a, &b);
	
	char str[a+b+1];
	scanf("%s", &str);
	
	for(int i=0; str[i]!='\0'; i++){
		if(str[i] >= '0' && str[i] <= '9' || str[i] == '-'){
			if (str[a]=='-'){
				printf("Yes\n");
			} 
			if (str[a] != '-'){
				printf("No\n");
			}
		}
		}
	}
	
	return 0;
}

Compiler output:
a.cc:21:9: error: expected unqualified-id before 'return'
   21 |         return 0;
      |         ^~~~~~
a.cc:22:1: error: expected declaration before '}' token
   22 | }
      | ^
Language: C++

#include <stdio.h>

int main(){
	int a,b;
	scanf("%d %d",&a,&b);
	char num[255];
	scanf("%s",num);
	int counter;
	
	for(int i=0;num!='\0';i++){
		if(num[a]!='-'){
			printf("No");
			return 0;
		}
		if(num[i]>=48&&num[i]<=57){
			counter++;
		}
	}
	if(counter=a+b){
		printf("Yes");
	}
	else{
		printf("No");
	}
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:24: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   10 |         for(int i=0;num!='\0';i++){
      |                     ~~~^~~~~~
Language: C++

#include <stdio.h>

int main(){
	int a,b;
	scanf("%d %d",&a,&b);
	char num[255];
	scanf("%s",num);
	int counter;
	
	for(int i=0;num!=EOF;i++){
		if(num[a]!='-'){
			printf("No");
			return 0;
		}
		if(num[i]>=48&&num[i]<=57){
			counter++;
		}
	}
	if(counter=a+b){
		printf("Yes");
	}
	else{
		printf("No");
	}
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:24: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   10 |         for(int i=0;num!=EOF;i++){
      |                        ^
Language: C

#include<stdio.h>

int main()
{
	int a, b;
	scanf("%d %d", &a, &b);
	char s[15];
	scanf("%s", s);
	
	int i = 0;
	while(s[i] != '-' && s[i] != '\0')
	{
		i++;
		a--;
	}
	i++
	while(s[i] != '\0')
	{
		i++;
		b--;
	}
	printf("%d %d\n", a, b);
	if(!a && !b) printf("Yes\n");
	else printf("No\n");
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:16:12: error: expected ';' before 'while'
   16 |         i++
      |            ^
      |            ;
   17 |         while(s[i] != '\0')
      |         ~~~~~
Language: C

#include<stdio.h>

int main(){
	int a,b;
	scanf("%d %d", &a,&b);
	char code[a+b+3]="";
	scanf("%s", code);
	if((code[a]=='-')&&(code[a+1]>=48)&&(code[a+1]<=57)) printf("Yes");
	else printf("No");
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:6:26: error: variable-sized object may not be initialized except with an empty initializer
    6 |         char code[a+b+3]="";
      |                          ^~
Language: C

#include<stdio.h>
#include<string.h>
int main()
{
	int a,b;
	scanf("%d %d",&a,&b);
	char input[a+b+2];
	scanf("%s",input);
	int len = strlen(input);
	int flag = 1,count = 0;
	for(int i = 0;i<len;i++)
	{
		if(input[a] != '-')
		{
			flag = 0;
			break;
		}
		if(input[i] >= '0' && input[i] <= '9')
		{
			count++;
		}
	}
	(count == a+b) ? flag = 1 : flag = 0; 
	(flag == 0) ? printf("No\n") : printf("Yes\n");
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:23:42: error: lvalue required as left operand of assignment
   23 |         (count == a+b) ? flag = 1 : flag = 0;
      |                                          ^
Language: C++

#include <stdio.h>

int main() {
    int A, B, flag = 1;
    char S[20];
    scanf("%d %d %s", &A, &B, s);
    for (int i = 0; S[i] != '\0'; i++) {
        if (i < A || i > A) {
            if (S[i] < '0' || S[i] > '9') {
                flag = 0;
            }
        }
        else {
            if (S[i] != '-') {
                flag = 0;
            }
        }
    }
    flag ? puts("Yes") : puts("No");
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:31: error: 's' was not declared in this scope
    6 |     scanf("%d %d %s", &A, &B, s);
      |                               ^
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:11: fatal error:  cstdio : No such file or directory
    1 | # include < cstdio >
      |           ^~~~~~~~~~
compilation terminated.
Language: C++

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

int main() {
  int A, B;
  
  cin >> A >> B;
  if (A => 1, B => 5) {
    cout << "Yes" << endl;
  }
  else {
    cout << "No" << endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:10: error: expected primary-expression before '>' token
    8 |   if (A => 1, B => 5) {
      |          ^
a.cc:8:18: error: expected primary-expression before '>' token
    8 |   if (A => 1, B => 5) {
      |                  ^
Language: C++

#include <bits/stdc++.h>
#define rep(i,n) for(int i=0; i<(n); i++)
#define rep2(i,x,n) for(int i=x; i<(n); i++)
const long long INF = LLONG_MAX;
using namespace std;
using ll = long long;
using P  = pair<int, int>;
template<class T> inline bool chmax(T& a, T b) { if (a < b) { a = b; return 1; } return 0; }
template<class T> inline bool chmin(T& a, T b) { if (a > b) { a = b; return 1; } return 0; }

int main()
{
    string s;
    int A, B;
    cin >> A >> B;
    cin >> s;
    if(s.size() != A+B+1)
    {
        cout << "No" << endl;
        return 0;
    }
    int p = s.find('-');
    if(p != A)
    {
        cout << "No" << endl;
        return 0;
    }
    rep(i, s.size()) 
    {
        if(i == A) continue;
        if(!(0 <= (s[i] - '0') && (s[i] - '0') <= 9)) {
          cout << "No" << endl;
          return 0;
        }
    {
    // ll a = stoll(s.substr(0, A));
    // ll a = stoll(s.substr(0, A));
    cout << "Yes" << endl;
    }
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:41:2: error: expected '}' at end of input
   41 | }
      |  ^
a.cc:12:1: note: to match this '{'
   12 | {
      | ^
Language: C++

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

int main() {
  int A,B;
  for(int i=0;i<A+B+1){
    char a;
    cin >> a;
    if((i==A&&a!='-')||(i!=A&&a=='-')){
      cout << "No" << endl;
      return 0;
    }
  }
  cout << "Yes" << endl;
}

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

#include <bits/stdc++.h>

int main(){
  int a,b;
  cin >> a >> b;
  string s;
  cin >> s;
  if(s[a]=='-') cout << "Yes" << endl;
  else cout << "No" << endl;
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:5:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    5 |   cin >> a >> b;
      |   ^~~
      |   std::cin
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146,
                 from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:6:3: error: 'string' was not declared in this scope
    6 |   string s;
      |   ^~~~~~
a.cc:6:3: note: suggested alternatives:
In file included from /usr/include/c++/14/string:41,
                 from /usr/include/c++/14/bitset:52,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:52:
/usr/include/c++/14/bits/stringfwd.h:77:33: note:   'std::string'
   77 |   typedef basic_string<char>    string;
      |                                 ^~~~~~
/usr/include/c++/14/string:76:11: note:   'std::pmr::string'
   76 |     using string    = basic_string<char>;
      |           ^~~~~~
a.cc:7:10: error: 's' was not declared in this scope
    7 |   cin >> s;
      |          ^
a.cc:8:17: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    8 |   if(s[a]=='-') cout << "Yes" << endl;
      |                 ^~~~
      |                 std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:8:34: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    8 |   if(s[a]=='-') cout << "Yes" << endl;
      |                                  ^~~~
      |                                  std::endl
In file included from /usr/include/c++/14/istream:41,
                 from /usr/include/c++/14/sstream:40,
                 from /usr/include/c++/14/complex:45,
                 from /usr/include/c++/14/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:127:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:9:8: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    9 |   else cout << "No" << endl;
      |        ^~~~
      |        std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:9:24: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    9 |   else cout << "No" << endl;
      |                        ^~~~
      |                        std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

int main(){
  int a,b;
  cin >> a >> b;
  string s;
  cin >> s;
  if(s[a]=='-') cout << "Yes" << endl;
  else cout << "No" << endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:3:3: error: 'cin' was not declared in this scope
    3 |   cin >> a >> b;
      |   ^~~
a.cc:4:3: error: 'string' was not declared in this scope
    4 |   string s;
      |   ^~~~~~
a.cc:5:10: error: 's' was not declared in this scope
    5 |   cin >> s;
      |          ^
a.cc:6:17: error: 'cout' was not declared in this scope
    6 |   if(s[a]=='-') cout << "Yes" << endl;
      |                 ^~~~
a.cc:6:34: error: 'endl' was not declared in this scope
    6 |   if(s[a]=='-') cout << "Yes" << endl;
      |                                  ^~~~
a.cc:7:8: error: 'cout' was not declared in this scope
    7 |   else cout << "No" << endl;
      |        ^~~~
a.cc:7:24: error: 'endl' was not declared in this scope
    7 |   else cout << "No" << endl;
      |                        ^~~~
Language: C++

#include<iostream>
#include<algorithm>
#include<vector>
using namespace std;


int main(){
    int a,b;
    // string s;
    vector<char> lst(10);
    cin>>a>>b;
    bool ans=true;
    for(int i=0;i<10;i++){
        cin>>lst.at(i);
    {
        
    for(int i=0;i<10;i++){     
        if (i!=a && lst.at(i)=='-'){
            ans=false;
            break;
        }
        if (i==a && lst.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:34:2: error: expected '}' at end of input
   34 | }
      |  ^
a.cc:13:26: note: to match this '{'
   13 |     for(int i=0;i<10;i++){
      |                          ^
a.cc:34:2: error: expected '}' at end of input
   34 | }
      |  ^
a.cc:7:11: note: to match this '{'
    7 | int main(){
      |           ^
Language: C++

#include<iostream>
#include<algorithm>
#include<vector>
using namespace std;


int main(){
    int a,b;
    string s;
    vector<string> lst[10]=1;
    cin>>a>>b>>s;
    bool ans=true;

    for(int i=0;i<10;i++){
        cin>>lst.at[i];
        if (i!=a+1 && lst.at[i]=='-'){
            ans=false;
            break;
        }
        if (i==a+1 && lst.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:10:28: error: array must be initialized with a brace-enclosed initializer
   10 |     vector<string> lst[10]=1;
      |                            ^
a.cc:15:18: error: request for member 'at' in 'lst', which is of non-class type 'std::vector<std::__cxx11::basic_string<char> > [10]'
   15 |         cin>>lst.at[i];
      |                  ^~
a.cc:16:27: error: request for member 'at' in 'lst', which is of non-class type 'std::vector<std::__cxx11::basic_string<char> > [10]'
   16 |         if (i!=a+1 && lst.at[i]=='-'){
      |                           ^~
a.cc:20:27: error: request for member 'at' in 'lst', which is of non-class type 'std::vector<std::__cxx11::basic_string<char> > [10]'
   20 |         if (i==a+1 && lst.at[i]!='-'){
      |                           ^~
a.cc:25:8: error: expected '(' before 'ans'
   25 |     if ans{
      |        ^~~
      |        (
a.cc:27:6: error: 'else' without a previous 'if'
   27 |     }else{
      |      ^~~~
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:11: fatal error:  cstdio : No such file or directory
    1 | # include < cstdio >
      |           ^~~~~~~~~~
compilation terminated.
Language: C++

#define LOCAL
#include <bits/stdc++.h>
#define rep(i, n) for(int i=0; i<(n); ++i)
#define rrep(i, n) for(int i=(n-1); i>=0; --i)
#define rep2(i, s, n) for(int i=s; i<(n); ++i)
#define ALL(v) (v).begin(), (v).end()
#define memr(dp, val) memset(dp, val, sizeof(dp))
using namespace std;
typedef long long ll;
static const int INTINF = (INT_MAX >> 1); // 10^9 + 10^7
static const ll LLINF = (LLONG_MAX >> 1);
static const int MAX = 1e5+1;
static const ll MOD = 1e9+7;
template<class T> inline bool chmax(T& a, T b) { if (a < b) { a = b; return 1; } return 0; }
template<class T> inline bool chmin(T& a, T b) { if (a > b) { a = b; return 1; } return 0; }
template<class T> inline bool int_ceil(T a, T b) { T res = a / b; if(a % b != 0) res++; return res; }
template<typename T>
using min_priority_queue = priority_queue<T, vector<T>, greater<T> >;
string to_string(string s) { return '"' + s + '"'; }
string to_string(bool b) { return b ? "true" : "false"; }
template <size_t N> string to_string(bitset<N> bs) {
  string res;
  for (size_t i = 0; i < N; ++i) res += '0' + bs[i];
  return res;
}
string to_string(vector<bool> v) {
  string res = "{";
  for (bool e : v) res += to_string(e) + ", ";
  return res += "}";
}
template <class T, class U> string to_string(pair<T, U> p);
template <class C> string to_string(C c) {
  string res = "{";
  for (auto e : c) res += to_string(e) + ", ";
  return res += "}";
}
template <class T, class U> string to_string(pair<T, U> p) {
  return "(" + to_string(p.first) + ", " + to_string(p.second) + ")";
}
void debug() { cerr << '\n'; }
template <class Head, class... Tail> void debug(Head head, Tail... tail) {
  cerr << '\t' << to_string(head), debug(tail...);
}
#ifdef LOCAL
#define print(...) cerr << "[" << #__VA_ARGS__ << "]:", debug(__VA_ARGS__)
#else
#define print(...)
#endif

int main(int argc, const char * argv[]) {
	std::cout << std::fixed << std::setprecision(15);

	int a, b; cin >> a >> b;
	string str; cin >> str;
	bool ok = true;
	if(str.size() != a + b + 1) ok = false;
	if(ok){
		rep(i, a) if(!isnumber(str[i])) ok = false;
		rep(i, b) if(!isnumber(str[i+a+1])) ok = false;
		if(str[a] != '-') ok = false;
	}
	if(!ok){
		cout << "No" << endl;
	}
	else{
		cout << "Yes" << endl;
	}

	return 0;
}


Compiler output:
a.cc: In function 'int main(int, const char**)':
a.cc:58:31: error: 'isnumber' was not declared in this scope
   58 |                 rep(i, a) if(!isnumber(str[i])) ok = false;
      |                               ^~~~~~~~
a.cc:59:31: error: 'isnumber' was not declared in this scope
   59 |                 rep(i, b) if(!isnumber(str[i+a+1])) ok = false;
      |                               ^~~~~~~~
Language: Java

import java.util.*;
public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();
		String str = sc.next();
		System.out.println(str);
		String ans = "No";
		
		for(int i=0; i<a; i++){
		    if(str.substring(i)>="0" && str.substring(i)<="9"){
		        ans = "Yes";
		    }
		}
		
		if(str.substring(a)=="-"){
		    ans = "Yes";
		}
		
		for(int i=a+1; i<b+1; i++){
		    if(str.substring(i)>="0" && str.substring(i)<="9"){
		        ans = "Yes";
		    }
		}
		
        System.out.println(ans);
	}
}


Compiler output:
Main.java:12: error: bad operand types for binary operator '>='
		    if(str.substring(i)>="0" && str.substring(i)<="9"){
		                       ^
  first type:  String
  second type: String
Main.java:12: error: bad operand types for binary operator '<='
		    if(str.substring(i)>="0" && str.substring(i)<="9"){
		                                                ^
  first type:  String
  second type: String
Main.java:22: error: bad operand types for binary operator '>='
		    if(str.substring(i)>="0" && str.substring(i)<="9"){
		                       ^
  first type:  String
  second type: String
Main.java:22: error: bad operand types for binary operator '<='
		    if(str.substring(i)>="0" && str.substring(i)<="9"){
		                                                ^
  first type:  String
  second type: String
4 errors
Language: Java

import java.util.*;
public class Main {
	public static void main(String[] args){
       Scanner sc = new Scanner(System.in);   
	  int a = sc.nextInt();
      int b = sc.nextInt();
      String s = sc.next();
      
      Pattern p = Pattern.compile("^[0-9]{"+a+"}-[0-9]{"+b+"}$");
      Matcher m = p.matcher(s);
      if(m.matches()){
        System.out.println("Yes");
      }else{
        System.out.println("No");
      }
    }
}


Compiler output:
Main.java:9: error: cannot find symbol
      Pattern p = Pattern.compile("^[0-9]{"+a+"}-[0-9]{"+b+"}$");
      ^
  symbol:   class Pattern
  location: class Main
Main.java:9: error: cannot find symbol
      Pattern p = Pattern.compile("^[0-9]{"+a+"}-[0-9]{"+b+"}$");
                  ^
  symbol:   variable Pattern
  location: class Main
Main.java:10: error: cannot find symbol
      Matcher m = p.matcher(s);
      ^
  symbol:   class Matcher
  location: class Main
3 errors
Language: Java

import java.util.*;
public class Main {
	public static void main(String[] args){
       Scanner sc = new Scanner(System.in);   
	  int a = sc.nextInt();
      int b = sc.nextInt();
      String s = sc.next();
      
      Pattern p = Pattern.compile("^[0-9]{"+a+"}-[0-9]{"+b+"}$");
      Matcher m = p.matcher(s);
      if(m.matches()){
        System.out.println(Yes);
      }else{
        System.out.println(No);
      }
    }
}


Compiler output:
Main.java:9: error: cannot find symbol
      Pattern p = Pattern.compile("^[0-9]{"+a+"}-[0-9]{"+b+"}$");
      ^
  symbol:   class Pattern
  location: class Main
Main.java:9: error: cannot find symbol
      Pattern p = Pattern.compile("^[0-9]{"+a+"}-[0-9]{"+b+"}$");
                  ^
  symbol:   variable Pattern
  location: class Main
Main.java:10: error: cannot find symbol
      Matcher m = p.matcher(s);
      ^
  symbol:   class Matcher
  location: class Main
Main.java:12: error: cannot find symbol
        System.out.println(Yes);
                           ^
  symbol:   variable Yes
  location: class Main
Main.java:14: error: cannot find symbol
        System.out.println(No);
                           ^
  symbol:   variable No
  location: class Main
5 errors
Language: Java

import java.util.*;
public class Main {
	public static void main(String[] args){
       Scanner sc = new Scanner(System.in);   
	  int a = sc.nextInt();
      int b = sc.nextInt();
      String s = sc.next();
      
      Pattern p = Pattern.compile("^[0-9]{"+a+"}-[0-9]{"+b+"}$");
      Matcher m = p.matcher(s);
      
      if(m.matches()){
        System.out.println(Yes);
      }else{
        System.out.println(No);
      }
    }
}


Compiler output:
Main.java:9: error: cannot find symbol
      Pattern p = Pattern.compile("^[0-9]{"+a+"}-[0-9]{"+b+"}$");
      ^
  symbol:   class Pattern
  location: class Main
Main.java:9: error: cannot find symbol
      Pattern p = Pattern.compile("^[0-9]{"+a+"}-[0-9]{"+b+"}$");
                  ^
  symbol:   variable Pattern
  location: class Main
Main.java:10: error: cannot find symbol
      Matcher m = p.matcher(s);
      ^
  symbol:   class Matcher
  location: class Main
Main.java:13: error: cannot find symbol
        System.out.println(Yes);
                           ^
  symbol:   variable Yes
  location: class Main
Main.java:15: error: cannot find symbol
        System.out.println(No);
                           ^
  symbol:   variable No
  location: class Main
5 errors
Language: Java

import java.util.*;
public class Main {
	public static void main(String[] args){
       Scanner sc = new Scanner(System.in);   
      //取得
	  int A = sc.nextInt();
      int B = sc.nextInt();
      String S = sc.next();
      
      Pattern p = Pattern.compile("^[0-9]{A}-[0-9]{B}$");
      Matcher m = p.matcher(S);
      
      if(m.find()){
        System.out.println("Yes");
      }else{
        System.out.println("No");
      }
    }
}

Compiler output:
Main.java:10: error: cannot find symbol
      Pattern p = Pattern.compile("^[0-9]{A}-[0-9]{B}$");
      ^
  symbol:   class Pattern
  location: class Main
Main.java:10: error: cannot find symbol
      Pattern p = Pattern.compile("^[0-9]{A}-[0-9]{B}$");
                  ^
  symbol:   variable Pattern
  location: class Main
Main.java:11: error: cannot find symbol
      Matcher m = p.matcher(S);
      ^
  symbol:   class Matcher
  location: class Main
3 errors
Language: Java

import java.util.*;
public class Main {
	public static void main(String[] args){
       Scanner sc = new Scanner(System.in);   
      //値取得
	  int A = sc.nextInt();
      int B = sc.nextInt();
      String S = sc.next();
      
      Pattern p = Pattern.compile("^[0-9]{A}-[0-9]{B}$");
      Matcher m = p.matcher(str);
      
      if(m.find()){
        System.out.println("Yes");
      }else{
        System.out.println("No");
      }
    }
}

Compiler output:
Main.java:10: error: cannot find symbol
      Pattern p = Pattern.compile("^[0-9]{A}-[0-9]{B}$");
      ^
  symbol:   class Pattern
  location: class Main
Main.java:10: error: cannot find symbol
      Pattern p = Pattern.compile("^[0-9]{A}-[0-9]{B}$");
                  ^
  symbol:   variable Pattern
  location: class Main
Main.java:11: error: cannot find symbol
      Matcher m = p.matcher(str);
      ^
  symbol:   class Matcher
  location: class Main
Main.java:11: error: cannot find symbol
      Matcher m = p.matcher(str);
                            ^
  symbol:   variable str
  location: class Main
4 errors
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:9: error: lvalue required as left operand of assignment
    8 |   S.size() = A + B + 1;
      |   ~~~~~~^~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:9: error: lvalue required as left operand of assignment
    8 |   S.size() = A + B + 1;
      |   ~~~~~~^~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:9: error: lvalue required as left operand of assignment
    8 |   S.size() = A + B + 2;
      |   ~~~~~~^~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:9: error: lvalue required as left operand of assignment
    8 |   S.size() = A + B + 2;
      |   ~~~~~~^~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:14: error: 'A' was not declared in this scope
    6 |   S.size() = A + B + 2;
      |              ^
a.cc:6:18: error: 'B' was not declared in this scope
    6 |   S.size() = A + B + 2;
      |                  ^
Language: C++

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

int main() {
  int A, B, S;
  cin >> A >> B >> S
    if( A + 1 == "-" ){
      cout << "Yes" << endl;
    }
  else {
    cout << "No" << endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:21: error: expected ';' before 'if'
    6 |   cin >> A >> B >> S
      |                     ^
      |                     ;
    7 |     if( A + 1 == "-" ){
      |     ~~               
a.cc:10:3: error: 'else' without a previous 'if'
   10 |   else {
      |   ^~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
	int a,b;cin>>a>>b;
  	string s;
  cin>>s;
  int e = 1;
  int seen=0;
  for(int i=0;i<a+b+1;i++){
  	if(i!=a && s[i]=='-'){e=0;break;}
    if(i==a && s[i]=='-')seen=1;
  }
  if(e==1 && seen=1)cout<<"Yes\n";
  else cout<<"No\n";
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:11: error: lvalue required as left operand of assignment
   13 |   if(e==1 && seen=1)cout<<"Yes\n";
      |      ~~~~~^~~~~~~
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 < s.size(); i++){
	  if(s[a + 1] == '-'){
   		 for (int j = 0;  j < s.size(); j++){
		    if('0' <= s[i] && s[i] <= '9')cout << "Yes" << endl;
		  	}else{
    	    cout << "No" << endl;
      		break;    
         }
      }
}
}


Compiler output:
a.cc: In function 'int main()':
a.cc:16:26: error: expected '}' before 'else'
   16 |                         }else{
      |                          ^~~~
a.cc:13:30: note: to match this '{'
   13 |           if(s[a + 1] == '-'){
      |                              ^
a.cc: At global scope:
a.cc:22:1: error: expected declaration before '}' token
   22 | }
      | ^
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 < s.size(); i++){
	  if(s[a + 1] == '-'){
   		 for (int j = 0;  j < s.size(); j++){
		    if('0' <= s[i] && s[i] <= '9')cout << "Yes" << endl;
		  	}else{
    	    cout << "No" << endl;
      		break;    
         }
      }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:16:26: error: expected '}' before 'else'
   16 |                         }else{
      |                          ^~~~
a.cc:13:30: note: to match this '{'
   13 |           if(s[a + 1] == '-'){
      |                              ^
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 < s.size(); i++){
	  if(s[a + 1] == '-'){
   		 for (int j = 0;  j < s.size(); j++){
		    if('0' <= s[i] && s[i] <= '9'){
    			cout << "Yes" << endl;
            }
	  	}else{
        cout << "No" << endl;
      	break;
      }
 　}
}


Compiler output:
a.cc:22:2: error: extended character 　 is not valid in an identifier
   22 |  　}
      |  ^
a.cc: In function 'int main()':
a.cc:18:18: error: expected '}' before 'else'
   18 |                 }else{
      |                  ^~~~
a.cc:13:30: note: to match this '{'
   13 |           if(s[a + 1] == '-'){
      |                              ^
a.cc:22:2: error: '\U00003000' was not declared in this scope
   22 |  　}
      |  ^~
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 < s.size(); i++){
	  if(s[a + 1] == '-'){
   		 for (int j = 0;  j < s.size(); j++){
		    if('0' <= s[i] && s[i] <= '9'){
    			cout << "Yes" << endl;
            }
	  	}else{
        cout << "No" << endl;
      	break;
      }
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:18:18: error: expected '}' before 'else'
   18 |                 }else{
      |                  ^~~~
a.cc:13:30: note: to match this '{'
   13 |           if(s[a + 1] == '-'){
      |                              ^
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 < s.size(); i++){
	  if(s[a + 1] == '-'){
   		 for (int j = 0;  j < s.size(); j++)
		    if('0' <= s[i] && s[i] <= '9'){
    			cout << "Yes" << endl;
            }
	  	}else{
        cout << "No" << endl;
      	break;
      }
  }
  cout << 24 + m << endl;
}

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:32:10: warning: ignoring return value of 'bool std::operator==(const __cxx11::basic_string<_CharT, _Traits, _Allocator>&, const _CharT*) [with _CharT = char; _Traits = char_traits<char>; _Alloc = allocator<char>]', declared with attribute 'nodiscard' [-Wunused-result]
   32 |         D=="No";
      |         ~^~~~~~
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:3772:5: note: declared here
 3772 |     operator==(const basic_string<_CharT, _Traits, _Alloc>& __lhs,
      |     ^~~~~~~~
a.cc:39:2: error: expected '}' at end of input
   39 | }
      |  ^
a.cc:3:11: note: to match this '{'
    3 | int main(){
      |           ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:11:10: error: expected ';' before 'if'
   11 |   D="Yes"
      |          ^
      |          ;
   12 |   if(C.at(A)!='-'){
      |   ~~      
a.cc:29:10: warning: ignoring return value of 'bool std::operator==(const __cxx11::basic_string<_CharT, _Traits, _Allocator>&, const _CharT*) [with _CharT = char; _Traits = char_traits<char>; _Alloc = allocator<char>]', declared with attribute 'nodiscard' [-Wunused-result]
   29 |         D=="No";
      |         ~^~~~~~
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:3772:5: note: declared here
 3772 |     operator==(const basic_string<_CharT, _Traits, _Alloc>& __lhs,
      |     ^~~~~~~~
a.cc:34:17: error: expected '}' at end of input
   34 |   cout<<D<<endl;
      |                 ^
a.cc:3:11: note: to match this '{'
    3 | int main(){
      |           ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
	int a,b;
  	string s;
  	cin>>a>>b;
  	cin>>s;
  	if(s.at(a+1) == '-'){
    	c++;
    }
  for(int i=0;i<a;i++){
  	if(s.at(i) >= 48 && s.at(i)<= 57 ){
    	c++;
    }
  }
  for(int i=a+1;i<a+b+1;i++){
  	if(s.at(i) >= 48 && s.at(i)<= 57 ){
    	c++;
    }
  }
	if(c == 3){cout<<"Yes"<<"\n"; }
  	else { cout<<"No"<<"\n"; }
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:9: error: 'c' was not declared in this scope
    9 |         c++;
      |         ^
a.cc:13:9: error: 'c' was not declared in this scope
   13 |         c++;
      |         ^
a.cc:18:9: error: 'c' was not declared in this scope
   18 |         c++;
      |         ^
a.cc:21:12: error: 'c' was not declared in this scope
   21 |         if(c == 3){cout<<"Yes"<<"\n"; }
      |            ^
Language: Java

import java.util.*;

public class Main {
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int A = sc.nextInt();
        int B = sc.nextInt();
        String S = sc.next();
      	Boolean ans = false;
		
   	       	
      for (int i =0; i<A+B+1; i++){
          if(i != A){
          if(S.charAt(i)>='0' && S.charAt(i)<='9' &&S.charAt(A) == '-'){
          	ans = true;
          }
          } 
       }
      	
      if(ans == true){
      System.out.println("Yes");
      }
      else{
       System.out.println("No");
      }
   }  	

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

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

int main() {
  // ここにプログラムを追記
  int >> A, B, S;
  cin << A, B;
  if 
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:7: error: expected unqualified-id before '>>' token
    6 |   int >> A, B, S;
      |       ^~
a.cc:7:10: error: 'A' was not declared in this scope
    7 |   cin << A, B;
      |          ^
a.cc:7:13: error: 'B' was not declared in this scope
    7 |   cin << A, B;
      |             ^
a.cc:9:1: error: expected '(' before '}' token
    9 | }
      | ^
      | (
Language: C

#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <ctype.h>
#include <math.h>

int main() {

    int a, b;
    char s[12];

    scanf("%d %d %s", &a, &b, s);
    int isCheck = 1;
    for (int i = 0; i < strlen(s); i++) {

        //printf("%c", s[i]);

        if (i == a) {
            if (s[i] != '-') {
                isCheck = 0;
                break;
            }
        }else{
            
            if(!(s[i]>=(int)'0' and s[i]<=(int)'9')){
                isCheck=0;
                break;
            }
            
        }

    }

    printf("%s",(isCheck ==1 ? "Yes" : "No"));

    return 0;

}


Compiler output:
main.c: In function 'main':
main.c:25:32: error: expected ')' before 'and'
   25 |             if(!(s[i]>=(int)'0' and s[i]<=(int)'9')){
      |                 ~              ^~~~
      |                                )
Language: C

#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <ctype.h>
#include <math.h>

int main() {

    int a, b;
    char s[12];

    scanf("%d %d %s", &a, &b, s);
    int isCheck = 1;
    for (int i = 0; i < strlen(s); i++) {

        //printf("%c", s[i]);

        if (i == a) {
            if (s[i] != '-') {
                isCheck = 0;
                break;
            }
        }else{
            
            if(!(s[i]>='0' and s[i]<='9')){
                isCheck=0;
                break;
            }
            
        }

    }

    printf("%s",(isCheck ==1 ? "Yes" : "No"));

    return 0;

}


Compiler output:
main.c: In function 'main':
main.c:25:27: error: expected ')' before 'and'
   25 |             if(!(s[i]>='0' and s[i]<='9')){
      |                 ~         ^~~~
      |                           )