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

#inlcude <bits/stdc++.h>
using namespace std;
 
#define _int64 long long
 
_int64 a[60];
 
int main()
{
  _int64 i,j,n,tmp,ans,b1;
  scanf("%lld",&n);
  for (i=0;i<n;i++)
    scanf("%lld",&a[i]);
  ans=0;
  b1=1;
  while (b1==1)
  {
    b1=0;
    for (i=0;i<n;i++)
      if (a[i]>=n)
      {
        b1=1;
        tmp=a[i]/n;
        a[i]%=n;
        ans+=tmp;
        for (j=0;j<n;j++)
          if (i!=j) a[j]+=tmp;
      }
  }
  printf("%lld\n",ans);
  return 0;
}

Compiler output:
a.cc:1:2: error: invalid preprocessing directive #inlcude; did you mean #include?
    1 | #inlcude <bits/stdc++.h>
      |  ^~~~~~~
      |  include
a.cc: In function 'int main()':
a.cc:11:3: error: 'scanf' was not declared in this scope
   11 |   scanf("%lld",&n);
      |   ^~~~~
a.cc:30:3: error: 'printf' was not declared in this scope
   30 |   printf("%lld\n",ans);
      |   ^~~~~~
a.cc:1:1: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
  +++ |+#include <cstdio>
    1 | #inlcude <bits/stdc++.h>
Language: C++

#include<bits/stdc++.h>
using namespace std;
int cnt;
vector<int>v[200010];
void dfs(int s,int d)
{
    if(s==d) return;
    for(int i=0;i<v[s].size();i++)
    {
        cnt++;
        dfs(v[s][i],d);
    }
}
int main()
{
    int n,m;
    cin>>n>>m;
    for(int i=0;i<m;i++)
    {
        int a,b;
        cin>>a>>b;
        v[a].push_back(b);
    }
    dfs(1,n);
    if(cnt>2) cout<<IMPOSSIBLE<<endl;
    else cout<<POSSIBLE<<endl;

}


Compiler output:
a.cc: In function 'int main()':
a.cc:25:21: error: 'IMPOSSIBLE' was not declared in this scope
   25 |     if(cnt>2) cout<<IMPOSSIBLE<<endl;
      |                     ^~~~~~~~~~
a.cc:26:16: error: 'POSSIBLE' was not declared in this scope
   26 |     else cout<<POSSIBLE<<endl;
      |                ^~~~~~~~
Language: C++

if __name__ == '__main__':
    N, M = list(map(int, input().split()))
    a = []
    b = []
    for i in range(M):
        tmp_a, tmp_b = list(map(int, input().split()))
        a.append(tmp_a)
        b.append(tmp_b)

    c = set([b[i] for i in range(0, M) if a[i] == 1])

    for i in range(0, M):
        if a[i] in c and b[i] == N:
            print("POSSIBLE")
            break
    else:
        print("IMPOSSIBLE")


Compiler output:
a.cc:1:16: warning: multi-character literal with 8 characters exceeds 'int' size of 4 bytes
    1 | if __name__ == '__main__':
      |                ^~~~~~~~~~
a.cc:1:1: error: expected unqualified-id before 'if'
    1 | if __name__ == '__main__':
      | ^~
Language: C++

#include <iostream>
#include <vector>
#include <algorithm>
using namespace std;
bool contains(vector<int> &adj,M){
  if(find(adj.begin(),adj.end(),M)!=adj.end()) return true;
  else return false;
}

int main(){
  int N,M;
  int a,b;
  cin>>N>>M;
  vector<vector<int> >adj(N+1,);
  while(cin>>a>>b){
    adj[a].push_back(b);
  }
  if(contains(adj[1],M)) {
    cout<<"possibel"<<endl;
    return 0;
  }else{
    for(int c: adj[1]){
      if(contains(c,M)) {
        cout<<"possible"<<endl;
        return 0;
      }else{
        cout<<"impossible"<<endl;
        return 0;

      }

    }
  }

  return 0;
}

Compiler output:
a.cc:5:32: error: 'M' has not been declared
    5 | bool contains(vector<int> &adj,M){
      |                                ^
a.cc: In function 'bool contains(std::vector<int>&, int)':
a.cc:6:33: error: 'M' was not declared in this scope
    6 |   if(find(adj.begin(),adj.end(),M)!=adj.end()) return true;
      |                                 ^
a.cc: In function 'int main()':
a.cc:14:31: error: expected primary-expression before ')' token
   14 |   vector<vector<int> >adj(N+1,);
      |                               ^
a.cc:23:19: error: invalid initialization of reference of type 'std::vector<int>&' from expression of type 'int'
   23 |       if(contains(c,M)) {
      |                   ^
a.cc:5:28: note: in passing argument 1 of 'bool contains(std::vector<int>&, int)'
    5 | bool contains(vector<int> &adj,M){
      |               ~~~~~~~~~~~~~^~~
a.cc: In function 'bool contains(std::vector<int>&, int)':
a.cc:8:1: warning: control reaches end of non-void function [-Wreturn-type]
    8 | }
      | ^
Language: C++

#include <iostream>
#include <vector>
#include <algorithm>
using namespace std;
int main(){
  int N,M;
  int a,b;
  cin>>N>>M;
  vector<vector<int> >adj(N+1,);
  while(cin>>a>>b){
    adj[a].push_back(b);
  }
  if(contains(adj[1],M)) {
    cout<<"possibel"<<endl;
    return 0;
  }else{
    for(int c: adj[1]){
      if(contains(c,M)) {
        cout<<"possible"<<endl;
        return 0;
      }else{
        cout<<"impossible"<<endl;
        return 0;

      }

    }
  }

  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:31: error: expected primary-expression before ')' token
    9 |   vector<vector<int> >adj(N+1,);
      |                               ^
a.cc:13:6: error: 'contains' was not declared in this scope
   13 |   if(contains(adj[1],M)) {
      |      ^~~~~~~~
Language: C++

#include <iostream>
#include <vector>
#include <algorithm>
using namespace std;
int main(){
  int N,M;
  int a,b;
  cin>>N>>M;
  vector<vector<int> >adj(N+1,{});
  while(cin>>a>>b){
    adj[a].push_back(b);
  }
  if(contains(adj[1],M)) {
    cout<<"possibel"<<endl;
    return 0;
  }else{
    for(int c: adj[1]){
      if(contains(c,M)) {
        cout<<"possible"<<endl;
        return 0;
      }else{
        cout<<"impossible"<<endl;
        return 0;

      }

    }
  }

  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:33: error: call of overloaded 'vector(int, <brace-enclosed initializer list>)' is ambiguous
    9 |   vector<vector<int> >adj(N+1,{});
      |                                 ^
In file included from /usr/include/c++/14/vector:66,
                 from a.cc:2:
/usr/include/c++/14/bits/stl_vector.h:569:7: note: candidate: 'std::vector<_Tp, _Alloc>::vector(size_type, const value_type&, const allocator_type&) [with _Tp = std::vector<int>; _Alloc = std::allocator<std::vector<int> >; size_type = long unsigned int; value_type = std::vector<int>; allocator_type = std::allocator<std::vector<int> >]'
  569 |       vector(size_type __n, const value_type& __value,
      |       ^~~~~~
/usr/include/c++/14/bits/stl_vector.h:556:7: note: candidate: 'std::vector<_Tp, _Alloc>::vector(size_type, const allocator_type&) [with _Tp = std::vector<int>; _Alloc = std::allocator<std::vector<int> >; size_type = long unsigned int; allocator_type = std::allocator<std::vector<int> >]'
  556 |       vector(size_type __n, const allocator_type& __a = allocator_type())
      |       ^~~~~~
a.cc:13:6: error: 'contains' was not declared in this scope
   13 |   if(contains(adj[1],M)) {
      |      ^~~~~~~~
Language: C++

#include<stdio.h>

int main()
{
	long long a,k;
	scanf_s("%lld", &k);
	printf("%lld\n", k);
	for (long long i = 0; i < k; i++) {
		printf("%lld ", k);
	}
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:9: error: 'scanf_s' was not declared in this scope; did you mean 'scanf'?
    6 |         scanf_s("%lld", &k);
      |         ^~~~~~~
      |         scanf
Language: Java

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.PrintWriter;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.StringTokenizer;

public class A {
    public static void main(String[] args) {
        InputReader in = new InputReader();
        PrintWriter out = new PrintWriter(System.out);
        int n = in.nextInt();
        int m = in.nextInt();
        ArrayList<Integer>[] a = new ArrayList[n];
        for (int i = 0; i < n; i++) {
            a[i] = new ArrayList();
        }
        for (int i = 0; i < m; i++) {
            int u = in.nextInt() - 1;
            int v = in.nextInt() - 1;
            a[u].add(v);
            a[v].add(u);
        }
        boolean ok = false;
        for (int i = 0; i < a[0].size(); i++) {
            int j = a[0].get(i);
            for (int k = 0; k < a[j].size(); k++) {
                if (a[j].get(k) == n - 1) ok = true;
            }
        }
        out.println(ok ? "POSSIBLE" : "IMPOSSIBLE");
        out.close();
    }
    static class InputReader {
        BufferedReader br;
        StringTokenizer st;

        public InputReader()
        {
            br = new BufferedReader(new
                    InputStreamReader(System.in));
        }

        String next()
        {
            while (st == null || !st.hasMoreElements())
            {
                try
                {
                    st = new StringTokenizer(br.readLine());
                }
                catch (IOException e)
                {
                    e.printStackTrace();
                }
            }
            return st.nextToken();
        }

        int nextInt()
        {
            return Integer.parseInt(next());
        }

        long nextLong()
        {
            return Long.parseLong(next());
        }

        double nextDouble()
        {
            return Double.parseDouble(next());
        }

        String nextLine()
        {
            String str = "";
            try
            {
                str = br.readLine();
            }
            catch (IOException e)
            {
                e.printStackTrace();
            }
            return str;
        }
    }
}


Compiler output:
Main.java:9: error: class A is public, should be declared in a file named A.java
public class A {
       ^
Note: Main.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
1 error
Language: C++

#include <bits/stdc++.h>
using namespace std;
const int N = 2e5;
int adake[N + 5], adadari[N + 5];
int main(){
	scanf("%d%d", &n, &m);
	for(int i = 0;i < m; ++i){
		int a, b;
		scanf("%d%d", &a, &b);
		int low = min(a, b);
		int hi = max(a, b);
		if(lo == 1){
			adake[hi] = 1;
		}
		else if(hi == n){
			adadari[lo] = 1;
		}
	}
	for(int i = 2;i <= n-1; ++i){
		if(adake[i] && adadari[i]){
			puts("POSSIBLE");
			return 0;
		}
	}
	puts("IMPOSSIBLE");
	return 0;
}	


Compiler output:
a.cc: In function 'int main()':
a.cc:6:24: error: 'n' was not declared in this scope
    6 |         scanf("%d%d", &n, &m);
      |                        ^
a.cc:6:28: error: 'm' was not declared in this scope; did you mean 'tm'?
    6 |         scanf("%d%d", &n, &m);
      |                            ^
      |                            tm
a.cc:12:20: error: 'lo' was not declared in this scope; did you mean 'low'?
   12 |                 if(lo == 1){
      |                    ^~
      |                    low
Language: C++

#include <iostream>
#include <string.h>
#include <stdlib.h>
#include <stdio.h>
#include <algorithm>
#include <cstdio>
#include <time.h>
#include <queue>
#include <set>
#include <map>
#include <stack>
#include <math.h>
//#include <bits/stdc++.h>
#define ll long long
#define int64 long long
#define mem(x,y) memset(x,y,sizeof(x))
#define ull unsigned long long
#define pb push_back
#define INF 0x3f3f3f3f
#define lson l, mid, rt<<1
#define rson mid+1, r, rt<<1|1
#define pi 3.141592653589793238462

using namespace std;

const int maxn = 2e5 + 5;
const int maxm = 3e5 + 5;
const int mod = 1e9 + 7;
const int seed = 10007;
const double eps = 1e-5;
vector<int> g[maxn];

int main() {
    scanf("%d%d",&n,&m);
    int u,v;
    for(int i=0;i<n;i++){
        scanf("%d%d",&u,&v);
        g[u].pb(v);
        g[v].pb(u);
    }
    for(int i=0;i<g[1].size();i++){
        int v=g[1][i];
        for(int j=0;j<g[v].size();j++){
            if(g[v][j]==n){
                printf("POSSIBLE\n");
                return 0;
            }
        }
    }
    printf("IMPOSSIBLE\n");
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:34:19: error: 'n' was not declared in this scope; did you mean 'yn'?
   34 |     scanf("%d%d",&n,&m);
      |                   ^
      |                   yn
a.cc:34:22: error: 'm' was not declared in this scope; did you mean 'tm'?
   34 |     scanf("%d%d",&n,&m);
      |                      ^
      |                      tm
Language: C++

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

#define fo(i,s,t) for(int i = s; i <= t; ++ i)
#define fd(i,s,t) for(int i = s; i >= t; -- i)
typedef long long ll;
#define pb push_back

const int maxn = 200050;
const int inf = 1<<30;

int n, in[maxn], to[maxn];
bool v[maxn];
set<int> s[maxn];
vector<int> loop, candidate;

void go(int x)
{
	v[x] = true;
	fo(i,0,inf) if(s[x].find(i)==s[x].end()){s[to[x]].insert(i); break;}
	if(!(-- in[to[x]])) go(to[x]);
}
int main()
{
	scanf("%d",&n);
	fo(i,1,n) {int x; scanf("%d",&to[i]); in[to[i]] ++;}
	fo(i,1,n) if(!in[i] && !v[i]) go(i);
	fo(i,1,n) if(!v[i]) 
	{
		int now = i; 
		while(1)
		{
			loop.pb(now);
			now = to[now];
			if(now == i) break;
		}
		break;
	}
	for(int i = 0; candidate.size()<2; ++ i)
		if(s[loop[0]].find(i)==s[loop[0]].end())
			candidate.pb(i);
	i
	fo(i,0,1)
	{
		in[0] = candidate[i];
		fo(j,1,loop.size()-1)
		{
			fo(k,0,inf)
				if(in[j-1]!=k&&s[loop[j]].find(k)==s[loop[j]].end())
				{
					in[j] = k;
					break;
				}
		}
		if(in[loop.size()-1]!=in[0]) return 0*printf("POSSIBLE\n");
	}
	printf("IMPOSSIBLE\n");
	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:42:9: error: 'i' was not declared in this scope
   42 |         i
      |         ^
Language: C++

include<bits/stdc++.h>
#define ll unsigned long long int
using namespace std;
 
 
int main()
{
    ios_base::sync_with_stdio(0); cin.tie(0); cout.tie(0);
     ll k ;
     cin >> k ;
     if( k==0 )
     {
         cout << 4 << endl;
         cout << 3 << " " << 3 << " " << 3 << " " << 3 << endl; return 0;
     }
      cout << 10000000 << endl;
     for( ll i =0 ; i<10000000-1; i++ )
     {
         cout << i-1 << " " ;
     }
     cout << 10000000 << endl;
}
 
 

Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include<bits/stdc++.h>
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc:8:5: error: 'ios_base' has not been declared
    8 |     ios_base::sync_with_stdio(0); cin.tie(0); cout.tie(0);
      |     ^~~~~~~~
a.cc:8:35: error: 'cin' was not declared in this scope
    8 |     ios_base::sync_with_stdio(0); cin.tie(0); cout.tie(0);
      |                                   ^~~
a.cc:8:47: error: 'cout' was not declared in this scope
    8 |     ios_base::sync_with_stdio(0); cin.tie(0); cout.tie(0);
      |                                               ^~~~
a.cc:13:23: error: 'endl' was not declared in this scope
   13 |          cout << 4 << endl;
      |                       ^~~~
a.cc:16:27: error: 'endl' was not declared in this scope
   16 |       cout << 10000000 << endl;
      |                           ^~~~
Language: C++

#include<bits/stdc++.h>
#define rep(i,n) for(int i=0;i<n;i++)
using namespace std;
int n,m,y,x;
vector<int>v[200001];
bool used[200001];
void dfs(int to,int depth){
  if(depth==2)return;
  rep(i,v[to].size()){
    int x=v[to][i];
    if(!used[x]){
      used[x]=1;
      dfs(x,d+1);
    }
  }
}
main(){
  cin>>n>>m;
  rep(i,m){
    cin>>x>>y;
    v[x].push_back(y);
    v[y].push_back(x);
  }
  dfs(1,0);
  if(used[n])cout<<"POSSIBLE"<<endl;
  else cout<<"IMPOSSIBLE"<<endl;
}

Compiler output:
a.cc: In function 'void dfs(int, int)':
a.cc:13:13: error: 'd' was not declared in this scope
   13 |       dfs(x,d+1);
      |             ^
a.cc: At global scope:
a.cc:17:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
   17 | main(){
      | ^~~~
Language: C++

#include<bits/stdc++.h>
#define rep(i,n) for(int i=0;i<n;i++)
using namespace std;
int n,m,y,x;
vector<int>v[200001];
bool used[200001];
void dfs(int to,int depth){
  if(depth==2)return;
  rep(i,v[to].size()){
    int x=v[to][i];
    if(!b[x]){
      b[x]=1;
      dfs(x,d+1);
    }
  }
}
main(){
  cin>>n>>m;
  rep(i,m){
    cin>>x>>y;
    v[x].push_back(y);
    v[y].push_back(x);
  }
  dfs(1,0);
  if(used[n])cout<<"POSSIBLE"<<endl;
  else cout<<"IMPOSSIBLE"<<endl;
}

Compiler output:
a.cc: In function 'void dfs(int, int)':
a.cc:11:9: error: 'b' was not declared in this scope
   11 |     if(!b[x]){
      |         ^
a.cc:13:13: error: 'd' was not declared in this scope
   13 |       dfs(x,d+1);
      |             ^
a.cc: At global scope:
a.cc:17:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
   17 | main(){
      | ^~~~
Language: C++

#include <cstdio>
#include <cstring>
#define MAXN 200000
#define T 500

int is[2][MAXN];
int main(){
    int n,m,a,b,temp;
    scanf("%d %d",&n,&m);
    while(m--){
        scanf("%d %d",&a,&b);
        if(a==1||a==n||b==1||b==n){
            if(b==1||b==n){
                temp=b;
                b=a;
                a=temp;
            }
            if(a==1)
                is[0][b]=1;
            else if(a==n) is[1][b]=1;
        }
    }
    for(int i=0;i<MAXN;i++){
        if(is[0][i]==1){
            printf("POSSIBLE\n");
            return 0;
     

Compiler output:
a.cc: In function 'int main()':
a.cc:26:22: error: expected '}' at end of input
   26 |             return 0;
      |                      ^
a.cc:24:24: note: to match this '{'
   24 |         if(is[0][i]==1){
      |                        ^
a.cc:26:22: error: expected '}' at end of input
   26 |             return 0;
      |                      ^
a.cc:23:28: note: to match this '{'
   23 |     for(int i=0;i<MAXN;i++){
      |                            ^
a.cc:26:22: error: expected '}' at end of input
   26 |             return 0;
      |                      ^
a.cc:7:11: note: to match this '{'
    7 | int main(){
      |           ^
Language: C++

 
#define PROB ChangingChange

#include <bits/stdc++.h>

using namespace std;
typedef long long LL;
#define rep(i, l, r) for (int i = l; i<r;i++)
#define all(b) b.begin() , b.end()
#define mp(a, b) make_pair(a,b)
#define pb(a) push_back(a)
#define vi vector<int>
#define vd vector<double>
#define vs vector<string>
#define vii vector<pair<int,int>>
#define vvi vector<vector<int>>
#define ii pair<int,int>
#define turnOff(k, i) (k&(~(1<<(i-1))))
#define isOn(k, i) (k&&(1<<i-1)?true:false)
#define pll pair<long long int , long long int>
#define ull unsigned long long int
#define ll  long long int
#define add(a, b) ((a+b)%MOD)
#define sub(a, b) ((a-b+MOD)%MOD)
#define mul(a, b) ((a*b)%MOD)
#ifdef  DEBUG
#define MAXN 105
#else
#define MAXN 5000020
#endif
#define MAXLG 20
#define endl '\n'
#define PI 3.141592653589793238
#define MOD (1000000007)
#define INF (2000000000)
#define EPS (0.00000001)
#define treap treapNode*

int gcd(int a, int b) {
    while (a != 0) {
        int c = a;
        a = b % a;
        b = c;
    }
    return b;
}

vi adj[3000];

vi getAllDivisors(int num) {
    vector<int> divs;
    int square_root = (int) sqrt(num) + 1;
    for (int i = 1; i < square_root; i++) {
        if (num % i == 0) {
            if (i * i != num) {
                divs.pb(i);
            }
            divs.pb(num / i);
        }

    }
    return divs;
}

class PROB {
public:
};


ll mod_pow(long x, int y) {
    // exponentiation by squaring
    ll r = 1;
    while (y > 0) {
        if (y % 2 == 1) {
            r = (r * x) % MOD;
        }
        x = (x * x) % MOD;
        y /= 2;
    }
    return r;
}
int dp[2][1001][51][51];


int main() {
    PROB temp;
    ios_base::sync_with_stdio(false);
    cin.tie(0);

#ifdef DEBUG
    freopen("input", "r", stdin);
#end
    cout<<2<<endl<<0<<" " <<" "<<0;


    return 0;
}

Compiler output:
a.cc:90: error: unterminated #ifdef
   90 | #ifdef DEBUG
a.cc: In function 'int main()':
a.cc:88:16: error: expected '}' at end of input
   88 |     cin.tie(0);
      |                ^
a.cc:85:12: note: to match this '{'
   85 | int main() {
      |            ^
Language: C++

//( ͡° ͜ʖ ͡°) °º¤ø,¸¸,ø¤º°`°º¤ø,¸,ø¤°º¤ø,¸¸,ø¤º°`°º¤ø,¸,ø¤º°` looking at my code...

//#define ONLINE_JUDGE //in case i forget to uncomment this, sometimes the grader defines the macro ^.^
#ifdef ONLINE_JUDGE
#include <bits/stdc++.h>
#else
#include "stdc++.h"
#endif
#define MAX(x, y) (((x) > (y)) ? (x) : (y))
#define MIN(x, y) (((x) < (y)) ? (x) : (y))
#define INF  (int)1e9

#define int long long
using namespace std;

signed main() {
#ifndef ONLINE_JUDGE
    freopen("/Users/kdkdk/Desktop/input.txt", "r", stdin);
    //freopen("/Users/kdkdk/Desktop/output.txt", "w", stdout);
#endif
    
    ios_base::sync_with_stdio(false);
    cin.tie(0);
    
    int n, m;
    cin >> n >> m;
    vector<pair<int,int> > bridges (n);
    for(int i = 0; i < m; ++i) cin >> bridges[i].first >> bridges[i].second;
    unordered_map<int, bool> possible;
    for(int i = 0; i < m; ++i) if(bridges[i].second == n) possible[bridges[i].first] = true;
    bool totPossible = false;
    for(int i = 0; i < m && !totPossible; ++i) if(bridges[i].first == 1) if(possible.count(bridges[i].second) > 0 && possible[bridges[i].second]) totPossible = true;
    cout << (totPossible ? "POSSIBLE" : "IMPOSSIBLE") << endl;
    return 0;
}






Compiler output:
a.cc:7:10: fatal error: stdc++.h: No such file or directory
    7 | #include "stdc++.h"
      |          ^~~~~~~~~~
compilation terminated.
Language: C++

#include <vector>
#include <iostream>
 
using namespace std;
 
int main(void)
{
	int n, m;
    cin >> n >> m;
    
    vector<int> a(m);
    vector<int> b(m);
    int a1s = 0, a2s = 0;
    vector<int> a1(m), a2(m);
    vector<int> b1(m), b2(m);
 
	for (int i = 0; i < m; i++) {
    	cin >> a[i] >> b[i];
    	if (a[i] == 1) {
    		a1[a1s] = a[i];
    		b1[b1s] = b[i];
    		a1s++;
    	} else {
    		a2[a2s] = a[i];
    		b2[b2s] = b[i];
    		a2s++;
    	}
	}
    
    bool ans = false;
    for (int i = 0; i < a1s; i++) {
    	if (a1[i] == 1) {
        	int tmp = b1[i];
            for (int j = 0; j < a2s; j++) {
            	if (a2[j] == tmp){
                	if (b2[j] == n) {
                    	ans = true;
                        break;
					}
                }
			}
            if (ans) break;
        }
	}
    
    if (ans) {
    	cout << "POSSIBLE" << endl;
    } else {
    	cout << "IMPOSSIBLE" << endl;
	}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:21:20: error: 'b1s' was not declared in this scope; did you mean 'b1'?
   21 |                 b1[b1s] = b[i];
      |                    ^~~
      |                    b1
a.cc:25:20: error: 'b2s' was not declared in this scope; did you mean 'b2'?
   25 |                 b2[b2s] = b[i];
      |                    ^~~
      |                    b2
Language: C++

#include <stdio.h>
using namespace std;
 
int n,m,a[200005],b[200005];
bool f[200005];
 
int main(){
scanf("%d %d",&n,&m);
for(int i=0;i<m;i++){
scanf("%d %d",a+i,b+i);
a[i]--;b[i]--;
if(b[i]==n-1)f[a]=true;
}
for(int i=0;i<n;i++)if(a[i]==0 && f[b[i]]){
printf("POSSIBLE\n");
return 0;
}
printf("IMPOSSIBLE\n");
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:15: error: invalid types 'bool [200005][int [200005]]' for array subscript
   12 | if(b[i]==n-1)f[a]=true;
      |               ^
Language: C++

#include <cstdio>
#include <cstring>
#include <algorithm>
#include <iostream>
#define INF (0x3f3f3f3f)
using namespace std;

const int N = 200005;

template <class T> inline void read() {
	int flag = 1; x = 0;
	register char ch = getchar();
	while(ch <  '0' || ch >  '9') { if(ch == '-')  flag = -1; ch = getchar(); }
	while(ch >= '0' && ch <= '9') { x = (x<<1)+(x<<3)+ch-'0'; ch = getchar(); }
	t *= flag;
}
int n, m, dis[N], que[N << 1], head[N], top = 0;

struct Node
{
	int y, nxt;
} e[N << 1];

inline void Adde( int x, int y )
{
	e[++top].y = y, e[top].nxt = head[x], head[x] = top;
	e[++top].y = x, e[top].nxt = head[y], head[y] = top;
}

int BFS()
{
	memset(dis, INF, sizeof(dis));
	int h, t, u, v;
	h = t = 0;
	dis[1] = 0;
	que[++t] = 1;
	while(h < t)
	{
		u = que[++h];
		for(int i = head[u]; i; i = e[i].nxt)
		{
			v = e[i].y;
			if(dis[v] != INF) continue;
			dis[v] = dis[u] + 1;
			que[++t] = v;
		}
	}
	return dis[n];
}

int main()
{
	int u, v;
	read(n), read(m);
	for(int i = 1; i <= m; i++)
		read(u), read(v), Adde(u, v);
	if(BFS() > 2) printf( "IMPOSSIBLE\n" );
	else printf( "POSSIBLE\n" );
	return 0;
}


Compiler output:
a.cc: In function 'void read()':
a.cc:11:23: error: 'x' was not declared in this scope
   11 |         int flag = 1; x = 0;
      |                       ^
a.cc:12:23: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister]
   12 |         register char ch = getchar();
      |                       ^~
a.cc:15:9: error: 't' was not declared in this scope
   15 |         t *= flag;
      |         ^
a.cc: In function 'int main()':
a.cc:54:13: error: no matching function for call to 'read(int&)'
   54 |         read(n), read(m);
      |         ~~~~^~~
a.cc:10:32: note: candidate: 'template<class T> void read()'
   10 | template <class T> inline void read() {
      |                                ^~~~
a.cc:10:32: note:   candidate expects 0 arguments, 1 provided
a.cc:54:22: error: no matching function for call to 'read(int&)'
   54 |         read(n), read(m);
      |                  ~~~~^~~
a.cc:10:32: note: candidate: 'template<class T> void read()'
   10 | template <class T> inline void read() {
      |                                ^~~~
a.cc:10:32: note:   candidate expects 0 arguments, 1 provided
a.cc:56:21: error: no matching function for call to 'read(int&)'
   56 |                 read(u), read(v), Adde(u, v);
      |                 ~~~~^~~
a.cc:10:32: note: candidate: 'template<class T> void read()'
   10 | template <class T> inline void read() {
      |                                ^~~~
a.cc:10:32: note:   candidate expects 0 arguments, 1 provided
a.cc:56:30: error: no matching function for call to 'read(int&)'
   56 |                 read(u), read(v), Adde(u, v);
      |                          ~~~~^~~
a.cc:10:32: note: candidate: 'template<class T> void read()'
   10 | template <class T> inline void read() {
      |                                ^~~~
a.cc:10:32: note:   candidate expects 0 arguments, 1 provided
Language: C++

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

int n,m,a[200005],b[200005];
bool f[200005];

int main(){
scanf("%d %d",&n,&m);
for(int i=0;i<m;i++){
int b;
scanf("%d %d",a+i,b+i);
a[i]--;b[i]--;
if(b[i]==n-1)f[a]=true;
}
for(int i=0;i<n;i++)if(a[i]==0 && f[b[i]]){
printf("POSSIBLE\n");
return 0;
}
printf("IMPOSSIBLE\n");
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:9: error: invalid types 'int[int]' for array subscript
   13 | a[i]--;b[i]--;
      |         ^
a.cc:14:5: error: invalid types 'int[int]' for array subscript
   14 | if(b[i]==n-1)f[a]=true;
      |     ^
a.cc:14:15: error: invalid types 'bool [200005][int [200005]]' for array subscript
   14 | if(b[i]==n-1)f[a]=true;
      |               ^
Language: C++

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

#define MOD 1000000007
#define ll long long

using namespace std;


ll N,M;
vector<ll> a;
vector<ll> b;

ll db[200001]={0};



int main(){
  ll ina,inb;
  
  cin.tie(0);
  ios::sync_with_stdio(false);

  cin >> N >> M;
  a.push_back(0);
  b.push_back(0);
  for(ll 0 = 1;i<M;i++){
    cin >> ina>> inb;
    a.push_back(ina);
    b.push_back(inb);
    if(ina == 1)db[inb]=1;
  }


  for(ll i = 1;i<=M;i++){
    if(db[a[i]]){
      if(b[i]==N){cout << "POSSIBLE" << endl;
	return 0;
      }
    }
  }
  
  cout << "IMPOSSIBLE" << endl;
  
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:29:10: error: expected unqualified-id before numeric constant
   29 |   for(ll 0 = 1;i<M;i++){
      |          ^
a.cc:29:10: error: expected ';' before numeric constant
a.cc:29:10: error: lvalue required as left operand of assignment
a.cc:29:16: error: 'i' was not declared in this scope
   29 |   for(ll 0 = 1;i<M;i++){
      |                ^
a.cc:29:19: error: expected ')' before ';' token
   29 |   for(ll 0 = 1;i<M;i++){
      |      ~            ^
      |                   )
a.cc:29:20: error: 'i' was not declared in this scope
   29 |   for(ll 0 = 1;i<M;i++){
      |                    ^
Language: Java

import java.util.*;

public class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int N = sc.nextInt();
    int M = sc.nextInt();
    ArrayList[] list = new ArrayList[N];
    for(int i = 0; i < N; i++) {
      list[i] = new ArrayList<Integer>();
    }
    for(int i = 0; i < M; i++) {
      int a = sc.nextInt() - 1;
      int b = sc.nextInt() - 1;
      list[a].add(b);
      list[b].add(a);
    }
    ArrayList<Integer> list0 = list[0];
    String ans = "IMPOSSIBLE";
    for(int i = 0; i < list0.size(); i++) {
      int v = list[list0.get(i)];
      if(list[v].contains(N - 1)) {
        ans = "POSSIBLE";
        break;
      }
    }
    System.out.println(ans);
  }
}

Compiler output:
Main.java:21: error: incompatible types: ArrayList cannot be converted to int
      int v = list[list0.get(i)];
                  ^
Note: Main.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
1 error
Language: C++

#include<cstdio>
#include<algorithm>
#include<set>
using namespace std;
int e,v[400010],first[200010],next[400010];
void AddEdge(int U,int V){
	v[++e]=V;
	next[e]=first[U];
	first[U]=e;
}
typedef pair<int,int> Point;
set<Point>S;
int n,m;
int main(){
	int x,y;
	scanf("%d%d",&n,&m);
	for(int i=1;i<=m;++i){
		scanf("%d%d",&x,&y);
		AddEdge(x,y);
		AddEdge(y,x);
		S.insert(make_pair(x,y));
		S.insert(make_pair(y,x));
	}
	for(int i=first[1];i;i=next[i]){
		if(S.find(make_pair(v[i],n))!=S.end()){
			puts("POSSIBLE");
			return 0;
		}
	}
	puts("IMPOSSIBLE");
	return 0;
}

Compiler output:
a.cc: In function 'void AddEdge(int, int)':
a.cc:8:9: error: reference to 'next' is ambiguous
    8 |         next[e]=first[U];
      |         ^~~~
In file included from /usr/include/c++/14/bits/stl_algobase.h:66,
                 from /usr/include/c++/14/algorithm:60,
                 from a.cc:2:
/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:5:31: note:                 'int next [400010]'
    5 | int e,v[400010],first[200010],next[400010];
      |                               ^~~~
a.cc: In function 'int main()':
a.cc:24:32: error: reference to 'next' is ambiguous
   24 |         for(int i=first[1];i;i=next[i]){
      |                                ^~~~
/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:5:31: note:                 'int next [400010]'
    5 | int e,v[400010],first[200010],next[400010];
      |                               ^~~~
Language: C++

import java.util.Scanner;

public class Main {
    private final static String YES = "POSSIBLE";
    private final static String NO = "IMPOSSIBLE";
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int n = scanner.nextInt(), m = scanner.nextInt();
        boolean[] from = new boolean[n + 1];
        boolean[] to = new boolean[n + 1];
        for (int i = 1; i <= m; i++) {
            int a = scanner.nextInt(), b = scanner.nextInt();
            if (a == 1)
                from[b] = true;
            if (b == n)
                to[a] = true;
        }
        for (int i = 2; i < n; i++) if (from[i] && to[i]) {
            System.out.println(YES);
            return;
        }
        System.out.println(NO);
    }
}


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 <bits/stdc++.h>
using namespace std;

#define int long long

vector<int> g[200001];
int main()  {
    int n, m;
    cin >> n >> m;

    for(int i=0; i<m; ++i) {
        int a, b;
        cin >> a >> b;
        g[a].push_back(b);
    }

    int ans = false;
    for(int i=0; i<g[1].size(); ++i) {
        int t = g[1][i];
        if(find(g[t].begin(), g[t].end(), n)!=g[t].end()) {
            ans = true;
            break;
        }
    }
    if(ans) cout << "POSSIBLE" << endl;
    else cout << "IMPOSSIBLE" << endl;
    return 0;
}


Compiler output:
cc1plus: error: '::main' must return 'int'
Language: C++

#include <iostream>
#include <set>
using namespace std;
set<int> G[200005];
int dist[200005];
int N,M;
int main()
{
    cin>>N>>M;
    for(int i=1;i<=M;i++)
    {
        int x,y;
        cin>>x>>y;
        G[x].push_back(y);
        G[y].push_back(x);
    }
    for(int i=1;i<=N;i++)
    {
        if(G[1].find(i)!=G[1].end()&&G[N].find(i)!=G[N].end())
        {
            cout<<"POSSIBLE";return 0;
        }
    }
    cout<<"IMPOSSIBLE";
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:14:14: error: 'class std::set<int>' has no member named 'push_back'
   14 |         G[x].push_back(y);
      |              ^~~~~~~~~
a.cc:15:14: error: 'class std::set<int>' has no member named 'push_back'
   15 |         G[y].push_back(x);
      |              ^~~~~~~~~
Language: C++

#define fi first
#define se second
#define mk make_pair
using namespace std;
int n,m,y,x;
vector<int>v[200001];
bool b[200001];
void dfs(int p,int d){
  if(d==2)return;
  r(i,v[p].size()){
    if(!b[v[p][i]]){
      b[v[p][i]]=1;
      dfs(v[p][i],d+1);
    }
  }
}
main(){
  cin>>n>>m;
  r(i,m){
    cin>>x>>y;
    v[x].push_back(y);
    v[y].push_back(x);
  }
  dfs(1,0);
  if(b[n])cout<<"POSSIBLE"<<endl;
  else cout<<"IMPOSSIBLE"<<endl;
}

Compiler output:
a.cc:6:1: error: 'vector' does not name a type
    6 | vector<int>v[200001];
      | ^~~~~~
a.cc: In function 'void dfs(int, int)':
a.cc:10:5: error: 'i' was not declared in this scope
   10 |   r(i,v[p].size()){
      |     ^
a.cc:10:7: error: 'v' was not declared in this scope
   10 |   r(i,v[p].size()){
      |       ^
a.cc:10:3: error: 'r' was not declared in this scope
   10 |   r(i,v[p].size()){
      |   ^
a.cc: At global scope:
a.cc:17:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
   17 | main(){
      | ^~~~
a.cc: In function 'int main()':
a.cc:18:3: error: 'cin' was not declared in this scope
   18 |   cin>>n>>m;
      |   ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | #define fi first
a.cc:19:5: error: 'i' was not declared in this scope
   19 |   r(i,m){
      |     ^
a.cc:19:3: error: 'r' was not declared in this scope
   19 |   r(i,m){
      |   ^
a.cc:25:11: error: 'cout' was not declared in this scope
   25 |   if(b[n])cout<<"POSSIBLE"<<endl;
      |           ^~~~
a.cc:25:11: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:25:29: error: 'endl' was not declared in this scope
   25 |   if(b[n])cout<<"POSSIBLE"<<endl;
      |                             ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | #define fi first
a.cc:26:8: error: 'cout' was not declared in this scope
   26 |   else cout<<"IMPOSSIBLE"<<endl;
      |        ^~~~
a.cc:26:8: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:26:28: error: 'endl' was not declared in this scope
   26 |   else cout<<"IMPOSSIBLE"<<endl;
      |                            ^~~~
a.cc:26:28: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
Language: C++

#include<bits/stdc++.h>

using namespace std;

typedef long long int 	ll;
typedef pair<int,int>   ii;
typedef vector< ii >   vii;
typedef vector<int>     vi;
typedef vector< vi >   vvi;

#define mm 100005
#define nn 1005
#define mod 1000000007
#define pb push_back
#define mp make_pair
#define ff first
#define ss second
#define sz(a) (int)(a.size())
#define all(a) a.begin(),a.end()
#define forn(i, n) for(int i = 0; i < int(n); ++i)
#define rep(i, a, b) for(int i = int(a); i <= int(b); ++i)
#define cases int t;  cin>>t;   while(t--)
#define check(a,n) forn(iiii,int(n)) cout<<ll(a[iiii])<<" "; cout<<endl
#define fast_io ios_base::sync_with_stdio(false);cin.tie(NULL);cout.tie(NULL)
vi g[2*mm];


int main()
{
    fast_io;
    int n,m;
    cin>>n>>m;
    forn(i,m)
        cin>>v>>u,g[v].pb(u),g[u].pb(v);
    for(auto i:g[1])
    {
        for(auto j:g[j])
            if(j==n)
               return cout<<"POSSIBLE",0;
    }
    cout<<"IMPOSSIBLE";
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:34:14: error: 'v' was not declared in this scope
   34 |         cin>>v>>u,g[v].pb(u),g[u].pb(v);
      |              ^
a.cc:34:17: error: 'u' was not declared in this scope
   34 |         cin>>v>>u,g[v].pb(u),g[u].pb(v);
      |                 ^
a.cc:37:22: error: 'j' was not declared in this scope
   37 |         for(auto j:g[j])
      |                      ^
Language: C++

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

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

             for(int i=0; i<m; ++i) {
                         int a, b;
                                 cin >> a >> b;
                                         g[a].push_back(b);
                                             }

                 int ans = false;
                     for(int i=0; i<g[1].size(); ++i) {
                                 int t = g[1][i];
                                         if(find(g[t].begin(), g[t].end(), n)!=g[t].end()) {
                                                         ans = true;
                                                                     break;
                                                                             }
                                             }
                         if(ans) cout << "POSSIBLE" << endl;
                             else cout << "IMPOSSIBLE" << endl;
                             return 0;
                                         }
                     }
             }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:42: error: 'g' was not declared in this scope
   11 |                                          g[a].push_back(b);
      |                                          ^
a.cc:15:37: error: 'g' was not declared in this scope
   15 |                      for(int i=0; i<g[1].size(); ++i) {
      |                                     ^
a.cc: At global scope:
a.cc:26:22: error: expected declaration before '}' token
   26 |                      }
      |                      ^
a.cc:27:14: error: expected declaration before '}' token
   27 |              }
      |              ^
a.cc:28:1: error: expected declaration before '}' token
   28 | }
      | ^
Language: Java

import java.io.*;
import java.util.ArrayList;
import java.util.StringTokenizer;

public class Voyage79C {
    public static void main(String[] args) throws IOException {
        FastScanner in = new FastScanner();
        int n = in.nextInt();
        int m = in.nextInt();
        //0 to n-1
        ArrayList<ArrayList<Integer>> graph = new ArrayList<>();
        for (int i = 0; i < n; i++) {
            graph.add(new ArrayList<>());
        }
        
        for (int i = 0; i < m; i++) {
            int a = in.nextInt() - 1;
            int b = in.nextInt() - 1;
            graph.get(a).add(b);
            graph.get(b).add(a);
        }
        
        for (int i = 0; i < graph.get(0).size(); i++) {
            for (int j = 0; j < graph.get(graph.get(0).get(i)).size(); j++) {
                if (graph.get(graph.get(0).get(i)).get(j) == n-1) {
                    System.out.println("POSSIBLE");
                    return;
                }
            }
        }
        System.out.println("IMPOSSIBLE");
    }

    public static class FastScanner {
        BufferedReader br;
        StringTokenizer st;

        public FastScanner(String s) {
            try {
                br = new BufferedReader(new FileReader(s));
            } catch (FileNotFoundException e) {
                // TODO Auto-generated catch block
                e.printStackTrace();
            }
        }

        public FastScanner() {
            br = new BufferedReader(new InputStreamReader(System.in));
        }

        String nextToken() {
            while (st == null || !st.hasMoreElements()) {
                try {
                    st = new StringTokenizer(br.readLine());
                } catch (IOException e) {
                    // TODO Auto-generated catch block
                    e.printStackTrace();
                }
            }
            return st.nextToken();
        }

        String nextLine() {
            st = null;
            try {
                return br.readLine();
            } catch (IOException e) {
                // TODO Auto-generated catch block
                e.printStackTrace();
            }
            return null;
        }

        int nextInt() {
            return Integer.parseInt(nextToken());
        }

        long nextLong() {
            return Long.parseLong(nextToken());
        }

        double nextDouble() {
            return Double.parseDouble(nextToken());
        }
    }
}


Compiler output:
Main.java:5: error: class Voyage79C is public, should be declared in a file named Voyage79C.java
public class Voyage79C {
       ^
1 error
Language: Java

package main;

import util.FastScanner;

import java.io.PrintWriter;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;

public class TaskC {
	public void solve(int testNumber, FastScanner in, PrintWriter out) {
		int n = in.nextInt();
		int m = in.nextInt();
		List<Integer>[] adj = new List[n];
		for (int i = 0; i < n; i++) {
			adj[i] = new ArrayList<>();
		}
		for (int i = 0; i < m; i++) {
			int a = in.nextInt() - 1;
			int b = in.nextInt() - 1;
			adj[a].add(b);
			adj[b].add(a);
		}
		int[] d = bfs(0, adj);
		out.println(d[n - 1] <= 2 ? "POSSIBLE" : "IMPOSSIBLE");
	}

	private int[] bfs(int s, List<Integer>[] adj) {
		int n = adj.length;
		int[] q = new int[n];
		int[] d = new int[n];
		Arrays.fill(d, n);
		d[s] = 0;
		q[0] = s;
		int qt = 0;
		int qh = 1;
		while (qt < qh) {
			int i = q[qt++];
			for (int j : adj[i]) {
				if (d[j] > 1 + d[i]) {
					d[j] = 1 + d[i];
					q[qh++] = j;
				}
			}
		}
		return d;
	}

}


Compiler output:
Main.java:10: error: class TaskC is public, should be declared in a file named TaskC.java
public class TaskC {
       ^
Main.java:3: error: package util does not exist
import util.FastScanner;
           ^
Main.java:11: error: cannot find symbol
	public void solve(int testNumber, FastScanner in, PrintWriter out) {
	                                  ^
  symbol:   class FastScanner
  location: class TaskC
Note: Main.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
3 errors
Language: C++

#include<iostream>
#include<string.h>
#include<algorithm>
#include<stdio.h>
#include<math.h>
#include<vector>
#include<map>
#include<set>
#include<time.h> 
#define debug(a) cout << "*" << a << "*" << endl
#define ls	(k << 1)
#define rs	((k << 1) | 1)
#define mid	((l + r) >> 1)
using namespace std;
typedef long long ll;
ll a[55], m, n;
inline ll get(ll a)
{
	if (a < 50)
	return  0;
	return (a - 49) * 50;
}
ll low(ll l, ll r, ll k)
{
	while (l < r)
	{
		ll m = l + r >> 1;
		if (get(m) >= k)	r = m;
		else l = m + 1;
	}
	return l;
}
int main()
{
	while (~scanf("%lld", &m))
	{
		//m = low(1, m, m);
		memset(a, 0, sizeof(a)); 
		printf("50\n");
		n = m % 50;
		m /= 50;
		for (int i = 0; i < n; i++)	a[i] = 50;
		if (m)
			for (int i = 0; i < 50; i++) a[i] += (49 - n + m);
		for (int i = 0; i < 50; i++)	printf("%lld%c", a[i], i == 49 ? '\n' : ' ');
	} 

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

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

using ll = long long;

int main() {
  ll K; cin >> K;
  int N = 50;
  cout << N << '\n';
  for (int i = 0; i < N; i++) {
    cour << (N+1) * (K / N + (i < K % N)) + (N-1) - K << " \n"[i+1==N];
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:5: error: 'cour' was not declared in this scope
   11 |     cour << (N+1) * (K / N + (i < K % N)) + (N-1) - K << " \n"[i+1==N];
      |     ^~~~
Language: Java

import java.util.*;
public class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    long k = sc.nextLong();
    System.out.println(50);
    long p = k/50;
    long q = k%50;
    for(int i=0;i<q;i++)System.out.print((49-(q-1)+p+50)+" ");
    for(int i=q;i<50;i++)System.out.print((49-q+p)+" ");
  }
}

Compiler output:
Main.java:10: error: incompatible types: possible lossy conversion from long to int
    for(int i=q;i<50;i++)System.out.print((49-q+p)+" ");
              ^
1 error
Language: C++

#include <cstdio>
#include <iostream>
#include <cassert>
#include <string>
#include <algorithm>
#include <cstring>
#include <utility>
#include <vector>
#include <stack>
#include <queue>
#include <map>
#include <set>
#include <cmath>
#include <deque>
#include <unordered_map>
using namespace std;
typedef long long LL;
typedef pair<int, int> pii;
typedef pair<LL, LL> pll;
LL x[50];

int main() {
    LL K;
    scanf("%lld", &K);
    printf("%d\n", 50);
    LL rd = K / 50;
    for (int i = 0; i < 50; i++)
        x[i] = N - 1 + rd;
    rd %= 50;
    for (int i = 0; i < rd; i++) {
        int idx;
        for (idx = 0; i < 50; i++)
            if (x[i] <= x[idx]) idx = i;
        for (int i = 0; i < 50; i++) {
            if (i == idx) x[i] += 50;
            else x[i]--;
        }
    }
    for (int i = 0; i < 50; i++)
        printf("%lld", x[i]);
    puts("");
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:28:16: error: 'N' was not declared in this scope
   28 |         x[i] = N - 1 + rd;
      |                ^
Language: C++

#include <cstdio>
#include <iostream>
#include <cassert>
#include <string>
#include <algorithm>
#include <cstring>
#include <utility>
#include <vector>
#include <stack>
#include <queue>
#include <map>
#include <set>
#include <cmath>
#include <deque>
#include <unordered_map>
using namespace std;
typedef long long LL;
typedef pair<int, int> pii;
typedef pair<LL, LL> pll;

int main() {
    LL K;
    scanf("%lld", &K);
    printf("%d\n", 2);
    LL rd = K / 2;
    LL x1 = (rd + 1), x2 = (rd + 1);
    if (K % 2) {
        x1 += 2;
        x2--;
    }
    if (x1 > (LL)1e16 + 100) asset(false);
    printf("%lld %lld\n", x1, x2);
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:31:30: error: 'asset' was not declared in this scope; did you mean 'assert'?
   31 |     if (x1 > (LL)1e16 + 100) asset(false);
      |                              ^~~~~
      |                              assert
Language: C++

#include"stdafx.h"
#include<iostream>
using namespace std;

int main() {
	long long K;
	long long p;
	int q;
	const int cntC = 50;
	long long C[cntC];
	cin >> K;

	p = (int)(K / cntC);
	q = K - (p * cntC);

	for (int i = 0; i < q; i++) {
		C[i] = p + cntC - i;
	}
	for (int i = q; i < cntC; i++) {
		C[i] = p + cntC - i - 1;
	}
	cout << C[0];
	for (int i = 1; i < cntC; i++) {
		cout << " " << C[i];
	}
	cin >> K;
	return 0;
}


Compiler output:
a.cc:1:9: fatal error: stdafx.h: No such file or directory
    1 | #include"stdafx.h"
      |         ^~~~~~~~~~
compilation terminated.