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

public class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        int M = sc.nextInt();
        int many = 0;
        int check[] = new int[M];
        int ab[][] = new int[2][M];
        boolean ans = false;
        int k = 0;
        for (int i = 0; M > i; i++) {
            ab[0][i] = sc.nextInt();
            ab[1][i] = sc.nextInt();
            if (ab[0][i] == 1) {
                check[k] = ab[1][i];
                many++;
                k++;
            }
        }
        lave:
        for (int j = 0; M > j; j++) {
            if (ab[1][j] == N) {
                for (int l = 0; many >= l; l++) {
                    if (ab[0][j] == check[l]) {
                        ans = true;
                        break lave;
                    }
                }
            }
        }
    if (ans == true) {
            System.out.println("POSSIBLE");
    }

    
        else {
            System.out.println("IMPOSSIBLE");
    }

}
}

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

#include <iostream>
#include <algorithm>
#define r(i,n) for(int i=0; i<n; i++)
using namespace std;
int main(void){
  int n, m;
  int a, b;
  bool a1[200010];
  bool an[200010];
  cin >> n >> m;
  r(i,m){
    cin >> a >> b;
    if(a>b){
      swap(a,b);
    }
    if(a==1){
      a1[b]=true;
    }
    if(b==n){
      an[a]=true;
    }
  }
  if(flag){
    cout << "POSSIBLE" << endl;
  }

  r(i,n+1){
    if(a1[i]==true && an[i]==true){
      cout << "POSSIBLE" << endl;
      return 0;
    }
  }
  cout << "IMPOSSIBLE" << endl;
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:23:6: error: 'flag' was not declared in this scope
   23 |   if(flag){
      |      ^~~~
Language: C++

#include <algorithm>
#include <cmath>
#include <iostream>
#include <iomanip>
#include <map>
#include <string>
#include <vector>
#include <queue>
#include <stack>
#include <set>
#include <list>
#define INF 10000000000ll
#define MOD 1000000007ll
#define EPS 1e-10
#define REP(i,m) for(long long i=0; i<m; i++)
#define FOR(i,n,m) for(long long i=n; i<m; i++)
#define DUMP(a) for(long long dump=0; dump<(ll)a.size(); dump++) { cout<<a[dump]; if(dump!=(ll)a.size()-1) cout<<" "; else cout<<endl; }
#define ALL(v) v.begin(),v.end()
#define pb push_back
using namespace std;
typedef long long int ll;
typedef pair<ll, ll> P;
typedef long double ld;
using namespace std;

int main(){
	int n, m;
	cin >> n >> m;
	int first[n] = { };
	int second[n] = { };
	REP(i, m){
		int a, b;
		cin >> a >> b;
		if(a == 1) first[b-1] = 1;
		if(b == n) second[a-1] = 1;
	}
	int ans = 0;
	REP(i, n){
		if(first[i] == 1 && second[i] == 1) ans = 1
	}
	if(ans) cout << "POSSIBLE" << endl;
	else cout << "IMPOSSIBLE" << endl;
	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:39:60: error: expected ';' before '}' token
   39 |                 if(first[i] == 1 && second[i] == 1) ans = 1
      |                                                            ^
      |                                                            ;
   40 |         }
      |         ~
Language: C++

#include <algorithm>
#include <cmath>
#include <iostream>
#include <iomanip>
#include <map>
#include <string>
#include <vector>
#include <queue>
#include <stack>
#include <set>
#include <list>
#define INF 10000000000ll
#define MOD 1000000007ll
#define EPS 1e-10
#define REP(i,m) for(long long i=0; i<m; i++)
#define FOR(i,n,m) for(long long i=n; i<m; i++)
#define DUMP(a) for(long long dump=0; dump<(ll)a.size(); dump++) { cout<<a[dump]; if(dump!=(ll)a.size()-1) cout<<" "; else cout<<endl; }
#define ALL(v) v.begin(),v.end()
#define pb push_back
using namespace std;
typedef long long int ll;
typedef pair<ll, ll> P;
typedef long double ld;
using namespace std;

int main(){
	int n, m;
	cin >> n >> m;
	int first[n] = { };
	int second[n] = { );
	REP(i, m){
		int a, b;
		cin >> a >> b;
		if(a) first[b-1] = 1;
		if(b == n) second[a-1] = 1;
	}
	int ans = 0;
	REP(i, n){
		if(first[i] == 1 && second[i] == 1) ans = 1;
	}
	if(ans) cout << "POSSIBLE" << endl;
	else cout << "IMPOSSIBLE" << endl;
	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:30:27: error: expected primary-expression before ')' token
   30 |         int second[n] = { );
      |                           ^
a.cc:30:27: error: expected '}' before ')' token
   30 |         int second[n] = { );
      |                         ~ ^
Language: C++

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

#define fi first
#define se second
#define repl(i,a,b) for(int i=(int)(a);i<(int)(b);i++)
#define repr(i,a,b) for(int i=(int)(a-1);i>=b;i--)
#define rep(i,n) repl(i,0,n)
#define each(itr,v) for(auto itr:v)
#define pb(s) push_back(s)
#define all(x) (x).begin(),(x).end()
#define dbg(x) cout << #x" = " << x << endl
#define maxch(x,y) x=max(x,y)
#define minch(x,y) x=min(x,y)
#define uni(x) x.erase(unique(all(x)),x.end())
#define exist(x,y) (find(all(x),y)!=x.end())
#define bcnt(x) bitset<32>(x).count()

typedef long long ll;
typedef unsigned long long ull;
typedef pair<int, int> P;

#define INF INT_MAX/3

set<int> edge[2];

int main(){
    cin.sync_with_stdio(false);
    int n, m;
    cin >> n >> m;
    rep(i, m) {
        int a, b;
        cin >> a >> b;
        if (a == 1) edge[0].insert(b);
        else if (b == 1) edge[0].insert(a);
        if (a == n) edge[1].insert(b);
        else if (b == n) edge[1].insert(a);
    }

    if (edge[0].count(n)) {
        cout << "POSSIBLE" << endl;
    } else {
        bool ok = false;
        each(i, edge[0]) {
            ok |= edge[1].count(i);
            if (ok) break;
        }
        if (ok) cout << "POSSIBLE" << endl;
        else cout <, "IMPOSSIBLE" << endl;
    }
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:49:20: error: expected primary-expression before ',' token
   49 |         else cout <, "IMPOSSIBLE" << endl;
      |                    ^
a.cc:49:35: error: invalid operands of types 'const char [11]' and '<unresolved overloaded function type>' to binary 'operator<<'
   49 |         else cout <, "IMPOSSIBLE" << endl;
      |                      ~~~~~~~~~~~~~^~~~~~~
Language: C++

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

int main(){
  ll n, m;
  cin.tie(0);
  sync_with_stdio(false);
  cin >> n >> m;
  vector<vector<bool>> vv;
  vv = vector<vector<bool>>(m, vector<bool>(m, false));
  for(ll i=0;i<n;i++){
    ll a, b;
    cin >> a >> b;
    vv[a-1][b-1] = true;
  }
  if (m == 1){
    cout << "IMPOSSIBLE" << endl;
    return 0;
  }
  for(ll i=1;i<n;i++){
    if (vv[0][i] == true){
      if (vv[i][n-1] == true){
        cout << "POSSIBLE" << endl;
        return 0;
      }
    }
  }
  cout << "IMPOSSIBLE" << endl;
  return 0;
}

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

#include <iostream>
using namespace std;

int main(){
	int n,m,na,nb;
	cin >> n >> m;
	vector<bool> a(n,false),b(n,false);
	for(int i=0;i<m;i++){
		cin >> na >> nb;
		if(na == 1) a[nb] = true;
		else if (nb == n) b[na] = true;
	}

	bool flag = false;
	for(int i=1;i<n;i++){
		if(a[i] && b[i]){
			flag = true;
			break;
		}
	}

	if(flag == true) cout << "POSSIBLE";
	else cout << "IMPOSSIBLE";

	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:9: error: 'vector' was not declared in this scope
    7 |         vector<bool> a(n,false),b(n,false);
      |         ^~~~~~
a.cc:2:1: note: 'std::vector' is defined in header '<vector>'; this is probably fixable by adding '#include <vector>'
    1 | #include <iostream>
  +++ |+#include <vector>
    2 | using namespace std;
a.cc:7:16: error: expected primary-expression before 'bool'
    7 |         vector<bool> a(n,false),b(n,false);
      |                ^~~~
a.cc:10:29: error: 'a' was not declared in this scope
   10 |                 if(na == 1) a[nb] = true;
      |                             ^
a.cc:11:35: error: 'b' was not declared in this scope
   11 |                 else if (nb == n) b[na] = true;
      |                                   ^
a.cc:16:20: error: 'a' was not declared in this scope
   16 |                 if(a[i] && b[i]){
      |                    ^
a.cc:16:28: error: 'b' was not declared in this scope
   16 |                 if(a[i] && b[i]){
      |                            ^
Language: C++

#include <iostream>
using namespace std;

int main(){
	int n,m;
	cin >> n >> m;
	int ab[m][2];
	for(int i=0;i<m;i++) cin >> ab[i][0] >> ab[i][1];

	bool flag = false;
	for(int i=0;i<m;i++){
		if(ab[i][0] == 1){
			for(int j=0;j<m;j++){
				if(ab[j][0] == ab[i][1] && ab[j][1] == n){
					flag = true;
					break;
				}
			}
		}
	}

Compiler output:
a.cc: In function 'int main()':
a.cc:20:10: error: expected '}' at end of input
   20 |         }
      |          ^
a.cc:4:11: note: to match this '{'
    4 | int main(){
      |           ^
Language: C

#include <stdio.h>
int main （）
{
	int a [ 200001 ] = { 0 };
	int n ，m ，x ，y ，i ;
	scanf （“％d％d” ，＆n ，＆m ）;
	int flag = 0 ;
	for （i = 1 ; i <= m ; i ++）
	{
		scanf （“％d％d” ，＆x ，＆y ）;
		if（x == 1 && y ！= n ）
		{
			a [ y ] ++;
		}
		if（y == n && x ！= 1 ）
		{
			a [ x ] ++;
		}
		if （a [ x ] == 2 || a [ y ] == 2 ）
		{
			flag = 1 ;
		}
	}
	if （flag == 1 ）printf （“POSSIBLE \ n” ）;
	else printf （“IMPOSSIBLE \ n” ）;
	return 0 ; 
} 

Compiler output:
main.c:2:10: error: expected '=', ',', ';', 'asm' or '__attribute__' before '\U0000ff08\U0000ff09'
    2 | int main （）
      |          ^~~~
main.c:6:17: error: stray '\342' in program
    6 |         scanf <U+FF08><U+201C><U+FF05>d<U+FF05>d<U+201D> <U+FF0C><U+FF06>n <U+FF0C><U+FF06>m <U+FF09>;
      |                       ^~~~~~~~
main.c:6:24: error: stray '\342' in program
    6 |         scanf <U+FF08><U+201C><U+FF05>d<U+FF05>d<U+201D> <U+FF0C><U+FF06>n <U+FF0C><U+FF06>m <U+FF09>;
      |                                                 ^~~~~~~~
main.c:10:25: error: stray '\342' in program
   10 |                 scanf <U+FF08><U+201C><U+FF05>d<U+FF05>d<U+201D> <U+FF0C><U+FF06>x <U+FF0C><U+FF06>y <U+FF09>;
      |                               ^~~~~~~~
main.c:10:32: error: stray '\342' in program
   10 |                 scanf <U+FF08><U+201C><U+FF05>d<U+FF05>d<U+201D> <U+FF0C><U+FF06>x <U+FF0C><U+FF06>y <U+FF09>;
      |                                                         ^~~~~~~~
main.c:24:35: error: stray '\342' in program
   24 |         if <U+FF08>flag == 1 <U+FF09>printf <U+FF08><U+201C>POSSIBLE \ n<U+201D> <U+FF09>;
      |                                                     ^~~~~~~~
main.c:24:45: error: stray '\' in program
   24 |         if （flag == 1 ）printf （“POSSIBLE \ n” ）;
      |                                             ^
main.c:24:48: error: stray '\342' in program
   24 |         if <U+FF08>flag == 1 <U+FF09>printf <U+FF08><U+201C>POSSIBLE \ n<U+201D> <U+FF09>;
      |                                                                         ^~~~~~~~
main.c:25:23: error: stray '\342' in program
   25 |         else printf <U+FF08><U+201C>IMPOSSIBLE \ n<U+201D> <U+FF09>;
      |                             ^~~~~~~~
main.c:25:35: error: stray '\' in program
   25 |         else printf （“IMPOSSIBLE \ n” ）;
      |                                   ^
main.c:25:38: error: stray '\342' in program
   25 |         else printf <U+FF08><U+201C>IMPOSSIBLE \ n<U+201D> <U+FF09>;
      |                                                   ^~~~~~~~
Language: C

#include<iostream>
#include<cstdlib>
#include<cstdio>
#include<algorithm>
#include<string>
#include<cmath>
#include<cstring>
using namespace std;
int main()
{   
   int n,m,i,w=0,j,t,a[200002],b[200002];
   cin>>n>>m;
   for(i=0;i<m;i++) 
   {
   	cin>>a[i]>>b[i];
   }
   for(i=0;i<m;i++)
   {
   	if(w==1)break;
   	if(a[i]==1)
   	t=b[i];
   	for(j=0;j<m;j++)
   	{
   		if(a[j]==t&&b[j]==n)
   		
   		{
		cout<<"POSSIBLE"<<endl;
   		w=1;
   		break;
		}
   		
	 }
	 
	   
   }
   if(w!=1) 
   cout<<"IMPOSSIBLE"<<endl;
	return 0;
 } 

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

#include<Stdio.h>	
int a[300000],b[300000];
int main()
{
	int i,f,a1,b1,n,k;
	f=0;
	scanf("%d%d",&k,&n);
	for(i=1;i<=n;i++)
	{
		scanf("%d%d",&a1,&b1);
		if(a1==1)
			a[b1]=1;
		if(b1==k)
			b[a1]=1;

	}
	for(i=1;i<=n;i++)
		if(a[i]&&b[i])
			f=1;
	if(f==1) printf("POSSIBLE\n");
	else printf("IMPOSSIBLE\n");
}

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

#include<Stdio.h>	
int a[300000],b[300000];
int main()
{
	int i,f,a1,b1,n,k;
	f=0;
	scanf("%d%d",&k,&n);
	for(i=1;i<=n;i++)
	{
		scanf("%d%d",&a1,&b1);
		if(a1==1)
			a[b1]=1;
		if(b1==k)
			b[a1]=1;

	}
	for(i=1;i<=n;i++)
		if(a[i]&&b[i])
			f=1;
	if(f==1) printf("POSSBLE\n");
	else printf("IMPOSSBLE\n");
}

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

#include<Stdio.h>	
int a[300000],b[300000];
int main()
{
	int i,f,a1,b1,n,k;
	f=0;
	scanf("%d%d",&k,&n);
	for(i=1;i<=n;i++)
	{
		scanf("%d%d",&a1,&b1);
		if(a1==1)
			a[b1]=1;
		if(b1==k)
			b[a1]=1;

	}
	for(i=1;i<=n;i++)
		if(a[i]&&b[i])
			f=1;
	if(f==1) printf("POSSBLE\n");
	else printf("IMPOSSBLE\n");
}

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

#include<stdio.h>
int main()
{
    int n,m,vis[200001];
    while(scanf("%d%d",&n,&m)!=EOF)
    {
        int u,v;
        bool flag=false;
        for(int i=1;i<=n;i++)
            vis[i]=false;
        for(int i=1;i<=m;i++)
        {
            scanf("%d%d",&u,&v);
            if(flag) continue;
            if(u==1)
            {
                if(vis[v])
                {
                    flag=true;
                }
                vis[v]=true;
            }else if(v==n)
            {
                if(vis[u])
                {
                    flag=true;
                }
                vis[u]=true;
            }
        }
        if(flag) printf("POSSIBLE\n");
        else printf("IMPOSSIBLE\n");
        break;
    }
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:8:9: error: unknown type name 'bool'
    8 |         bool flag=false;
      |         ^~~~
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:8:19: error: 'false' undeclared (first use in this function)
    8 |         bool flag=false;
      |                   ^~~~~
main.c:8:19: note: 'false' is defined in header '<stdbool.h>'; this is probably fixable by adding '#include <stdbool.h>'
main.c:8:19: note: each undeclared identifier is reported only once for each function it appears in
main.c:19:26: error: 'true' undeclared (first use in this function)
   19 |                     flag=true;
      |                          ^~~~
main.c:19:26: note: 'true' is defined in header '<stdbool.h>'; this is probably fixable by adding '#include <stdbool.h>'
Language: C

#include<cstdio>
#include<iostream>
#include<algorithm>
#include<cstring>
int main()
{
	int i,j,k,l,n,m,a[200005],b[200005];
	scanf("%d%d",&n,&m);
	k=0;
	for(i=0;i<m;i++)
	{
		scanf("%d%d",&a[i],&b[i]);
		if(b[i]==n)
		k++;
	}
	if(k=0)
	printf("IMPOSSIBLE\n");
	else
	{
		l=0;
		for(i=0;i<m;i++)
		{
			if(b[i]==n)
			b[i]=0;
			else
			continue;
			for(j=0;j<m;j++)
			{
				if(a[j]==1&&b[j]==a[i])
				l++;
			}
		}
		if(l>0)
		printf("POSSIBLE\n");
		else
		printf("IMPOSSIBLE\n");
	}
	
}

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

#include<stdio.h>
int main()
{
	int n,m,a[200009],b[200009],i,j;
	scanf("%d%d",&n,&m);
	    for(i=1;i<=m;i++)
	    scanf("%d%d",&a[i],&b[i]);
	     	 for(i=1;i<=m;i++)
	     	   if(a[i]==1)
	     	   {
				
	     	   for(j=1;j<=m;j++)
	     	   if((b[j]==n)&&b[i]==a[j])
	     	   {
				printf("POSSIBLE\n");
	     	     return 0;
				 } 
	     	   else
				 printf("IMPOSSIBLE\n");
				}
	     	 } 
}

Compiler output:
main.c:22:1: error: expected identifier or '(' before '}' token
   22 | }
      | ^
Language: C

#include<stdio.h>
int main()
{
	int N,M;
	int a,j,o,i,b;
	int c[200000];
	int d[200000];
	while(scanf("%d %d",&N,&M)!=EOF)
	{
	int k=0;
	int f=0;
	for(i=0;i<M;i++)
	{
		scanf("%d %d",&a,&b);
		if(a==1||b==N)
		{
			c[k]=a;
			d[k]=b;
			k++;
		}
	}
	if(k)
	{
	for(j=0;j<k;j++)
	{
		for(o=0;o<k;o++)
		{
			if(d[j]==c[o])
			{
				f=true;
			}
		}
	}
}
	if(f)
	{
		printf("POSSIBLE\n");
	}
	else
	{
		printf("IMPOSSIBLE\n");
	}
}
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:30:35: error: 'true' undeclared (first use in this function)
   30 |                                 f=true;
      |                                   ^~~~
main.c:2:1: note: 'true' 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:30:35: note: each undeclared identifier is reported only once for each function it appears in
   30 |                                 f=true;
      |                                   ^~~~
Language: C

#include<iostream>
#include<cstdio>
#include<vector>
#include<map>
#include<set>
#include<queue>
#include<cmath>
#include<string>
#include<cstring>
#include<algorithm>
using namespace std;
typedef long long LL;
const LL INF=1e18;
const int MAXN=2e5+100;
const double eps=1e-10;
bool vis[MAXN];

int main()
{
	long long int n,t,o;
	int a[100],b[100];
	while(~scanf("%lld%lld",&n,&t))
	{
		o=0;
		for(int i=0;i<t;i++)
		{
			scanf("%lld %lld",&a[i],&b[i]);
			
		}
		for(int i=0;i<t;i++)
		{
			if(b[i]==n) 
			{
				for(int j=0;j<t;j++)
				{
					if(b[j]==a[i]&&a[j]==1)
				{
					
						o=1;
				}
				}
			} 
		}
		if(o!=1) printf("IMPOSSIBLE\n");
		else printf("POSSIBLE\n");
	}
	return 0;
 } 

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

#include<stdio.h>
#include<string.h>
typedef long long LL;
const LL INF=1e18;
const int MAXN=2e5+100;
const double eps=1e-10;
bool vis[MAXN];
int main()
{
	long long int n,t,o;
	int a[100],b[100];
	while(~scanf("%lld%lld",&n,&t))
	{
		o=0;
		for(int i=0;i<t;i++)
		{
			scanf("%lld %lld",&a[i],&b[i]);
			
		}
		for(int i=0;i<t;i++)
		{
			if(b[i]==n) 
			{
				for(int j=0;j<t;j++)
				{
					if(b[j]==a[i]&&a[j]==1)
				{
					
						o=1;
				}
				}
			} 
		}
		if(o!=1) printf("IMPOSSIBLE\n");
		else printf("POSSIBLE\n");
	}
	return 0;
 } 

Compiler output:
main.c:7:1: error: unknown type name 'bool'
    7 | bool vis[MAXN];
      | ^~~~
main.c:3:1: note: 'bool' is defined in header '<stdbool.h>'; this is probably fixable by adding '#include <stdbool.h>'
    2 | #include<string.h>
  +++ |+#include <stdbool.h>
    3 | typedef long long LL;
main.c:7:6: error: variably modified 'vis' at file scope
    7 | bool vis[MAXN];
      |      ^~~
Language: C

#include<stdio.h>
int main()
{
	int n,t,o;
	int a[100],b[100];
	while(~scanf("%d%d",&n,&t))
	{
		o=0;
		for(int i=0;i<t;i++)
		{
			scanf("%d %d",&a[i],&b[i]);
			
		}
		for(int i=0;i<t;i++)
		{
			if(b[i]==n) 
			{
				for(int j=0;j<t;j++)
				{
					if(b[j]==a[i]&&a[j]==1)
				{
					
						o=1;
				}
				}
			} 
		}
		if(o!=1) printf("IMPOSSIBLE\n");
		else printf("POSSIBLE\n");
	}
return 0；
 } 

Compiler output:
main.c: In function 'main':
main.c:31:8: error: invalid suffix "；" on integer constant
   31 | return 0；
      |        ^~~
main.c:31:11: error: expected ';' before '}' token
   31 | return 0；
      |           ^
      |           ;
   32 |  }
      |  ~
Language: C++

#define Ll long long
using namespace std;
const int N=2e5+5;
vector<int>h[N];
int n,m,x,y;
void dfs(int x,int y){
	if(y>2)return;
	if(x==n){cout<<"POSSIBLE";exit(0);}
	for(int k=0;k<h[x].size();k++)
		dfs(h[x][k],y+1);
}
int main()
{
	scanf("%d%d",&n,&m);
	for(int i=1;i<=m;i++){
		scanf("%d%d",&x,&y);
		h[x].push_back(y);
	}
	dfs(1,0);
	cout<<"IMPOSSIBLE"; 
}

Compiler output:
a.cc:4:1: error: 'vector' does not name a type
    4 | vector<int>h[N];
      | ^~~~~~
a.cc: In function 'void dfs(int, int)':
a.cc:8:18: error: 'cout' was not declared in this scope
    8 |         if(x==n){cout<<"POSSIBLE";exit(0);}
      |                  ^~~~
a.cc:1:1: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | #define Ll long long
a.cc:8:35: error: 'exit' was not declared in this scope
    8 |         if(x==n){cout<<"POSSIBLE";exit(0);}
      |                                   ^~~~
a.cc:1:1: note: 'exit' is defined in header '<cstdlib>'; this is probably fixable by adding '#include <cstdlib>'
  +++ |+#include <cstdlib>
    1 | #define Ll long long
a.cc:9:23: error: 'h' was not declared in this scope
    9 |         for(int k=0;k<h[x].size();k++)
      |                       ^
a.cc: In function 'int main()':
a.cc:14:9: error: 'scanf' was not declared in this scope
   14 |         scanf("%d%d",&n,&m);
      |         ^~~~~
a.cc:17:17: error: 'h' was not declared in this scope
   17 |                 h[x].push_back(y);
      |                 ^
a.cc:20:9: error: 'cout' was not declared in this scope
   20 |         cout<<"IMPOSSIBLE";
      |         ^~~~
a.cc:20:9: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
Language: C++

def main()
  n, m = gets.chomp.split.map(&:to_i)
  from_1 = []
  from_n = []
  m.times do
    keiro = gets.chomp.split.map(&:to_i)
    from_1 << keiro.last if keiro.first == 1
    from_n << keiro.first if keiro.last == n
    return puts "POSSIBLE" if (from_1 & from_n).first
  end
  puts "IMPOSSIBLE"
end

main()

Compiler output:
a.cc:1:1: error: 'def' does not name a type
    1 | def main()
      | ^~~
Language: C++

def main()
  n, m = gets.chomp.split.map(&:to_i)
  from_1 = []
  from_n = []
  m.times do
    keiro = gets.chomp.split.map(&:to_i)
    from_1 << keiro.last if keiro.first == 1
    from_n << keiro.first if keiro.last == n
    return puts "POSSIBLE" if (from_1 & from_n).first
  end
  puts "IMPOSSIBLE"
end

main

Compiler output:
a.cc:1:1: error: 'def' does not name a type
    1 | def main()
      | ^~~
Language: C++

#include <algorithm>
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <functional>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <string>
#include <vector>

using namespace std;

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

    int N, M;
    cin >> N >> M;

    int from[200000] = {};
    int to[200000] = {};
    int f, t;

    for (int i=0; i<M; i++) {
      cin >> f >> t;
      from[i] = f;
      to[i] = t;
    }

    queue<int> q;
    q.push(1);

    while (not q.empty()) {
      current = q.front();
      q.pop();

      for (int i=0; i<M; i++) {
        if (from[i] == current) {
          if (to[i] == N) {
            cout << "POSSIBLE" << endl;
            return 0;
          } else {
            q.push(to[i]);
          }
        } else if (to[i] == current) {
          // from < to
          q.push(from[i]);
        }
      }
    }

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


Compiler output:
a.cc: In function 'int main()':
a.cc:38:7: error: 'current' was not declared in this scope
   38 |       current = q.front();
      |       ^~~~~~~
Language: C++

#include <stdio.h>
#include <vector>
#include<iostream>
#include<queue>
using namespace std;

int const N = 2 * 1e5 + 1;
int n, m;
bool vis[N];
int cost[N], parent[N];
queue<int> qu;
vector<vector<int> > g;
void BFS(int src) {
  memset(vis, false, sizeof vis);
  memset(cost, 0, sizeof cost);
  memset(parent, -1, sizeof parent);

  qu.push(src);
  vis[src] = true;

  while(!qu.empty()) {
    int fr = qu.front();
    qu.pop();

    for(int i = 0; i < (int)g[fr].size(); ++i) {
      int u = g[fr][i];
      if(!vis[u]) {
        qu.push(u);
        vis[u] = true;
        cost[u] = cost[fr] + 1;
        parent[u] = fr;
      }
    }
  }
}
int main() {
  scanf("%d %d", &n, &m);

  g.resize(n);

  for(int i = 0, a, b ; i < m; ++i) {
    scanf("%d %d", &a, &b);
    a--;
    b--;
    g[a].push_back(b);
  }

   BFS (0);

  if ( cost[n - 1] <= 2 && parent[ n - 1] != -1 )
	  puts("POSSIBLE");
  else
	  puts("IMPOSSIBLE");

  return 0;
}


Compiler output:
a.cc: In function 'void BFS(int)':
a.cc:14:3: error: 'memset' was not declared in this scope
   14 |   memset(vis, false, sizeof vis);
      |   ^~~~~~
a.cc:5:1: note: 'memset' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
    4 | #include<queue>
  +++ |+#include <cstring>
    5 | using namespace std;
Language: C++

#include <iostream>
#include <cstring>

using namespace std;
int u[200001],v[200001],vis[200001];
int first[200005],next[200005];

int main()
{
    int n,m,k,kk,flag=0;
    cin>>n>>m;
    for(int i=1;i<=n;i++)
        first[i]=-1;
    for(int i=0;i<m;i++)
    {
        cin>>u[i]>>v[i];
        next[i]=first[u[i]];
        first[u[i]]=i;
    }
    k=first[1];
    while(k!=-1)
    {
        kk=first[v[k]];
        while(kk!=-1)
        {
            if(v[kk]==n)flag=1;
            kk=next[kk];
        }
        k=next[k];
    }
    if(flag)cout<<"POSSIBLE";
    else cout<<"IMPOSSIBLE";
}


Compiler output:
a.cc: In function 'int main()':
a.cc:17:9: error: reference to 'next' is ambiguous
   17 |         next[i]=first[u[i]];
      |         ^~~~
In file included from /usr/include/c++/14/string:47,
                 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_iterator_base_funcs.h:232:5: note: candidates are: 'template<class _InputIterator> constexpr _InputIterator std::next(_InputIterator, typename iterator_traits<_Iter>::difference_type)'
  232 |     next(_InputIterator __x, typename
      |     ^~~~
a.cc:6:19: note:                 'int next [200005]'
    6 | int first[200005],next[200005];
      |                   ^~~~
a.cc:27:16: error: reference to 'next' is ambiguous
   27 |             kk=next[kk];
      |                ^~~~
/usr/include/c++/14/bits/stl_iterator_base_funcs.h:232:5: note: candidates are: 'template<class _InputIterator> constexpr _InputIterator std::next(_InputIterator, typename iterator_traits<_Iter>::difference_type)'
  232 |     next(_InputIterator __x, typename
      |     ^~~~
a.cc:6:19: note:                 'int next [200005]'
    6 | int first[200005],next[200005];
      |                   ^~~~
a.cc:29:11: error: reference to 'next' is ambiguous
   29 |         k=next[k];
      |           ^~~~
/usr/include/c++/14/bits/stl_iterator_base_funcs.h:232:5: note: candidates are: 'template<class _InputIterator> constexpr _InputIterator std::next(_InputIterator, typename iterator_traits<_Iter>::difference_type)'
  232 |     next(_InputIterator __x, typename
      |     ^~~~
a.cc:6:19: note:                 'int next [200005]'
    6 | int first[200005],next[200005];
      |                   ^~~~
Language: C++

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

list<int> li[200000];

int main() {

    int n,m,a,b;

    cin >> n >> m;

    for(int i=0;i<m;i++){
        scanf(" %d %d",&a,&b);
        li[a-1].push_back(b-1);
    }

    list<int>::iterator itr;

    for(itr = li[0].begin();itr!=li[0].end();itr++){
        a = *itr;
        list<int>::iterator itr2;
        for(itr2 = li[a].begin();itr2!=li[a].end();itr2++){
            if(li[a][*itr2] == n-1){
                cout << "POSSIBLE" << endl;
                return 0;
            }
        }
    }

    cout << "IMPOSSIBLE" << endl;

    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:23:21: error: no match for 'operator[]' (operand types are 'std::__cxx11::list<int>' and 'int')
   23 |             if(li[a][*itr2] == n-1){
      |                     ^
Language: C++

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

list<int> li[200000];

int main() {

    int n,m,a,b;

    cin >> n >> m;

    for(int i=0;i<m;i++){
        scanf(" %d %d",&a,&b);
        li[a-1].push_back(b-1);
    }
    
    list<int>::iterator itr;

    for(itr = li[0].begin();itr!=li[0].end();itr++){
        a = *itr;
        list<int>::iterator itr2;
        for(itr2 = li[a].begin();itr2!=li[a].end();itr2++){
            if(vec[a][*itr2] == n-1){
                cout << "POSSIBLE" << endl;
                return 0;
            }
        }
    }

    cout << "IMPOSSIBLE" << endl;

    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:23:16: error: 'vec' was not declared in this scope
   23 |             if(vec[a][*itr2] == n-1){
      |                ^~~
Language: C

#include <stdio.h>

int main(void)
{
    int n, m;
    scanf("%d %d", &n, &m);
    int a[m], b[m];
    int i;
    for(i=0,i<m;i++)
        scanf("%d %d", &a[i], &b[i]);
    
    int t;
    int u;
    int p == 0;

    for(t=0;t<n;t++){
        if(a[t] == 1)
            u = b[t];
            for(i=0;i<n;i++){
                if (a[i] == u)
                    if (b[i] ==n)
                        p == 1;
            }
    }

    if(p)
        puts("POSSIBLE");
    else
        puts("IMPOSSIBLE");
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:9:20: error: expected ';' before ')' token
    9 |     for(i=0,i<m;i++)
      |                    ^
      |                    ;
main.c:14:11: error: expected '=', ',', ';', 'asm' or '__attribute__' before '==' token
   14 |     int p == 0;
      |           ^~
main.c:14:11: error: expected expression before '==' token
main.c:22:25: error: 'p' undeclared (first use in this function)
   22 |                         p == 1;
      |                         ^
main.c:22:25: note: each undeclared identifier is reported only once for each function it appears in
Language: C++

#include<iostream>
#include <set>

using namespace std;

int main() {
int N;
int M;
cin >> N >> M;

bool flag = false;
set<int> orgList;
set<int> destList;

for (auto i = 0; i < M; ++i) {
int a;
int b;
cin >> a >> b;
if (a == 1) {
orgList.insert(b);
}
if (b == N) {
destList.insert(a);
}
}

for (auto entry : orgList) {
if (destList.count(entry.second) > 0) {
flag = true;
break;
}
}

if (!flag) {
cout << "IM";
}

cout << "POSSIBLE" << endl;

return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:28:26: error: request for member 'second' in 'entry', which is of non-class type 'int'
   28 | if (destList.count(entry.second) > 0) {
      |                          ^~~~~~
Language: Java

import java.util.*;
public class Maini {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int M = sc.nextInt();
		boolean[] is1 = new boolean[N];
		boolean[] isN = new boolean[N];
		for(int i = 0; i < M; i++){
			int a = sc.nextInt();
			int b = sc.nextInt();
			if(a == 1) is1[b] = true;
			if(b == 1) is1[a] = true;
			if(a == N) isN[b] = true;
			if(b == N) isN[a] = true;
		}
		int i;
		for(i = 2; i < N; i++){
			if(is1[i]){
				if(isN[i]){
					System.out.println("POSSIBLE");
					break;
				}
			}
		}
		if(i == N){
			System.out.println("IMPOSSIBLE");
		}
	}
}

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

#include<iostream>
using namespace std;
int main()
{
long long int n,m,i,j=0,k,l,p=0,q;
cin>>n>>m;
long long a[m],b[m],c[m],d[m];
for(i=0;i<m;i++)
{
  cin>>a[i]>>b[i];
}
for(i=0;i<m;i++)
if(a[i]==1)
{
d[p]=i;
p++;
}
for(i=0;i<m;i++)
if(b[i]==n)
{
c[j]=i;
j++;
}
if(j&&p)
for(i=0;i<j;i++)
{
k=c[i];
if(a[k]==1)
{
cout<<"POSSIBLE";
return 0;
}
for(l=0;l<p;l++)
{
q=d[l]
if(b[q]==a[k])
{
cout<<"POSSIBLE";
return 0;
}
}
}
cout<<"IMPOSSIBLE";
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:35:7: error: expected ';' before 'if'
   35 | q=d[l]
      |       ^
      |       ;
   36 | if(b[q]==a[k])
      | ~~
Language: C

#include <stdio.h>
int main(){
  int n,m,a,b;
  scanf("%d%d",&n,&m);
  int boat[n+1] = {0};
  for(int i=0; i<m; i++){
    scanf("%d%d",&a,&b);
    if(a == 1){
      if(boat[b]>0){
	printf("POSSIBLE");
	return 0;
      }
      boat[b]++;
    }
    if(b == n){
      if(boat[a]>0){
	printf("POSSIBLE");
	return 0;
      }
      boat[a]++;
    }
  }
  printf("IMPOSSIBLE");
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:5:19: error: variable-sized object may not be initialized except with an empty initializer
    5 |   int boat[n+1] = {0};
      |                   ^
Language: C++

#include <iostream>
#include <vector>
#include <array>
#include <algorithm>
#include <string>
using namespace std;
int main(void){
    int in_roop;
    int target;
    array<array<int,2>,200000> ship{};
    cin >> target >> in_roop;
    for(int i=0;i<in_roop;i++){
        cin >> ship[i][0] >> ship[i][1];
    }
    vector<int> pos_first;
    for(int i=0;i<in_roop;i++){
        if(A[0]==1){
            pos_first.push_back(A[1]);
        } else if(A[1] == 1){
            pos_first.push_back(A[0]);
        }
    }
    bool judge = false;
    for(int i=0;i<in_roop;i++){
        for(int J:pos_first){
            if(A[0]==J || A[1] == J){
                if(A[0]==target || A[1] ==target){
                    judge=true;
                    break;
                }
            }
        }
    if(judge)break;
    }
    if(judge){
        cout << "POSSIBLE" << endl;
    }else{
        cout << "IMPOSSIBLE" << endl;
    }
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:17:12: error: 'A' was not declared in this scope
   17 |         if(A[0]==1){
      |            ^
a.cc:26:16: error: 'A' was not declared in this scope
   26 |             if(A[0]==J || A[1] == J){
      |                ^
Language: C++

import java.util.Scanner;

public class Main {

	public static void main(String[] args) {

		Scanner s = new Scanner(System.in);
		final int N = s.nextInt();
		final int M = s.nextInt();

		boolean[] hasRouteFrom1 = new boolean[N];
		boolean[] hasRouteToN = new boolean[N];
		for(int i = 0 ; i < M; i++) {
			int from = s.nextInt();
			int to = s.nextInt();

			if(from == 1) {
				hasRouteFrom1[to] = true;
			}
			if(to == N) {
				hasRouteToN[from] = true;
			}
		}

		boolean possible = false;
		for(int i = 0; i < N; i++) {
			if(hasRouteFrom1[i] && hasRouteToN[i]) {
				possible = true;
			}
		}

		if(possible) {
			System.out.println("POSSIBLE");
		} else {
			System.out.println("IMPOSSIBLE");
		}

	}

}


Compiler output:
a.cc:1:1: error: 'import' does not name a type
    1 | import java.util.Scanner;
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:3:1: error: expected unqualified-id before 'public'
    3 | public class Main {
      | ^~~~~~
Language: C++

#include <iostream>
#include <vector>
using namespace std;
int main void(){
    int a,b;
    int M,N;
    cin>>N>>M;
    vector<int>a_list,b_list,transit;
    while(cin>>a>>b){
         a_list.push_back(a);
         b_list.push_back(b);
         if(a == 1){
             transit.push_back(b);
         }
    }
   for(int i = 0; i<a_list.size();i++){
        for(int j= 0 ; j < transit.size(); j++){
            if(a_list[i] == transit[j]){
               if(b_list[i]== N){
                cout<<"POSSIBLE"<<endl;
         }
    }
   cout<<"IMPOSSIBLE"<<endl;
    return 0;
}

Compiler output:
a.cc:4:10: error: expected initializer before 'void'
    4 | int main void(){
      |          ^~~~
Language: C++

#include <iostream>
#include <vector>
#include <algorithm>

using namespace std;

int main(){
    int n,m;
    int a=0,b=0;
    int v[200001];
    memset(v,0,sizeof(v));
    bool ispos=false;
    cin>>n>>m;
    for(int i=0;i<m;i++){
        cin >>a>>b;
        if(a==1){
            v[b]++;
            if(v[b]==2){ispos=true;break;}
        }
        if(b==n){
            v[a]++;
            if(v[a]==2){ispos=true;break;}
        }
    }
    if(ispos)cout<<"POSSIBLE"<<endl;
    else cout<<"IMPOSSIBLE"<<endl;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:11:5: error: 'memset' was not declared in this scope
   11 |     memset(v,0,sizeof(v));
      |     ^~~~~~
a.cc:4:1: note: 'memset' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
    3 | #include <algorithm>
  +++ |+#include <cstring>
    4 |
Language: C++

#include <iostream>
#include <vector>
#include <algorithm>

using namespace std;

int main(){
    int n,m;
    int a=0,b=0;
    bool s[200001],g[200001];
    memset(s, false, sizeof(s));
    memset(g, false, sizeof(g));
    bool ispos=false;
    cin>>n>>m;
    for(int i=0;i<m;i++){
        cin >>a>>b;
        if(a==1){
            s[b]=true;
        }
        if(b==n){
            g[a]=true;
        }
    }
    for (int i=0; i<n; i++) {
        if(s[i]&&g[i]){
        ispos=true;
        }
    }
    if(ispos)cout<<"POSSIBLE"<<endl;
    else cout<<"IMPOSSIBLE"<<endl;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:11:5: error: 'memset' was not declared in this scope
   11 |     memset(s, false, sizeof(s));
      |     ^~~~~~
a.cc:4:1: note: 'memset' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
    3 | #include <algorithm>
  +++ |+#include <cstring>
    4 |
Language: C++

#include <iostream>
#include <vector>
#include <algorithm>

using namespace std;

int main(){
    int n,m;
    int a=0,b=0;
    bool s[200001],g[200001];
    memset(s, false, sizeof(s));
    memset(g, false, sizeof(g));
    bool ispos=false;
    cin>>n>>m;
    for(int i=0;i<m;i++){
        cin >>a>>b;
        if(a==1){
            s[b]=true;
        }
        if(b==n){
            g[a]=true;
        }
    }
    for (int i=0; i<n; i++) {
        if(s[i]&&g[i])cout<<"POSSIBLE"<<endl;
        ispos=true;
    }
    if(!ispos)cout<<"IMPOSSIBLE"<<endl;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:11:5: error: 'memset' was not declared in this scope
   11 |     memset(s, false, sizeof(s));
      |     ^~~~~~
a.cc:4:1: note: 'memset' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
    3 | #include <algorithm>
  +++ |+#include <cstring>
    4 |
Language: C++

#include <iostream>
#include <vector>
#include <algorithm>

using namespace std;

int main(){
    int n,m;
    int a=0,b=0;
    bool s[200001],g[200001];
    memset(s, false, sizeof(s));
    memset(g, false, sizeof(g));
    bool ispos=false;
    cin>>n>>m;
    for(int i=0;i<m;i++){
        cin >>a>>b;
        if(a==1){
            s[b]=true;
        }
        if(b==n){
            g[a]=true;
        }
    }
    for (int i; i<n; i++) {
        if(s[i]&&g[i])cout<<"POSSIBLE"<<endl;
        ispos=true;
    }
    if(!ispos)cout<<"IMPOSSIBLE"<<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:5: error: 'memset' was not declared in this scope
   11 |     memset(s, false, sizeof(s));
      |     ^~~~~~
a.cc:4:1: note: 'memset' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
    3 | #include <algorithm>
  +++ |+#include <cstring>
    4 |
Language: C++

#include <iostream>
#include <vector>

using namespace std;

int main()
{
	int n, m;
	cin >> n >> m;

	if (m == 1)
	{
		cout << "IMPOSSIBLE" << endl;
		return 0;
	}

	vector<pair<int, int>> ls;
	ls.reserve(m);

	for(int i = 0; i < m; i++)
	{
		int a, b;
		cin >> a >> b;
		ls.emplace_back(a, b);
	}

	for(int i = 0; i < m; i++)
	{
		if(count(ls.begin(), ls.end(), pair<int, int>(1, i)) != 0 && count(ls.begin(), ls.end(), pair<int, int>(i, n)) != 0)
		{
			cout << "POSSIBLE" << endl;
			return 0;
		}
	}

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


Compiler output:
a.cc: In function 'int main()':
a.cc:29:20: error: 'count' was not declared in this scope
   29 |                 if(count(ls.begin(), ls.end(), pair<int, int>(1, i)) != 0 && count(ls.begin(), ls.end(), pair<int, int>(i, n)) != 0)
      |                    ^~~~~
Language: C

#include <stdio.h>

int main(void) {
	int n,m;
	int i;
	int flag = 0;
	int iki[200000];
	int kaeri[200000];
	
	scanf("%d %d",&n,&m);
	
	for(i=0;i<n;i++){
		iki[i] = 0;
		kaeri[i] = 0;
	}
	
	for(i=0;i<m;i++){
		scanf("%d %d",&a,&b);
		if(a==1) iki[b]=1;
		if(b==n) kaeri[a]=1;
	}
	for(i=0;i<m;i++){
		if((iki[i] == 1)&&(kaeri[i] == 1)){
			printf("POSSIBLE");
			flag = 1;
			break;
		}
	}
	if(flag == 0){
		printf("IMPOSSIBLE");
	}
	return 0;
}


Compiler output:
main.c: In function 'main':
main.c:18:32: error: 'a' undeclared (first use in this function)
   18 |                 scanf("%d %d",&a,&b);
      |                                ^
main.c:18:32: note: each undeclared identifier is reported only once for each function it appears in
main.c:18:35: error: 'b' undeclared (first use in this function)
   18 |                 scanf("%d %d",&a,&b);
      |                                   ^
Language: C++

#include<iostream>
#include<cstdio>
#include<string>
#include<algorithm>
using namespace std;
int main(){
	long long int n,m,a,b,some,count=0,some1[200],some2[200;
	cin>>n>>m;
	for(int i=0;i<m;i++){
		cin>>a>>b;
		if(a==1){
			some1[b]=1;
		}
		else if(b==n){
			some2[a]=1;
		}
	}
	for(int i=2;i<n;i++){
		if(some1[i]==1 && some2[i]==1){
			count++;
		}
	}
	printf("%s\n",(count>0)? "POSSIBLE":"IMPOSSIBLE");
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:64: error: expected ']' before ';' token
    7 |         long long int n,m,a,b,some,count=0,some1[200],some2[200;
      |                                                                ^
      |                                                                ]
a.cc:15:25: error: 'some2' was not declared in this scope; did you mean 'some1'?
   15 |                         some2[a]=1;
      |                         ^~~~~
      |                         some1
a.cc:19:35: error: 'some2' was not declared in this scope; did you mean 'some1'?
   19 |                 if(some1[i]==1 && some2[i]==1){
      |                                   ^~~~~
      |                                   some1
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
  int N,M;cin>>N>>M;
  vector<int> toM;
  vector<int> fromONE;
  for(int i=0;i<M;i++){
    int a,b;
    cin>>a>>b;
    if(a==1&&b==N)
      continue;
    if(b==N){
      toM.push_back(a);
    }if(a==1){
      fromONE.push_back(b);
    }
  }
  sort(toM.begin(),toM.end(),greater<int>());
  sort(fromONE.begin(),fromONE.end(),greater<int>());
  //cout<<toM[0]<<" "<<fromONE[0]<<endl;
  bool flag=true;
  int i=0,j=0;
  while(i<toM.size()&&j<fromONE.size()){     
    if(toM[i]==fromONE[j]){
      cout<<"POSSIBLE"<<endl;
      flag=false;
      break;
    }
    if(toM[i]>fromONE[j])j++;
    else i++;
  }
  if(flag==false)break;
  if(flag)
    cout<<"IMPOSSIBLE"<<endl;
  
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:32:18: error: break statement not within loop or switch
   32 |   if(flag==false)break;
      |                  ^~~~~
Language: C++

#include <cstdio>
#include <iostream>
#include <vector>
#include <stdlib.h>
using namespace std;

struct node
{
	int dis;
	int last;
	struct node *next;	
};
node ** T = (node **)malloc(200001*sizeof(node));

void insert(int index,int dis)
{
	

	//新建一个node
	node *new_node = (node*)malloc(sizeof(node));
	new_node->dis = dis;
	
	new_node->next = NULL;

	//将新建的node插入hash_code对应链表的最后
	node* p = T[index];
	if (p == NULL)
	{
		T[index] = new_node;
		return;
	}
	while (p->next != NULL)
		p = p->next;
	p->next = new_node;
}



int main(){
	
	int M,N;
	cin >> M >> N;
	for(int i = 0; i < N; i++){
		int a,b;
		cin >> a >> b;
		insert(a,b);
		insert(b,a);
		if(b == M) T[a]->last = 1;
		
 	}

 	node * tmp = (node*) malloc(sizeof(node));
 	tmp = T[1];
 	if(tmp == NULL) {
 		cout << "IMPOSSIBLE" << endl;
 	}
 	else{
 		while(tmp != NULL){
 			/*node * tmp1 = (node*)malloc(sizeof(node));
 			tmp1 = T[tmp->dis];
 			if(tmp1 == NULL) {
 				cout << "IMPOSSIBLE" << endl;*/
 			if(T[tmp->dis] == NULL) {
				cout << "IMPOSSIBLE" << endl;
 				}
 			}
 			else{/*
 				while(tmp1!=NULL){
 					if(tmp1->dis == M) {
 						cout << "POSSIBLE" << endl;
 						
 						return 0;
 					}
 					else{
 						tmp1 = tmp1->next;
 					}

 				}*/
 				 if(T[tmp-dis]->last == 1){
 				 	cout << "POSSIBLE" <<endl;
 				 	return 0;
 				 }
 				else{ 				 	
 					tmp = tmp->next;}
 			}
 		}
 	}
 	free(tmp);
 	cout << "IMPOSSIBLE" << endl;

	/*
	for(int i = 0; i < N; i++){
		int a,b;
		cin >> a >> b;
		T[a][b] = T[b][a] = 1;
 	}

 	if(N == 1){
 		cout << "IMPOSSIBLE" <<endl;
 	}
 	else{
 	for(int i = 2; i <= M; i++){
 		if(T[1][i] == 1){
 			if(T[i][M] == 1) {
 				cout << "POSSIBLE" << endl;
 				return 0;
 			}

 			
 		}

 	}
 	cout << "IMPOSSIBLE" << endl;
 }*/

}

Compiler output:
a.cc: In function 'int main()':
a.cc:67:25: error: 'else' without a previous 'if'
   67 |                         else{/*
      |                         ^~~~
a.cc:79:43: error: 'dis' was not declared in this scope; did you mean 'div'?
   79 |                                  if(T[tmp-dis]->last == 1){
      |                                           ^~~
      |                                           div
a.cc: At global scope:
a.cc:88:13: error: expected constructor, destructor, or type conversion before '(' token
   88 |         free(tmp);
      |             ^
a.cc:89:9: error: 'cout' does not name a type
   89 |         cout << "IMPOSSIBLE" << endl;
      |         ^~~~
a.cc:116:1: error: expected declaration before '}' token
  116 | }
      | ^
Language: C++

#i n cl u d e <i o s t re am>
#i n cl u d e <v e c t o r>
u si n g namespace s t d ;
i n t main ( ) {
i n t n , m;
ci n >> n >> m;
v e c t o r<bool> v i s ( n+1, f a l s e ) ;
b o ol ans = f a l s e ;
f o r ( i n t i = 0 ; i < m; i++) {
i n t a , b ;
ci n >> a >> b ;
i f ( a == 1 ) {
i f ( v i s [ b ] ) {
ans = t r u e ;
}
v i s [ b ] = t r u e ;
} e l s e i f ( b == n ) {
i f ( v i s [ a ] ) {
ans = t r u e ;
}
v i s [ a ] = t r u e ;
}
}
i f ( ! ans ) c ou t << ”IM ” ;
c ou t << ”POSSIBLE” << e n dl ;
r e t u r n 0 ;
}

Compiler output:
a.cc:1:2: error: invalid preprocessing directive #i; did you mean #if?
    1 | #i n cl u d e <i o s t re am>
      |  ^
      |  if
a.cc:2:2: error: invalid preprocessing directive #i; did you mean #if?
    2 | #i n cl u d e <v e c t o r>
      |  ^
      |  if
a.cc:24:25: error: extended character ” is not valid in an identifier
   24 | i f ( ! ans ) c ou t << ”IM ” ;
      |                         ^
a.cc:24:29: error: extended character ” is not valid in an identifier
   24 | i f ( ! ans ) c ou t << ”IM ” ;
      |                             ^
a.cc:25:11: error: extended character ” is not valid in an identifier
   25 | c ou t << ”POSSIBLE” << e n dl ;
      |           ^
a.cc:25:11: error: extended character ” is not valid in an identifier
a.cc:3:1: error: 'u' does not name a type
    3 | u si n g namespace s t d ;
      | ^
a.cc:4:1: error: 'i' does not name a type
    4 | i n t main ( ) {
      | ^