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

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

int main()
{
	int h,w;
	cin >> h >> w;
	char s[100][100];
	int z =0,cn = 0;
	for(int i = 1 ; i <= h ; i++)
	{
		for(int j = 1 ; j <= w ; j++)
		{
			cin >> s[i][j];
			if(s[i] == '#')
				cn++;
		}
	}
	for(int i = 1 ; i <= h ; i++)
	{
		for(int j = 1 ; j <= w ; j++)
		{
			if(s[i][j] == '#' && s[i][j+1] == '#' && s[i][j-1] == '#' && s[i+1][j] == '#' && s[i+1][j] == '#')z++;
		}
	}
	if(z == cn)
		cout << "YES\n";
	else
		cout << "NO\n";
}

Compiler output:
a.cc: In function 'int main()':
a.cc:15:33: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   15 |                         if(s[i] == '#')
      |                            ~~~~~^~~~~~
Language: C++

#include <iotream>
using namespace std;
int main ( )
{
	int a,b;
	cin>>a>>b;
	if(a<b)
	cout<<a-1;
	else
	cout<<a;
	return 0;
}

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

#include <iostream>
#include <math.h>

using namespace std;

int A, B, C, K;

int main() {
  cin >> A >> B >> C >> K;

  int MAX = INT_MIN;
  if(A > MAX) A = MAX;
  if(B > MAX) B = MAX;
  if(C > MAX) C = MAX;

  cout << A + B + C + MAX * pow(2, K)  << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:13: error: 'INT_MIN' was not declared in this scope
   11 |   int MAX = INT_MIN;
      |             ^~~~~~~
a.cc:3:1: note: 'INT_MIN' is defined in header '<climits>'; this is probably fixable by adding '#include <climits>'
    2 | #include <math.h>
  +++ |+#include <climits>
    3 |
Language: C

#include<stdio.h>

int main()
{
  int a,b;
  a=b=1;
  int takahashi=0;
  scanf("%d%d",&a,&b);
  if(a<1||a>12||b<0||b>31)
    {
      break;
    
  int i,j;

  for(i=1;i<=a;i++)
    {
      for(j=1;j<=b;j++)
	{
	  if(i==j)
	    {
	      takahashi++;
	    }
	}
    }
  printf("%d\n",takahashi);
  return 0;
}


Compiler output:
main.c: In function 'main':
main.c:11:7: error: break statement not within loop or switch
   11 |       break;
      |       ^~~~~
main.c:27:1: error: expected declaration or statement at end of input
   27 | }
      | ^
Language: C

#include<stdio.h>

int main()
{
  int a,b;
  int takahashi=0;
  scanf("%d%d",&a,&b);
if(a<1||a>12||b<0||b>31)
    {
      break;
    }
  int i,j;

  for(i=1;i<=a;i++)
    {
      for(j=1;j<=b;j++)
	{
	  if(i==j)
	    {
	      takahashi++;
	    }
	}
    }
  printf("%d\n",takahashi);
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:10:7: error: break statement not within loop or switch
   10 |       break;
      |       ^~~~~
Language: C

#include<stdio.h>

int main()
{
  int a=b=1;
  int takahashi=0;
  scanf("%d%d",&a,&b);
  int i,j;

  for(i=1;i<=a;i++)
    {
      for(j=1;j<=b;j++)
	{
	  if(i==j)
	    {
	      takahashi++;
	    }
	}
    }
  printf("%d\n",takahashi);
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:5:9: error: 'b' undeclared (first use in this function)
    5 |   int a=b=1;
      |         ^
main.c:5:9: note: each undeclared identifier is reported only once for each function it appears in
Language: C++

#include<vector>
#include<map>
#include<cmath>
#include<algorithm>
#include<functional>
typedef long long ll;
#define INF 99999999
int main() {
	int a = 0, b = 0, c = 0, n = 0;
	int ar[100000] = {};
	std::string str;
	std::cin >> a >> b;
	n += a - 1;
	if (b >= a) {
		n++;
	}
	std::cout << n << std::endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:14: error: 'string' is not a member of 'std'
   11 |         std::string str;
      |              ^~~~~~
a.cc:6:1: note: 'std::string' is defined in header '<string>'; this is probably fixable by adding '#include <string>'
    5 | #include<functional>
  +++ |+#include <string>
    6 | typedef long long ll;
a.cc:12:14: error: 'cin' is not a member of 'std'
   12 |         std::cin >> a >> b;
      |              ^~~
a.cc:6:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    5 | #include<functional>
  +++ |+#include <iostream>
    6 | typedef long long ll;
a.cc:17:14: error: 'cout' is not a member of 'std'
   17 |         std::cout << n << std::endl;
      |              ^~~~
a.cc:17:14: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:17:32: error: 'endl' is not a member of 'std'
   17 |         std::cout << n << std::endl;
      |                                ^~~~
a.cc:6:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
    5 | #include<functional>
  +++ |+#include <ostream>
    6 | typedef long long ll;
Language: C++



#include <iostream>

#include <conio.h>
#include <string.h>
#include <stdio.h>
#include <time.h>
#include <stdlib.h>
#include <random>
using namespace std;


int main()
{
	int a, b;
	cin >> a >> b;
	if (a > b)
		cout << a - 1;
	else
		cout << a;
    return 0;
}



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


#include "stdafx.h"
#include <iostream>

#include <conio.h>
#include <string.h>
#include <stdio.h>
#include <time.h>
#include <stdlib.h>
#include <random>
using namespace std;


int main()
{
	int a, b;
	cin >> a >> b;
	if (a > b)
		cout << a - 1;
	else
		cout << a;
    return 0;
}



Compiler output:
a.cc:2:10: fatal error: stdafx.h: No such file or directory
    2 | #include "stdafx.h"
      |          ^~~~~~~~~~
compilation terminated.
Language: Java

// AtCoder.cpp : コンソール アプリケーションのエントリ ポイントを定義します。
//

#include "stdafx.h"
#include <iostream>
#include <cstdio>
#include <cstring>
#include <cstdlib>
#include <algorithm>
#include <string>
#include <sstream>
#include <complex>
#include <vector>
#include <list>
#include <queue>
#include <deque>
#include <stack>
#include <map>
#include <set>
#include <fstream>
using namespace std;
typedef long long unsigned int ll;

#define REP(i,n)for(i=0;i<n;i++)

#define INF (1e9)
#define PI  (acos(-1))

int a, b;

int main()
{


	while (cin >> a >> b) {
		if (a > b) {
			cout << a - 1 << endl;
		}
		else {
			cout << a << endl;
		}
	}

    return 0;
}



Compiler output:
Main.java:4: error: illegal character: '#'
#include "stdafx.h"
^
Main.java:4: error: class, interface, enum, or record expected
#include "stdafx.h"
         ^
Main.java:5: error: illegal character: '#'
#include <iostream>
^
Main.java:6: error: illegal character: '#'
#include <cstdio>
^
Main.java:7: error: illegal character: '#'
#include <cstring>
^
Main.java:8: error: illegal character: '#'
#include <cstdlib>
^
Main.java:9: error: illegal character: '#'
#include <algorithm>
^
Main.java:10: error: illegal character: '#'
#include <string>
^
Main.java:11: error: illegal character: '#'
#include <sstream>
^
Main.java:12: error: illegal character: '#'
#include <complex>
^
Main.java:13: error: illegal character: '#'
#include <vector>
^
Main.java:14: error: illegal character: '#'
#include <list>
^
Main.java:15: error: illegal character: '#'
#include <queue>
^
Main.java:16: error: illegal character: '#'
#include <deque>
^
Main.java:17: error: illegal character: '#'
#include <stack>
^
Main.java:18: error: illegal character: '#'
#include <map>
^
Main.java:19: error: illegal character: '#'
#include <set>
^
Main.java:20: error: illegal character: '#'
#include <fstream>
^
Main.java:22: error: class, interface, enum, or record expected
typedef long long unsigned int ll;
^
Main.java:24: error: illegal character: '#'
#define REP(i,n)for(i=0;i<n;i++)
^
Main.java:24: error: class, interface, enum, or record expected
#define REP(i,n)for(i=0;i<n;i++)
        ^
Main.java:24: error: class, interface, enum, or record expected
#define REP(i,n)for(i=0;i<n;i++)
                        ^
Main.java:24: error: class, interface, enum, or record expected
#define REP(i,n)for(i=0;i<n;i++)
                            ^
Main.java:26: error: illegal character: '#'
#define INF (1e9)
^
Main.java:27: error: illegal character: '#'
#define PI  (acos(-1))
^
Main.java:37: error: not a statement
			cout << a - 1 << endl;
			              ^
Main.java:40: error: not a statement
			cout << a << endl;
			          ^
Main.java:31: error: unnamed classes are a preview feature and are disabled by default.
int main()
^
  (use --enable-preview to enable unnamed classes)
28 errors
Language: C++

#include <string>
#include <queue>
#include <stack>
#include <vector>
#include <sstream>
#include <algorithm>
#include <deque>
#include <set>
#include <map>
#include <unordered_set>
#include <unordered_map>
#include <list>
#include <cstdio>
#include <iostream>
#include <cmath>
#include <climits>
#include <bitset>
#include <functional>
#include <numeric>
#include <ctime>
#include <cassert>
#include <cstring>
#include <fstream>
 
using namespace std;
int H,W;
char s[60][60];
int dx[4]={1,-1,0,0};
int dy[4]={0,0,1,-1};
int main(void){
  cin>>H>>W;
  for(int i=0;i<H;i++){
  scanf("%s",&s[i])}
  bool ans=true;
  for(int i=0;i<H;i++){
    for(int j=0;j<W;j++){
      if(s[i][j]=='#'){
        bool found=false;
        for(int k=0;k<4;k++){
          int i2=i+dx[k];
          int j2=j+dy[k];
        if(i2>=0&&i2<H&&j2>=0&&j2<W&&s[i2][j2]=='#'){
          found=true;
          }
         }
        if(!found) ans=false;
        }
      }
    }
cout<<(ans ？ "Yes":"No")<<endl;
  return 0;
}  
        


Compiler output:
a.cc: In function 'int main()':
a.cc:33:20: error: expected ';' before '}' token
   33 |   scanf("%s",&s[i])}
      |                    ^
      |                    ;
a.cc:50:11: error: expected ')' before '\U0000ff1f'
   50 | cout<<(ans ？ "Yes":"No")<<endl;
      |       ~   ^~~
      |           )
Language: C

include <stdio.h>
 
int isPrime(int x){
	if(x==1){
		return -1;
	}
	int i;
	for(i=2;i<x;i++){
		if(x%i==0){
			return -1;
		}
	}
	return 1;
}
 
int main(void){
	int N;
	scanf("%d",&N);
 
	int i;
	int ans[55];
	printf("31 ");
	for(i=31; i<=55555; i+=30){
		if(isPrime(i) == 1){
			if(i != 31)	printf("%d ",i);
			N--;
			if(N==0)	break;
		}
	}
	
	
	return 0;}

Compiler output:
main.c:1:9: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
    1 | include <stdio.h>
      |         ^
main.c: In function 'main':
main.c:18:9: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
   18 |         scanf("%d",&N);
      |         ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | include <stdio.h>
main.c:18:9: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
   18 |         scanf("%d",&N);
      |         ^~~~~
main.c:18:9: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:22:9: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
   22 |         printf("31 ");
      |         ^~~~~~
main.c:22:9: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:22:9: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:22:9: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:24:20: error: implicit declaration of function 'isPrime' [-Wimplicit-function-declaration]
   24 |                 if(isPrime(i) == 1){
      |                    ^~~~~~~
Language: C++

#include "bits/stdc++.h"
using namespace std;
int main() {
  int a, b;
  cin >> a >> b;
  if (a <= b)
  cout << ans << endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:11: error: 'ans' was not declared in this scope; did you mean 'abs'?
    7 |   cout << ans << endl;
      |           ^~~
      |           abs
Language: C++

/*
	Copyright: razouq (c)
	Author: Anass BENDARSI
	Date: 05/05/2018 14:31:12
	flamers will **** you
*/
#include<bits/stdc++.h>
//#include<flamers.h>
#define ll long long
#define ull unsigned long long
#define F first
#define S second
#define PB push_back
#define MP make_pair
#define POB pop_back
#define dist(a, b) sqrt(a*a + b*b)
using namespace std;
typedef vector<int> vi;
typedef pair<int, int> pi;
typedef vector<pair<int, int>> vipi;
bool compare(pi p1, pi p2){
	 if(1) return true;
	 return false;
}

int main(){
//	freopen("input.in", "r", stdin);
//	freopen("output.out", "w", stdout);
	ios::sync_with_stdio(0);
	cin.tie();
	ll a, b, c, k;
	cin>>a>>b>>c>>k;
	ll d = max(a, max(b, c));
	ll sum = a + b + c - d;
	d *= pow(2, n);
	cout<<sum + d<<endl;
	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:35:21: error: 'n' was not declared in this scope
   35 |         d *= pow(2, n);
      |                     ^
Language: C++

#include <iostream>
#include <cstdio>
#include <cmath>
#include <algorithm>
#include <string>
#include <map>
#include <numeric>
#include <bitset>
#include <vector>
#include <queue>

using namespace std;

typedef long long ll;
#define FOR(i,a,b)   for(ll i = (a); i < (b); i++ )
#define REP(i, n)    FOR(i,0,n)
typedef pair< ll, ll >   cp2;
typedef pair< ll, cp2 >   cp3;
#define fi first
#define se second
#define sec  se.fi
#define thr  se.se
const ll mod = 1000000007;
//              123456789

 
///////////////////////////////////////////////
//
//
///////////////////////////////////////////////

////////////////////////////////////////////////
////////////////////////////////////////////////

int a, b;
int c = 0;

void eratosthenes(){
	

int main(){
	cin>>a>>b;
	FOR( i, 1, a+1 ){
		FOR( j, 1, b+1 ){
			if( i == j ) c++;
		}
	}
	
	cout<<c<<endl;
}



Compiler output:
a.cc: In function 'void eratosthenes()':
a.cc:41:9: warning: empty parentheses were disambiguated as a function declaration [-Wvexing-parse]
   41 | int main(){
      |         ^~
a.cc:41:9: note: remove parentheses to default-initialize a variable
   41 | int main(){
      |         ^~
      |         --
a.cc:41:9: note: or replace parentheses with braces to value-initialize a variable
a.cc:41:11: error: a function-definition is not allowed here before '{' token
   41 | int main(){
      |           ^
a.cc:50:2: error: expected '}' at end of input
   50 | }
      |  ^
a.cc:38:20: note: to match this '{'
   38 | void eratosthenes(){
      |                    ^
Language: C++

#include <iostream>
#include <stdio.h>
//#include <string.h>
//#include <vector>
//#include <cassert>
//#include <algorithm>
//#include <functional>
 
using namespace std;
 
int main() {
	int a, b, c,E, F;
	int K;
	cin >> a >> b >> c;
	cin >> K;
	if (a == b && b == c) {
		for (int i = 0; i < K; i++) {
			a *= 2;
		}	
		cout << a + b + c<< endl;	
	} else {
		int ans = max({a, b, c});
		if (ans == a) {
			E = b;
			F = c;
		} else if (ans == b) {
			E = a;
			F = c;
		} else if (ans == c) {
			E = a;
			F = b;
		}
		for (int j = 0; j < K; j++) {
			ans = ans * 2;
		}
		cout << ans + E + F << endl;
	}
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:22:30: error: no matching function for call to 'max(<brace-enclosed initializer list>)'
   22 |                 int ans = max({a, b, c});
      |                           ~~~^~~~~~~~~~~
In file included from /usr/include/c++/14/string:51,
                 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,
                 from /usr/include/c++/14/ostream:40,
                 from /usr/include/c++/14/iostream:41,
                 from a.cc:1:
/usr/include/c++/14/bits/stl_algobase.h:257:5: note: candidate: 'template<class _Tp> constexpr const _Tp& std::max(const _Tp&, const _Tp&)'
  257 |     max(const _Tp& __a, const _Tp& __b)
      |     ^~~
/usr/include/c++/14/bits/stl_algobase.h:257:5: note:   candidate expects 2 arguments, 1 provided
/usr/include/c++/14/bits/stl_algobase.h:303:5: note: candidate: 'template<class _Tp, class _Compare> constexpr const _Tp& std::max(const _Tp&, const _Tp&, _Compare)'
  303 |     max(const _Tp& __a, const _Tp& __b, _Compare __comp)
      |     ^~~
/usr/include/c++/14/bits/stl_algobase.h:303:5: note:   candidate expects 3 arguments, 1 provided
Language: C++

#include <bits/stdc++.h>
#include <vector>
using namespace std;
 
int main(void){
    int H, W, a;
    a = 1;
    cin >> H >> W;
    vector<vector<int> > b;
    b = vector<vector<int> >(W, vector<int>(H, 0));
	for(int i=0; i<W; i++){
    	for(int j=0; j<H; j++){
        	char x;
            cin >> x;
            if(x == ("#").at(0)){
            	b[i][j] = 1;
            }else if(x == (".").at(0)){
            	b[i][j] = 0;
            }
        }
    }
    for(int i=0; i<W; i++){
        for(int j=0; j<H; j++){
            if(b[i][j] == 1){
                if(i == 0 && j == 0 && b[i+1][j] == 0 && b[i][j+1] == 0){
                    a = 0;
                    break;
                }else if(i == W-1 && j == H-1 && b[i-1][j] == 0 && b[i][j+1] == 0){
                    a = 0;
                    break;
                }else if(i == 0 && j == H-1 && b[i+1][j] == 0 && b[i][j-1] == 0){
                    a = 0;
                    break;
                }else if(i == W-1 && j == 0 && b[i][j+1] == 0 && b[i-1][j] == 0){
                    a = 0;
                    break;
                }else if(i == 0 && b[i][j+1] == 0 && b[i][j-1] == 0 && b[i+1][j] == 0){
                    a = 0;
                    break;
                }else if(j == 0 && b[i][j+1] == 0 && b[i-1][j] == 0 && b[i+1][j] == 0){
                    a = 0;
                    break;
                }else if(i == W-1 && b[i][j-1] == 0 && b[i-1][j] == 0 && b[i][j+1] == 0){
                    a = 0;
                    break;
                }else if(j == H-1 && b[i][j-1] == 0 && b[i-1][j] == 0 && b[i+1][j] == 0){
                    a = 0;
                    break;
                }else if(b[i][j+1] == 0 && b[i][j-1] == 0 && b[i-1][j] == 0 && b[i+1][j] == 0){
                    a = 0;
                    break;
                }
            }
        }
    }
    if(a == 0){
        cout << "No";
    }else if(a == 1){
        cout << "Yes";
    }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:15:27: error: request for member 'at' in '("#")', which is of non-class type 'const char [2]'
   15 |             if(x == ("#").at(0)){
      |                           ^~
a.cc:17:33: error: request for member 'at' in '(".")', which is of non-class type 'const char [2]'
   17 |             }else if(x == (".").at(0)){
      |                                 ^~
Language: C++

#include <bits/stdc++.h>
#include <vector>
using namespace std;
 
int main(void){
    int H, W, a;
    a = 1;
    cin >> H >> W;
    vector<vector<int> > b;
    b = vector<vector<int> >(W, vector<int>(H, 0));
	for(int i=0; i<W; i++){
    	for(int j=0; j<H; j++){
        	char x;
            cin >> x;
            if(x == ("#").at(0){
            	b[i][j] = 1;
            }else if(x == (".").at(0){
            	b[i][j] = 0;
            }
        }
    }
    for(int i=0; i<W; i++){
        for(int j=0; j<H; j++){
            if(b[i][j] == 1){
                if(i == 0 && j == 0 && b[i+1][j] == 0 && b[i][j+1] == 0){
                    a = 0;
                    break;
                }else if(i == W-1 && j == H-1 && b[i-1][j] == 0 && b[i][j+1] == 0){
                    a = 0;
                    break;
                }else if(i == 0 && j == H-1 && b[i+1][j] == 0 && b[i][j-1] == 0){
                    a = 0;
                    break;
                }else if(i == W-1 && j == 0 && b[i][j+1] == 0 && b[i-1][j] == 0){
                    a = 0;
                    break;
                }else if(i == 0 && b[i][j+1] == 0 && b[i][j-1] == 0 && b[i+1][j] == 0){
                    a = 0;
                    break;
                }else if(j == 0 && b[i][j+1] == 0 && b[i-1][j] == 0 && b[i+1][j] == 0){
                    a = 0;
                    break;
                }else if(i == W-1 && b[i][j-1] == 0 && b[i-1][j] == 0 && b[i][j+1] == 0){
                    a = 0;
                    break;
                }else if(j == H-1 && b[i][j-1] == 0 && b[i-1][j] == 0 && b[i+1][j] == 0){
                    a = 0;
                    break;
                }else if(b[i][j+1] == 0 && b[i][j-1] == 0 && b[i-1][j] == 0 && b[i+1][j] == 0){
                    a = 0;
                    break;
                }
            }
        }
    }
    if(a == 0){
        cout << "No";
    }else if(a == 1){
        cout << "Yes";
    }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:15:27: error: request for member 'at' in '("#")', which is of non-class type 'const char [2]'
   15 |             if(x == ("#").at(0){
      |                           ^~
a.cc:15:32: error: expected ')' before '{' token
   15 |             if(x == ("#").at(0){
      |               ~                ^
      |                                )
a.cc:20:9: error: expected primary-expression before '}' token
   20 |         }
      |         ^
Language: C++

#include<iostream>
#include<math.h>
using namespace std;
int main(void)
{
  int A;
  int B;
  int C;
  int K;
  int max;
  cin >> A >> B >> C;
  cin >> K;
  max = A;
  if(max<=B){
    max = B;
  }
  if(max<=C){
    max = C;
  }
  double x = 2;
  double y = 0;
  double a = K;
  y = pow(x,a);
  int X;
  X = max*=y;
  if(max!=A){
      X+=A;
    }
  if(max!=B || max=A){
    X+=B;
  }
  if(max!=C || max=A || max=B){
    X+=C;
  }
  cout << X;
  getchar();
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:29:13: error: lvalue required as left operand of assignment
   29 |   if(max!=B || max=A){
      |      ~~~~~~~^~~~~~
a.cc:32:22: error: lvalue required as left operand of assignment
   32 |   if(max!=C || max=A || max=B){
      |                    ~~^~~~~~
Language: C++

#include <bits/stdc++.h>
#include <vector>
using namespace std;
 
int main(void){
    int H, W, a;
    a = 1;
    cin >> H >> W;
    vector<vector<int> > b;
    b = vector<vector<int> >(W, vector<int>(H, 0));
	for(int i=0; i<W; i++){
    	for(int j=0; j<H; j++){
        	char x;
            cin >> x;
            if(x == char("#")){
            	b[i][j] = 1;
            }else if(x == char(".")){
            	b[i][j] = 0;
            }
        }
    }
    for(int i=0; i<W; i++){
        for(int j=0; j<H; j++){
            if(b[i][j] == 1){
                if(i == 0 && j == 0 && b[i+1][j] == 0 && b[i][j+1] == 0){
                    a = 0;
                    break;
                }else if(i == W-1 && j == H-1 && b[i-1][j] == 0 && b[i][j+1] == 0){
                    a = 0;
                    break;
                }else if(i == 0 && j == H-1 && b[i+1][j] == 0 && b[i][j-1] == 0){
                    a = 0;
                    break;
                }else if(i == W-1 && j == 0 && b[i][j+1] == 0 && b[i-1][j] == 0){
                    a = 0;
                    break;
                }else if(i == 0 && b[i][j+1] == 0 && b[i][j-1] == 0 && b[i+1][j] == 0){
                    a = 0;
                    break;
                }else if(j == 0 && b[i][j+1] == 0 && b[i-1][j] == 0 && b[i+1][j] == 0){
                    a = 0;
                    break;
                }else if(i == W-1 && b[i][j-1] == 0 && b[i-1][j] == 0 && b[i][j+1] == 0){
                    a = 0;
                    break;
                }else if(j == H-1 && b[i][j-1] == 0 && b[i-1][j] == 0 && b[i+1][j] == 0){
                    a = 0;
                    break;
                }else if(b[i][j+1] == 0 && b[i][j-1] == 0 && b[i-1][j] == 0 && b[i+1][j] == 0){
                    a = 0;
                    break;
                }
            }
        }
    }
    if(a == 0){
        cout << "No";
    }else if(a == 1){
        cout << "Yes";
    }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:15:21: error: cast from 'const char*' to 'char' loses precision [-fpermissive]
   15 |             if(x == char("#")){
      |                     ^~~~~~~~~
a.cc:17:27: error: cast from 'const char*' to 'char' loses precision [-fpermissive]
   17 |             }else if(x == char(".")){
      |                           ^~~~~~~~~
Language: C++

#include <bits/stdc++.h>
#include <vector>
using namespace std;
 
int main(void){
    int H, W, a;
    a = 1;
    cin >> H >> W;
    vector<vector<int> > b;
    b = vector<vector<int> >(W, vector<int>(H, 0));
	for(int i=0; i<W; i++){
    	for(int j=0; j<H; j++){
        	char x;
            cin >> x;
            if(x == "#"){
            	b[i][j] = 1;
            }else if(x == "."){
            	b[i][j] = 0;
            }
        }
    }
    for(int i=0; i<W; i++){
        for(int j=0; j<H; j++){
            if(b[i][j] == 1){
                if(i == 0 && j == 0 && b[i+1][j] == 0 && b[i][j+1] == 0){
                    a = 0;
                    break;
                }else if(i == W-1 && j == H-1 && b[i-1][j] == 0 && b[i][j+1] == 0){
                    a = 0;
                    break;
                }else if(i == 0 && j == H-1 && b[i+1][j] == 0 && b[i][j-1] == 0){
                    a = 0;
                    break;
                }else if(i == W-1 && j == 0 && b[i][j+1] == 0 && b[i-1][j] == 0){
                    a = 0;
                    break;
                }else if(i == 0 && b[i][j+1] == 0 && b[i][j-1] == 0 && b[i+1][j] == 0){
                    a = 0;
                    break;
                }else if(j == 0 && b[i][j+1] == 0 && b[i-1][j] == 0 && b[i+1][j] == 0){
                    a = 0;
                    break;
                }else if(i == W-1 && b[i][j-1] == 0 && b[i-1][j] == 0 && b[i][j+1] == 0){
                    a = 0;
                    break;
                }else if(j == H-1 && b[i][j-1] == 0 && b[i-1][j] == 0 && b[i+1][j] == 0){
                    a = 0;
                    break;
                }else if(b[i][j+1] == 0 && b[i][j-1] == 0 && b[i-1][j] == 0 && b[i+1][j] = 0){
                    a = 0;
                    break;
                }
            }
        }
    }
    if(a == 0){
        cout << "No";
    }else if(a == 1){
        cout << "Yes";
    }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:15:18: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   15 |             if(x == "#"){
      |                ~~^~~~~~
a.cc:17:24: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   17 |             }else if(x == "."){
      |                      ~~^~~~~~
a.cc:49:77: error: lvalue required as left operand of assignment
   49 |                 }else if(b[i][j+1] == 0 && b[i][j-1] == 0 && b[i-1][j] == 0 && b[i+1][j] = 0){
Language: C++

#include <bits/stdc++.h>
#include <vector>
using namespace std;
 
int main(void){
    int H, W, a;
    a = 1;
    cin >> H >> W;
    vector<vector<int>> b;
    b = vector<vector<int>>(W, vector<int>(H, 0));
	for(int i=0; i<W; i++){
    	for(int j=0; j<H; j++){
        	char x;
            cin >> x;
            if(x == "#"){
            	b[i][j] = 1;
            }else if(x == "."){
            	b[i][j] = 0;
            }
        }
    }
    for(int i=0; i<W; i++){
        for(int j=0; j<H; j++){
            if(b[i][j] == 1){
                if(i == 0 && j == 0 && b[i+1][j] == 0 && b[i][j+1] == 0){
                    a = 0;
                    break;
                }else if(i == W-1 && j == H-1 && b[i-1][j] == 0 && b[i][j+1] == 0){
                    a = 0;
                    break;
                }else if(i == 0 && j == H-1 && b[i+1][j] == 0 && b[i][j-1] == 0){
                    a = 0;
                    break;
                }else if(i == W-1 && j == 0 && b[i][j+1] == 0 && b[i-1][j] == 0){
                    a = 0;
                    break;
                }else if(i == 0 && b[i][j+1] == 0 && b[i][j-1] == 0 && b[i+1][j] == 0){
                    a = 0;
                    break;
                }else if(j == 0 && b[i][j+1] == 0 && b[i-1][j] == 0 && b[i+1][j] == 0){
                    a = 0;
                    break;
                }else if(i == W-1 && b[i][j-1] == 0 && b[i-1][j] == 0 && b[i][j+1] == 0){
                    a = 0;
                    break;
                }else if(j == H-1 && b[i][j-1] == 0 && b[i-1][j] == 0 && b[i+1][j] == 0){
                    a = 0;
                    break;
                }else if(b[i][j+1] == 0 && b[i][j-1] == 0 && b[i-1][j] == 0 && b[i+1][j] == 0){
                    a = 0;
                    break;
                }
            }
        }
    }
    if(a == 0){
        cout << "No";
    }else if(a == 1){
        cout << "Yes";
    }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:15:18: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   15 |             if(x == "#"){
      |                ~~^~~~~~
a.cc:17:24: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   17 |             }else if(x == "."){
      |                      ~~^~~~~~
Language: C

#include <stdio.h>

int main()
{
    int a,b;
    
    scanf("%d %d",&a,&b);

    if(a<==b){
        printf("%d\n",a);
    }
    else if(a<b){
        printf("%d\n",b-1);
    }
    else{
        printf("%d\n",b);
    }
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:9:11: error: expected expression before '=' token
    9 |     if(a<==b){
      |           ^
Language: C++

#include<iostream>
#include<cstdio>
#include<math.h>
#include<memory.h>
#include<cstring>
using namespace std;

int main()
{
    int a,b;
    scanf("%d%d",&a,&b);
    getchar();
    char c;
    char s[51][51];
    memset(s,0,sizeof(s));
    for(int i=0;i<a;i++){
        gets(s[i]);
    }
    bool flag;
     for(int i=0;i<a;i++)
    {
        for(int j=0;j<b;j++)
        {

            if(s[i][j]=='#')
            {
                flag=false;
                if(s[i-1][j]=='#'||s[i+1][j]=='#'||s[i][j-1]=='#'||s[i][j+1]=='#')
                    flag=true;
                else
                    break;
            }
        }

    }
    if(flag==false)
        cout<<"No"<<endl;
    else{
        cout<<"Yes"<<endl;
    }
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:17:9: error: 'gets' was not declared in this scope; did you mean 'getw'?
   17 |         gets(s[i]);
      |         ^~~~
      |         getw
Language: C++

#include<iostream>
#include<cstdio>
#include<math.h>
#include<memory.h>
#include<string.h>
using namespace std;

int main()
{
    int a,b;
    scanf("%d%d",&a,&b);
    getchar();
    char c;
    char s[51][51];
    memset(s,0,sizeof(s));
    for(int i=0;i<a;i++){
        gets(s[i]);
    }
    bool flag;
     for(int i=0;i<a;i++)
    {
        for(int j=0;j<b;j++)
        {

            if(s[i][j]=='#')
            {
                flag=false;
                if(s[i-1][j]=='#'||s[i+1][j]=='#'||s[i][j-1]=='#'||s[i][j+1]=='#')
                    flag=true;
                else
                    break;
            }
        }

    }
    if(flag==false)
        cout<<"No"<<endl;
    else{
        cout<<"Yes"<<endl;
    }
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:17:9: error: 'gets' was not declared in this scope; did you mean 'getw'?
   17 |         gets(s[i]);
      |         ^~~~
      |         getw
Language: C++

                       if(a[i][j]==0){
                                N=1;
                                break;
                        }
                        if(i==H-1&&j==W-1)cout<<"Yes"<<endl;
                }
        }
        if(N==1)cout<<"No"<<endl;
        return 0;
}



Compiler output:
a.cc:1:24: error: expected unqualified-id before 'if'
    1 |                        if(a[i][j]==0){
      |                        ^~
a.cc:5:25: error: expected unqualified-id before 'if'
    5 |                         if(i==H-1&&j==W-1)cout<<"Yes"<<endl;
      |                         ^~
a.cc:6:17: error: expected declaration before '}' token
    6 |                 }
      |                 ^
a.cc:7:9: error: expected declaration before '}' token
    7 |         }
      |         ^
a.cc:8:9: error: expected unqualified-id before 'if'
    8 |         if(N==1)cout<<"No"<<endl;
      |         ^~
a.cc:9:9: error: expected unqualified-id before 'return'
    9 |         return 0;
      |         ^~~~~~
a.cc:10:1: error: expected declaration before '}' token
   10 | }
      | ^
Language: C

#include <stdio.h>
 
int main(){
  int a, b;
  fscanf(stdin,"%d,%d",&a, &b);
  if(b<12){
    printf("%d\n",a>=b?a:b);
  }else{
    printf("%d\n",a);
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:11:1: error: expected declaration or statement at end of input
   11 | }
      | ^
Language: C

#include <stdio.h>
 
int main(){
  int a, b;
  scanf("%d,%d",&a, &b);
  if(b<12){
    printf("%d\n",a>=b?a:b);
  }else{
    printf("%d\n",a);
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:11:1: error: expected declaration or statement at end of input
   11 | }
      | ^
Language: C

#include <stdio.h>

int main(){
  int a, b;
  scanf("%d %d",&a, &b);
  if(b<12){
    printf("%d\n",a>=b?a:b);
  }else{
    printf("%d\n",a);
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:11:1: error: expected declaration or statement at end of input
   11 | }
      | ^
Language: C++

#include <iostream>

using namspace std;

int main(void){

  int A,B;
  cin >> A >> B;
  if(A <= B){
    cout << A << endl;
  }else{
    cout << A - 1 << endl;
  }
  return 0;
}

Compiler output:
a.cc:3:7: error: expected nested-name-specifier before 'namspace'
    3 | using namspace std;
      |       ^~~~~~~~
a.cc: In function 'int main()':
a.cc:8:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    8 |   cin >> A >> B;
      |   ^~~
      |   std::cin
In file included 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:10:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   10 |     cout << A << 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:10:18: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   10 |     cout << A << endl;
      |                  ^~~~
      |                  std::endl
In file included from /usr/include/c++/14/iostream:41:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:12:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   12 |     cout << A - 1 << 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:12:22: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   12 |     cout << A - 1 << endl;
      |                      ^~~~
      |                      std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main (){
int a,b;
scanf("%d" "%d",&a,&b)
if(a<=b){
	cout<<a;
}
else if(a>12&&b>12){
	cout<<'0';
}
else{
	cout<<b;
}
return 0;
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:23: error: expected ';' before 'if'
    5 | scanf("%d" "%d",&a,&b)
      |                       ^
      |                       ;
    6 | if(a<=b){
      | ~~                     
a.cc:9:1: error: 'else' without a previous 'if'
    9 | else if(a>12&&b>12){
      | ^~~~
Language: C++

# coding: utf-8
# Your code here!
a,b=list(map(int,input().split()))

if a <= b:
    print(a)
else:
    print(a-1)


Compiler output:
a.cc:1:3: error: invalid preprocessing directive #coding
    1 | # coding: utf-8
      |   ^~~~~~
a.cc:2:3: error: invalid preprocessing directive #Your
    2 | # Your code here!
      |   ^~~~
a.cc:3:1: error: 'a' does not name a type
    3 | a,b=list(map(int,input().split()))
      | ^
Language: C++

#include<cstdio>
using namespace std;
int main(){
    int mon[13][31];
    int sum=0;
    for(int i=1;i<=12;i++)
        for(int j=1;j<=31;j++)
        {
            if((i<=7&&i%2==0)&&j==31)
                break;
            if(i==2&&j==29)
                break;
            if(i>=8&&i%2==1&&j==31)
                break;
            if(i==j)
                sum++;
            mon[i][j]=sum;
        }
    int a,b;
    scanf("%d%d",&a,&b)
    {
        printf("%d\n",mon[a][b]);
    }
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:20:24: error: expected ';' before '{' token
   20 |     scanf("%d%d",&a,&b)
      |                        ^
      |                        ;
   21 |     {
      |     ~
Language: Java

import java.util.Scanner;

public class Takahashi {
    public static void main(String[] args) {
        int a, b, count;
        count = 0;
        Scanner sc = new Scanner(System.in);
        a = sc.nextInt();
        b = sc.nextInt();
        for (int i = 1; i <= a; i++) {
            for (int j = 1; j <= 31; j++) {
                if (a == b) { 
                    if (i == j) {
                        count++;
                    }
                } else if (a > b) {
                    if (i < a) {
                        if (i == j) count++;
                    } 
                } else { 
                    if (i == j) count++;
                }
            }
        }
        System.out.println(count);
    }
}


Compiler output:
Main.java:3: error: class Takahashi is public, should be declared in a file named Takahashi.java
public class Takahashi {
       ^
1 error
Language: C++


fn main(){
	let mut s = String::new();
	std::io::stdin().read_line(&mut s).unwrap();
	let vec: Vec<&str> = s.trim().split(' ').collect();
	let nm: i32 = vec[0].parse().unwrap();
	let nd: i32 = vec[1].parse().unwrap();
	let mut c = 0;
// 2, 4, 6, 9, 11
	for m in 1..((nm + 1) as usize) {
		for d in 1..((nd + 1)as usize) {
			if m == 2 || m == 4 || m == 6 || m == 9 || m == 11 {
				if d == 31 {
					break;
				}
				if d == 30 && m == 2 {
					break;
				}
			}
			if m == d {
				c += 1;
			}
		}
	}
	println!("{}", c);
}

Compiler output:
a.cc:10:18: error: too many decimal points in number
   10 |         for m in 1..((nm + 1) as usize) {
      |                  ^~~
a.cc:11:26: error: too many decimal points in number
   11 |                 for d in 1..((nd + 1)as usize) {
      |                          ^~~
a.cc:2:1: error: 'fn' does not name a type
    2 | fn main(){
      | ^~
Language: C

#include<stdio.h>
int main(){
   int a,b,c;
   scanf("%d %d",&a,&b);
   if(a＜＝b)
      c=a;
   else
      c=a-- ;
   printf("%d\n",c);
   return 0;
}



Compiler output:
main.c: In function 'main':
main.c:5:7: error: 'a\U0000ff1c\U0000ff1db' undeclared (first use in this function)
    5 |    if(a＜＝b)
      |       ^~~~~~
main.c:5:7: note: each undeclared identifier is reported only once for each function it appears in
Language: Java

public class Main {

    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        int a = in.nextInt();
        int b = in.nextInt();
        System.out.println(Math.min(a,b));
    }

}

Compiler output:
Main.java:4: error: cannot find symbol
        Scanner in = new Scanner(System.in);
        ^
  symbol:   class Scanner
  location: class Main
Main.java:4: error: cannot find symbol
        Scanner in = new Scanner(System.in);
                         ^
  symbol:   class Scanner
  location: class Main
2 errors
Language: C++


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

//int AtCoderABC096A( int argc, char *argv[] )
int main( int argc, char *argv[] )
{
int a;
int b;

	:sync_with_stdio( false );
	cin.tie( 0 );

	cin >> a;
	cin >> b;
// 2018 年 1 月 1 日から 2018 年 a 月 b 日まで

	if( a <= b )
		cout << a << endl;
	else
		cout << a - 1 << endl;

	return 0;
}

Compiler output:
a.cc: In function 'int main(int, char**)':
a.cc:11:9: error: expected primary-expression before ':' token
   11 |         :sync_with_stdio( false );
      |         ^
Language: C

#include<iostream>
using namespace std;

int main()
{
	int a, b;
	scanf("%d%d", &a, &b);
	if (b < a)
		printf("%d", a - 1);
	else
		printf("%d", a);
	printf("\n");
	return 0;
}

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

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

	:sync_with_stdio( false );
	cin.tie( 0 );

	cin >> a;
	cin >> b;
// 2018 年 1 月 1 日から 2018 年 a 月 b 日まで

	if( a <= b )
		cout << a << endl;
	else
		cout << a - 1 << endl;

	return 0;
}




Compiler output:
a.cc: In function 'int main(int, char**)':
a.cc:6:9: error: expected primary-expression before ':' token
    6 |         :sync_with_stdio( false );
      |         ^
a.cc:7:9: error: 'cin' was not declared in this scope
    7 |         cin.tie( 0 );
      |         ^~~
a.cc:14:17: error: 'cout' was not declared in this scope
   14 |                 cout << a << endl;
      |                 ^~~~
a.cc:14:30: error: 'endl' was not declared in this scope
   14 |                 cout << a << endl;
      |                              ^~~~
a.cc:16:17: error: 'cout' was not declared in this scope
   16 |                 cout << a - 1 << endl;
      |                 ^~~~
a.cc:16:34: error: 'endl' was not declared in this scope
   16 |                 cout << a - 1 << endl;
      |                                  ^~~~
Language: C

#include<stdio.h>
int main(){
   int a,b,c;
   scanf("%d %d",&a,&b);
   if(a＜＝b)
      c=a;
   else
      c=a-1;
   printf("%d\n",c);
   return 0;
}



Compiler output:
main.c: In function 'main':
main.c:5:7: error: 'a\U0000ff1c\U0000ff1db' undeclared (first use in this function)
    5 |    if(a＜＝b)
      |       ^~~~~~
main.c:5:7: note: each undeclared identifier is reported only once for each function it appears in
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main()
{
	int a,b,n;
	scanf("%d %d",&a,&b);
	n=a;
	if(aMb);
	n-=1;
	printf("%d",n);
}



Compiler output:
a.cc: In function 'int main()':
a.cc:8:12: error: 'aMb' was not declared in this scope
    8 |         if(aMb);
      |            ^~~
Language: C++

// ABC088D
#include <iostream>
#include <vector>
#include <string>
#include <algorithm>
#include <cstdio>
#include <cmath>
#include <map>
#include <functional>
#include <set>
#include <iterator>
#include <queue>

using namespace std;
typedef long long ll;
typedef pair<ll, ll> P;

int a, b;

int main() {
   cin >> a >> b;
   printf("%d", (b >= a) : a : a-1);
}

Compiler output:
a.cc: In function 'int main()':
a.cc:22:25: error: expected ')' before ':' token
   22 |    printf("%d", (b >= a) : a : a-1);
      |          ~              ^~
      |                         )
Language: C++

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


int main(){
	
	int a,b;
	cin >> a >> b;
	if (a==b){
		cout << a;
	}else if(a=<b){
		cout << a ;

	}else{
		ans = a - 1;
		cout << ans;
	}

	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:20: error: expected primary-expression before '<' token
   11 |         }else if(a=<b){
      |                    ^
a.cc:15:17: error: 'ans' was not declared in this scope; did you mean 'abs'?
   15 |                 ans = a - 1;
      |                 ^~~
      |                 abs
Language: C

#include<stdio.h>
int main(){
   int a,b,c;
   scanf("%d %d",&a,&b);
   if(a＜＝b){
      c=a}
   else{
      c=a-1}
   printf("%d\n",c);
   return 0;
}



Compiler output:
main.c: In function 'main':
main.c:5:7: error: 'a\U0000ff1c\U0000ff1db' undeclared (first use in this function)
    5 |    if(a＜＝b){
      |       ^~~~~~
main.c:5:7: note: each undeclared identifier is reported only once for each function it appears in
main.c:6:10: error: expected ';' before '}' token
    6 |       c=a}
      |          ^
      |          ;
main.c:8:12: error: expected ';' before '}' token
    8 |       c=a-1}
      |            ^
      |            ;
Language: C++

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


int main(){
	
	int a,b;
	cin >> a >> b;
	if (A==b){
		printf("%s\n",a );
	}else if(a=<b){
		printf("%s\n",a );

	}else{
		ans = a - 1;
		printf("%s\n",ans );
	}

	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:13: error: 'A' was not declared in this scope
    9 |         if (A==b){
      |             ^
a.cc:11:20: error: expected primary-expression before '<' token
   11 |         }else if(a=<b){
      |                    ^
a.cc:15:17: error: 'ans' was not declared in this scope; did you mean 'abs'?
   15 |                 ans = a - 1;
      |                 ^~~
      |                 abs
Language: Java

import java.util.*;

public class HelloWorld{

    public static void main(String[] args){
        
        /*
        InputStreamReader is = new InputStreamReader(System.in);       
        BufferedReader br = new BufferedReader(is);     
        */
        Scanner scan = new Scanner(System.in);


        int a,b;
        a = Integer.parseInt(scan.next());   
        b = Integer.parseInt(scan.next());
        int ans;
        ans = a;
        
        if(a > b){
            ans--;
        }

        System.out.println(ans);
    }
}


Compiler output:
Main.java:3: error: class HelloWorld is public, should be declared in a file named HelloWorld.java
public class HelloWorld{
       ^
1 error
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main(){
	int a, b;
    cin >> a >> b;
    if (a <= b){
    	cout << a << endl;
    else if(a > b){
        cout << a - 1 << endl;
    }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:5: error: expected '}' before 'else'
    9 |     else if(a > b){
      |     ^~~~
a.cc:7:16: note: to match this '{'
    7 |     if (a <= b){
      |                ^
Language: C++

int main() {
    std::ios::sync_with_stdio(false);
    cin.tie(0);
    cout.tie(0);
    int a,b;
    cin>>a>>b;
    int ans=a;
    if (a>b) {
        ans--;
    }
    cout<<ans<<endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:2:10: error: 'std::ios' has not been declared
    2 |     std::ios::sync_with_stdio(false);
      |          ^~~
a.cc:3:5: error: 'cin' was not declared in this scope
    3 |     cin.tie(0);
      |     ^~~
a.cc:4:5: error: 'cout' was not declared in this scope
    4 |     cout.tie(0);
      |     ^~~~
a.cc:11:16: error: 'endl' was not declared in this scope
   11 |     cout<<ans<<endl;
      |                ^~~~
Language: C++

#include <bits\stdc++.h>

using namespace std;

int main()
{
	int a, b;
	cin >> a >> b;
	if (b >= a) {
		cout << a << endl;
	}
	else {
		cout << a - 1 << endl;
	}
    return 0;
}

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

#include<stdio.h>
int main(){
   int a,b,c;
   scanf("%d %d",&a,&b);
   if(a＜＝b){
      c=a;}
   else{
      c=a-1;}
   printf("%d",c);
   return 0;
}



Compiler output:
main.c: In function 'main':
main.c:5:7: error: 'a\U0000ff1c\U0000ff1db' undeclared (first use in this function)
    5 |    if(a＜＝b){
      |       ^~~~~~
main.c:5:7: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include<stdio.h>
int main(){
   int a,b,c;
   scanf("%d %d",&a,&b);
   if(a＜＝b){
      c=a}
   else{
      c=a-1}
   printf("%d",c);
   return 0;
}



Compiler output:
main.c: In function 'main':
main.c:5:7: error: 'a\U0000ff1c\U0000ff1db' undeclared (first use in this function)
    5 |    if(a＜＝b){
      |       ^~~~~~
main.c:5:7: note: each undeclared identifier is reported only once for each function it appears in
main.c:6:10: error: expected ';' before '}' token
    6 |       c=a}
      |          ^
      |          ;
main.c:8:12: error: expected ';' before '}' token
    8 |       c=a-1}
      |            ^
      |            ;
Language: C++

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

int main(){
	int a, b;
    cin >> a >> b;
    if (a <= b){
    	cout << a;
    else if(a > b){
        cout << a - 1;
    }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:5: error: expected '}' before 'else'
    9 |     else if(a > b){
      |     ^~~~
a.cc:7:16: note: to match this '{'
    7 |     if (a <= b){
      |                ^