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

#include <iostream>
#include<iomanip>
#include <set>
#include <vector>
#include <map>
#include <string>
#include <cstring>
#include <algorithm>
#include <cmath>
#include <cstdio>
#include <queue>
#include <stack>
using namespace std;

const int NN=5e6+10;

int n;
int a[100][100];


int main()
{
    scanf("%d",&n);
    for(int i=1;i<=50;i++){
        a[i][1]=50;
    }
    for(int i=1;i<=50;i++){
        for(int j=2;j<=50;j++){
            if(j>i){
                a[i][j]=a[i][i]-2;
            }
            else{
                a[i][j]=a[i][j-1]-1;
            }
        }
    }
    /*
    for(int i=1;i<=50;i++){
        for(int j=1;j<=50;j++){
            printf("%d ",a[i][j]);
        }
        printf("\n");
    }*/
    printf("50\n");
    int ans=n/50;
    if(n==50) ans=0;
    int ans2=n%50;
    if(ans2==0) ans2=50;
    printf("%d",a[ans2][1]+ans);
    for(int i=2;i<=50;i++){
        printf(" %d",a[ans2][i]+ans);
    }
    printf("\n");


Compiler output:
a.cc: In function 'int main()':
a.cc:53:18: error: expected '}' at end of input
   53 |     printf("\n");
      |                  ^
a.cc:22:1: note: to match this '{'
   22 | {
      | ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define endl '\n'
#define ALL(V) (V).begin(), (V).end()
#define ALLR(V) (V).rbegin(), (V).rend()

template <typename T> using V = vector<T>;
template <typename T> using VV = V<V<T>>;
template <typename T, typename U> using P = pair<T, U>;
using ll = int64_t;
using PLL = P<ll, ll>;

template <typename T> const T& var_min(const T &t) { return t; }
template <typename T> const T& var_max(const T &t) { return t; }
template <typename Head, typename... Tail> const Head& var_min(const Head &head, const Tail&... tail) { return min(head, var_min(tail...)); }
template <typename Head, typename... Tail> const Head& var_max(const Head &head, const Tail&... tail) { return max(head, var_max(tail...)); }
template <typename T, typename... Tail> void chmin(T &t, const Tail&... tail) { t = var_min(t, tail...); }
template <typename T, typename... Tail> void chmax(T &t, const Tail&... tail) { t = var_max(t, tail...); }

void init_io() {
    cin.tie(0);
    ios_base::sync_with_stdio(false);
    cout << fixed << setprecision(30);
}

#define DEBUGGING
#ifdef DEBUGGING
#include "../debug.cpp"
#else
#define DEBUG(...) 0
#endif

int main() {
    ll K;
    cin >> K;
    ll N = 50;
    V<ll> ans(N);
    iota(ALL(ans), 0ll);
    ll times = K / N;
    for(ll &e : ans) e += times;
    ll rest = K - times * N;
    for(ll loops = 0; loops < rest; loops++) {
        ans[loops] += N;
        for(ll i = 0; i < N; i++) if(i != loops) ans[i]--;
    }
    cout << ans.size() << endl;
    for(ll e : ans) cout << e << ' ';
    cout << endl;
}


Compiler output:
a.cc:28:10: fatal error: ../debug.cpp: No such file or directory
   28 | #include "../debug.cpp"
      |          ^~~~~~~~~~~~~~
compilation terminated.
Language: C++

#include <bits/stdc++.h>
using namespace std;
long long K, rec[60], ans[60];
const int N = 50;
int main() {
    cin >> K;
    int div = K / N, mo = K % N;
    for (int i=0;i<N;i++)
        rec[i] = div + (i < mo);
    for (int i=0;i<N;i++) {
        long long sum = 0;
        for (int j=0;j<N;j++){
            if(i != j)
                sum += rec[j];}
        ans[i] = N * (rec[i] + 1) - sum;
    }
    cout << N << endl;
    for (int i=0;i<N;i++) cout << ans[i]<<" ";
    return 0;

Compiler output:
a.cc: In function 'int main()':
a.cc:19:14: error: expected '}' at end of input
   19 |     return 0;
      |              ^
a.cc:5:12: note: to match this '{'
    5 | int main() {
      |            ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
typedef long long int;
int K, rec[60], ans[60];
const int N = 50;
int_32 main() {
	cin >> K;
	if (K == 0) {
		cout << 2 << endl;
		cout << 1 << " " << 1;
		exit(0);
	}
	int div = K / N, mo = K % N;
	iota(ans, ans + N, 0);
	for (int i=0;i<N;i++)
		ans[i] += div;
	if (mo == 0)
		for (int i = 0; i < N; i++)
			ans[i] += (K - 1) / 50;
	else {
		for (int i=0;i< mo;i++) {
			ans[i] += 50;
			for (int j=0;j<N;j++)
				if(i != j)
					ans[j]--;
		}
	}
	cout << N << endl;
	for (int i=0;i<N;i++) cout << ans[i]<<" ";
	return 0;
}

Compiler output:
a.cc:3:19: error: declaration does not declare anything [-fpermissive]
    3 | typedef long long int;
      |                   ^~~
a.cc:6:1: error: 'int_32' does not name a type
    6 | int_32 main() {
      | ^~~~~~
Language: C++

#include <iostream>
using namespace std;
int K, rec[60], ans[60];
const int N = 50;
int main() {
	cin >> K;
	if (K == 0) {
		cout << 2 << endl;
		cout << 1 << " " << 1;
		exit(0);
	}
	int div = K / N, mo = K % N;
	iota(ans, ans + N, 0);
	for (int i=0;i<N;i++)
		ans[i] = div;
	if (mo == 0)
		for (int i = 0; i < N; i++)
			ans[i] += (K - 1) / 50;
	else {
		for (int i=0;i< mo;i++) {
			ans[i] += 50;
			for (int j=0;j<N;j++)
				if(i != j)
					ans[j]--;
		}
	}
	cout << N << endl;
	for (int i=0;i<N;i++) cout << ans[i]<<" ";
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:9: error: 'iota' was not declared in this scope
   13 |         iota(ans, ans + N, 0);
      |         ^~~~
Language: C++

#include <iostream>
using namespace std;
int K, rec[60], ans[60];
const int N = 50;
int main() {
	cin >> K;
	if (k == 0) {
		cout << 2 << endl;
		cout << 1 << " " << 1;
		exit(0);
	}
	int div = K / N, mo = K % N;
	for (int i=0;i<N;i++)
		ans[i] = div + (i);
	if (mo == 0)
		for (int i = 0; i < N; i++)
			ans[i]++;
	else {
		for (int i=0;i< mo;i++) {
			ans[i] += 50;
			for (int j=0;j<N;j++)
				if(i != j)
					ans[j]--;
		}
	}
	cout << N << endl;
	for (int i=0;i<N;i++) cout << ans[i]<<" ";
	return 0;
}

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

#include <iostream>
using namespace std;
int K, rec[60], ans[60];
const int N = 50;
int main() {
	cin >> K;
	if (k == 0) {
		cout << 2 << endl;
		cout << 1 << " " << 1;
		exit(0);
	}
	int div = K / N, mo = K % N;
	for (int i=0;i<N;i++)
		ans[i] = div + (i + 1);
	if (mo == 0)
		for (int i = 0; i < N; i++)
			ans[i]++;
	else {
		for (int i=0;i< mo;i++) {
			ans[i] += 50;
			for (int j=0;j<N;j++)
				if(i != j)
					ans[j]--;
		}
	}
	cout << N << endl;
	for (int i=0;i<N;i++) cout << ans[i]<<" ";
	return 0;
}

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

#include<bits/stdc++.h>
#define INF 1e9
#define llINF 1e18
#define MOD 1000000007
#define pb push_back
#define mp make_pair 
#define F first
#define S second
#define ll long long
#define vi vector<ll>
#define vvi vector<vi>
#define substr(s,f,t) (s.substr(f-1,t-f+1))
#define ALL(a) (a).begin(),(a).end()
#define Yes(hoge) cout<<((hoge)?"Yes":"No")<<endl;
#define YES(hoge) cout<<((hoge)?"YES":"NO")<<endl;
using namespace std;
struct Grid{ll x,y,t;};
struct Edge{ll to,cost;};
struct Graph{vector<vector<Edge>>E;int V;
  const ll Inf = llINF;const int MAX_V=201010;vector<ll>d;
  Graph(int n):E(n){d.resize(MAX_V);E.resize(n);V=n;}
  void init(){for(int i=0;i<MAX_V;i++)d[i]=Inf;}
  void add_edge(ll from,ll to,ll cost){E[from].pb({to,cost});}
};
int main(){
  cin.tie(0);
  ios::sync_with_stdio(false);
  ll k;
  cin>>k;
  if(k<=(ll)2*(1e16)){
    cout<<2<<endl;
    if(k%2){
      cout<<k/2+2<<" "<<k/2<<endl;
    }else{
      cout<<k/2+1<<" "<<k/2<<endl;
    }
  }else{
    ll num=k/((ll)(1e16));
    if(k%((ll)(1e16))){
      num++;
    }
    cout<<num<<endl;
    ll cnt=k;
    ll numm=num-cnt%num;
    vi ans;
    for(int i=0;i<numm;i++){
      ans.pb(n-1+cnt/num);
    }
    for(int i=numm;i<num;i++){
      ans.pb(n-1+cnt/num-(numm));
    }
    for(int i=0;i<ans.size();i++)
      cout<<ans[i]<<" ";
    cout<<endl;
  }
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:47:14: error: 'n' was not declared in this scope
   47 |       ans.pb(n-1+cnt/num);
      |              ^
a.cc:50:14: error: 'n' was not declared in this scope
   50 |       ans.pb(n-1+cnt/num-(numm));
      |              ^
Language: C++

#include "bits/stdc++.h"
#define esc(ret) cout << ret << endl,quick_exit(0)
#define fcout(d) cout << fixed << setprecision(d)
#define repU(i,s,t) for(int i = (int)(s); i <= (int)(t); ++i)
#define repD(i,t,s) for(int i = (int)(t); i >= (int)(s); --i)
#define rep(i,n) repU(i,0,n - 1)
#define rep1(i,n) repU(i,1,n)
#define all(v) begin(v),end(v)
#define vct vector
#define prique priority_queue
#define l_bnd lower_bound
#define u_bnd upper_bound
#define puf push_front
#define pub push_back
#define pof pop_front
#define pob pop_back
#define mkp make_pair
#define mkt make_tuple
#define fir first
#define sec second
#define qceil(n,d) ((n) > 0 ? ((n) - 1) / (d) + 1 : (n) / (d))
#define parity(a,b) (a & 1 == b & 1)

using namespace std;
typedef long long ll;
typedef unsigned long long ull;
typedef double db;
typedef pair<int,int> pii;

const pii dir[] = { {1,0},{0,1},{-1,0},{0,-1},{1,1},{-1,1},{-1,-1},{1,-1} };
const int inf32 = (1 << 30) - 1;
const ll inf64 = (1LL << 62) - 1;
const int mod = 1e9 + 7;

ll K;

int main(){
	cin.tie(0);
	ios::sync_with_stdio(false);
	
	cin >> K;
	ll q = K / 50,r = K % 50;
	ll a = q + 49;
	for(int i = 0; i < r; ++i){
		cout << a + 51 - r << ' ';
		el
	}
	for(int i = r; i < 50; ++i){
		cout << a - r << ' ';
	}
	cout << endl;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:46:17: error: 'el' was not declared in this scope; did you mean 'll'?
   46 |                 el
      |                 ^~
      |                 ll
Language: C++

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

//出力
void Yes(){ cout << "Yes" << endl; }
void yes(){ cout << "yes" << endl; }
void No(){ cout << "No" << endl; }
void no(){ cout << "no" << endl; }
void Possible(){ cout << "Possible" << endl; }
void possible(){ cout << "possible" << endl; }
void Imossible(){ cout << "Impossible" << endl; }
void imossible(){ cout << "impossible" << endl; }

//マクロ
#define INF 10010010010010010
#define chmin(a, b) a = min(a, b)
#define chmax(a, b) a = max(a, b)
#define sort(a) sort(a.begin(), a.end())
#define reverse(a) reverse(a.begin(), a.end())
#define MOD 1000000007

int main(){

    long long k; cin >> k;
    cout << 2 << endl;
    
    if(k % 2 = 0){
	cout << (k / 2) + 1 << " " << (k / 2) + 1 << endl;
    }else{
	cout << (k / 2) + 2 << " " << (k / 2) << endl;
    }
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:27:10: error: lvalue required as left operand of assignment
   27 |     if(k % 2 = 0){
      |        ~~^~~
Language: C++

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

//出力
void Yes(){ cout << "Yes" << endl; }
void yes(){ cout << "yes" << endl; }
void No(){ cout << "No" << endl; }
void no(){ cout << "no" << endl; }
void Possible(){ cout << "Possible" << endl; }
void possible(){ cout << "possible" << endl; }
void Imossible(){ cout << "Impossible" << endl; }
void imossible(){ cout << "impossible" << endl; }

//マクロ
#define INF 10010010010010010
#define chmin(a, b) a = min(a, b)
#define chmax(a, b) a = max(a, b)
#define sort(a) sort(a.begin(), a.end())
#define reverse(a) reverse(a.begin(), a.end())
#define MOD 1000000007

int main(){

    int k; cin >> k;
    cout << 2 << endl;
    
    if(k % 2 = 0){
	cout << (k / 2) + 1 << " " << (k / 2) + 1 << endl;
    }else{
	cout << (k / 2) + 2 << " " << (k / 2) << endl;
    }
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:27:10: error: lvalue required as left operand of assignment
   27 |     if(k % 2 = 0){
      |        ~~^~~
Language: C++

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

//出力
void Yes(){ cout << "Yes" << endl; }
void yes(){ cout << "yes" << endl; }
void No(){ cout << "No" << endl; }
void no(){ cout << "no" << endl; }
void Possible(){ cout << "Possible" << endl; }
void possible(){ cout << "possible" << endl; }
void Imossible(){ cout << "Impossible" << endl; }
void imossible(){ cout << "impossible" << endl; }

//マクロ
#define INF 10010010010010010
#define chmin(a, b) a = min(a, b)
#define chmax(a, b) a = max(a, b)
#define sort(a) sort(a.begin(), a.end())
#define reverse(a) reverse(a.begin(), a.end())
#define MOD 1000000007

int main(){

    int k; cin >> k;
    cout << 2 << endl;
    
    if(k % 2 = 0){
	cout << (k / 2) + 1 << " " << (k / 2) + 1 << endl;
    }else{
	cout << (k / 2) + 2 << " " << (k / 2) << endl;

    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:27:10: error: lvalue required as left operand of assignment
   27 |     if(k % 2 = 0){
      |        ~~^~~
a.cc:33:2: error: expected '}' at end of input
   33 | }
      |  ^
a.cc:22:11: note: to match this '{'
   22 | int main(){
      |           ^
Language: C++

// D.

#include <iostream>
#include <algorithm>

using namespace std;

typedef long long LL;

int main(int argc, char *argv[]) {
	const LL n = 16;
	LL k;
	cin >> k;

	LL a[n];
	fill(a, a + 16, k / 16 + 15);
	for (LL i = 0; i < k % 16; ++i) {
		int t = i % 16;
		for (int j = 0; j < 16; ++j) {
			if (t == j) {
				a[j] += 16;
			} else {
				a[j] -= 1;
			}
		}
	}

	cout << n << endl;
	for (int i = 0; i < n; ++i) {
		if (i) {
			cout << " ";
		}
		cout << a[i];
	}
	cout << endl;


Compiler output:
a.cc: In function 'int main(int, char**)':
a.cc:35:22: error: expected '}' at end of input
   35 |         cout << endl;
      |                      ^
a.cc:10:34: note: to match this '{'
   10 | int main(int argc, char *argv[]) {
      |                                  ^
Language: C++

#include<vector>
#include<iostream>
#include<string>
#include<algorithm>
#include<math.h>
#include<map>
#include<functional>
#include<queue>
#include<stack>
#include<string.h>
#include<list>
#include<limits>
#include<bitset>
#include<ctype.h>
#include<set>
using namespace std;
typedef long long int ll;
typedef pair<int,int> P;
const ll MOD=1000000007;
const ll INF=1000000000;
int main() {   
    ll k;]
    cin>>k;
    ll n=30;
    cout<<n<<endl;
    ll a[31];
    for(ll i=0;i<n;i++){
        a[i]=n-1+k/n;
    }
    for(ll i=0;i<k%n;i++){
        for(ll j=0;j<n;j++){
            if(i==j){
                a[j]+=n;
            }else{
                a[j]--;
            }
        }
    }
    for(int i=0;i<n;i++){
        cout<<a[i];
        if(i==n-1){
            cout<<endl;
        }else{
            cout<<" ";
        }
    }
    getchar();
    getchar();
}

                           


Compiler output:
a.cc: In function 'int main()':
a.cc:22:10: error: expected primary-expression before ']' token
   22 |     ll k;]
      |          ^
Language: C++

#include<vector>
#include<iostream>
#include<string>
#include<algorithm>
#include<math.h>
#include<map>
#include<functional>
#include<queue>
#include<stack>
#include<string.h>
#include<list>
#include<limits>
#include<bitset>
#include<ctype.h>
#include<set>
using namespace std;
typedef long long int ll;
typedef pair<int,int> P;
const ll MOD=1000000007;
const ll INF=1000000000;
int main() {   
    ll k;
    cin>>k;
    ll n=30;
    ll a[31];
    for(ll i=0;i<n;i++){
        a[i]=i+k/n;
    }
    for(ll i=0;i<=k%n;i++){
        if(i==k%n){
            a[i]+=n;
        }else{
            a[i]-=1;
        }
    }
    for(int i=0;i<n;i++){
        cout<<a[i];
        if(i==n-1){
            cout<<endl;
        }else{
            cout<<" ";
        }
    }
    getchar();
    getchar();
}

                           
#include<vector>
#include<iostream>
#include<string>
#include<algorithm>
#include<math.h>
#include<map>
#include<functional>
#include<queue>
#include<stack>
#include<string.h>
#include<list>
#include<limits>
#include<bitset>
#include<ctype.h>
#include<set>
using namespace std;
typedef long long int ll;
typedef pair<int,int> P;
const ll MOD=1000000007;
const ll INF=1000000000;
int main() {   
    ll k;
    cin>>k;
    ll n=30;
    ll a[31];
    for(ll i=0;i<n;i++){
        a[i]=i+k/n;
    }
    for(ll i=0;i<=k%n;i++){
        if(i==k%n){
            a[i]+=n;
        }else{
            a[i]-=1;
        }
    }
    for(int i=0;i<n;i++){
        cout<<a[i];
        if(i==n-1){
            cout<<endl;
        }else{
            cout<<" ";
        }
    }
    getchar();
    getchar();
}

                           


Compiler output:
a.cc:67:10: error: redefinition of 'const ll MOD'
   67 | const ll MOD=1000000007;
      |          ^~~
a.cc:19:10: note: 'const ll MOD' previously defined here
   19 | const ll MOD=1000000007;
      |          ^~~
a.cc:68:10: error: redefinition of 'const ll INF'
   68 | const ll INF=1000000000;
      |          ^~~
a.cc:20:10: note: 'const ll INF' previously defined here
   20 | const ll INF=1000000000;
      |          ^~~
a.cc:69:5: error: redefinition of 'int main()'
   69 | int main() {
      |     ^~~~
a.cc:21:5: note: 'int main()' previously defined here
   21 | int main() {
      |     ^~~~
Language: C++

#include <bits/stdc++.h>

using namespace std;
int cnt[26];
int main()
{
    long long k;
    cin>>k;
    long long mxk=10000000000000000;
    pr[0]=49;
    vector<long long> pr(50,0);
    for(int i=0;i<50;i++){
        pr[i]+=min(mxk,k);
        k-=min(mxk,k);
    }
    for(int i=0;i<50;i++){
        cout<<pr[i]<<" \n"[i==49];
    }
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:5: error: 'pr' was not declared in this scope
   10 |     pr[0]=49;
      |     ^~
Language: C++

k = input()
epoch = k / 50
tweak = 50 - k % 50

ans = [50 + epoch for _ in range(50)]
for i in range(50):
    if i < tweak:
        ans[i] += -50 + tweak - 1
    else:
        ans[i] += tweak

ans_st = " ".join(map(str, ans))
print 50
print ans_st


Compiler output:
a.cc:1:1: error: 'k' does not name a type
    1 | k = input()
      | ^
Language: C++

#include <iostream>
#include <algorithm>
#include <array>
#include <math.h>
#include <set>
#include <stdlib.h>
#include <string>
#include <vector>

#define INT_MAX 2000000000
#define MOD 1000000007
#define ll long long
#define rep(i,a,b) for(i = (a); i < (b); i++)
#define bitget(a,b) (((a) >> (b)) & 1)

using namespace std;

int i, j, k;

int main() {
	_int64 k;
	cin >> k;
	_int64 a[50];
	rep(i, 0, 50) {
		a[i] = k / 50 + 50;
	}
	int b;
	b = 50 - k % 50;
	rep(i, 0, k % 50) {
		a[i] += b;
	}
	rep(i, k%50, 50) {
		a[i] = a[i] - 50 + b - 1;;
	}
	rep(i, 0, 50) {
		cout << a[i];
		if (i != 49)
			cout << " ";
	}
	cout << endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:21:9: error: '_int64' was not declared in this scope; did you mean 'sinf64'?
   21 |         _int64 k;
      |         ^~~~~~
      |         sinf64
a.cc:23:15: error: expected ';' before 'a'
   23 |         _int64 a[50];
      |               ^~
      |               ;
a.cc:25:17: error: 'a' was not declared in this scope
   25 |                 a[i] = k / 50 + 50;
      |                 ^
a.cc:30:17: error: 'a' was not declared in this scope
   30 |                 a[i] += b;
      |                 ^
a.cc:33:17: error: 'a' was not declared in this scope
   33 |                 a[i] = a[i] - 50 + b - 1;;
      |                 ^
a.cc:36:25: error: 'a' was not declared in this scope
   36 |                 cout << a[i];
      |                         ^
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>
#define imfor(i, n) for(int i = 0; i < n; i++)
using namespace std;
 
int main() {
    long long k;
    cin >> k;
    cout << 50 << endl;
    imfor(i, 50) {
        cout << i + (i + k) / 50 <<< " ";
    }
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:21:36: error: expected primary-expression before '<' token
   21 |         cout << i + (i + k) / 50 <<< " ";
      |                                    ^
Language: C++

using namespace std;

typedef unsigned long long ull;
typedef long long ll;

#define rep(i,x) for(int i=0;i<x;i++)

int main()
{
  ll K;
  ll a[50];

  cin >> K;

  ll t = (ll)(K/50);

  cout << 50 << endl;
  rep(i,50)
  {
    a[i] = i-K%50;
    if(a[i]<0)
      a[i]+=51;
    cout << a[i]+t << " ";
  }

  cout << endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:3: error: 'cin' was not declared in this scope
   13 |   cin >> K;
      |   ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | using namespace std;
a.cc:17:3: error: 'cout' was not declared in this scope
   17 |   cout << 50 << endl;
      |   ^~~~
a.cc:17:3: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:17:17: error: 'endl' was not declared in this scope
   17 |   cout << 50 << endl;
      |                 ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | using namespace std;
Language: C++

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

int main(){
	long long N;
	cin >> N;
	1
	
	cout << 2 << endl;
	if( N % 2 == 0 ){
		cout << N / 2 + 1 << " " << N / 2 + 1 << endl;
	}else{
		cout << N / 2 + 1 - 1 << " " << N / 2 + 1 + 2 << endl;
	}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:10: error: expected ';' before 'cout'
    8 |         1
      |          ^
      |          ;
    9 | 
   10 |         cout << 2 << endl;
      |         ~~~~
Language: C++

#include<iostream>
using namespace std;
int main()
{
  int K, N = 50, m, arr[N];
  cin >> K;
  for(int i=0; i<N; i++){
    arr[i]=i;
  }
  for(int i=0; i<K; i++){
    m=i%N;
    arr[m] = arr[m]+N+1;
    for(int j=0; j<N; j++){
      arr[j] = arr[j]-1;
    }
  }
  cout << N << "\n";

 #include<iostream>
using namespace std;
int main()
{
  int K, N = 50, m, arr[N];
  cin >> K;
  for(int i=0; i<N; i++){
    arr[i]=i;
  }
  for(int i=0; i<K; i++){
    m=i%N;
    arr[m] = arr[m]+N+1;
    for(int j=0; j<N; j++){
      arr[j] = arr[j]-1;
    }
  }
  cout << N << "\n";

  cout << arr[0] << ' ' << arr[1] << ' ' << arr[2] << ' ' << arr[3] << ' ' << arr[4] << ' ' << arr[5] << ' ' << arr[6] << ' ' << arr[7] << ' ' << arr[8] << ' ' << arr[9] << ' ' << arr[10] << ' ' << arr[11] << ' ' << arr[12] << ' ' << arr[13] << ' ' << arr[14] << ' ' << arr[15] << ' ' << arr[16] << ' ' << arr[17] << ' ' << arr[18] << ' ' << arr[19] << ' ' << arr[20] << ' ' << arr[21] << ' ' << arr[22] << ' ' << arr[23] << ' ' << arr[24] << ' ' << arr[25] << ' ' << arr[26] << ' ' << arr[27] << ' ' << arr[28] << ' ' << arr[29] << ' ' << arr[30] << ' ' << arr[31] << ' ' << arr[32] << ' ' << arr[33] << ' ' << arr[34] << ' ' << arr[35] << ' ' << arr[36] << ' ' << arr[37] << ' ' << arr[38] << ' ' << arr[39] << ' ' << arr[40] << ' ' << arr[41] << ' ' << arr[42] << ' ' << arr[43] << ' ' << arr[44] << ' ' << arr[45] << ' ' << arr[46] << ' ' << arr[47] << ' ' << arr[48] << ' ' << arr[49] << endl;
  
  return 0;
}
  
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:21:9: warning: empty parentheses were disambiguated as a function declaration [-Wvexing-parse]
   21 | int main()
      |         ^~
a.cc:21:9: note: remove parentheses to default-initialize a variable
   21 | int main()
      |         ^~
      |         --
a.cc:21:9: note: or replace parentheses with braces to value-initialize a variable
a.cc:22:1: error: a function-definition is not allowed here before '{' token
   22 | {
      | ^
Language: C++

#include <stdio.h>
#include <algorithm>
#include <math.h>
#include <conio.h>

int data[50];

int main()
{
	long long int K;
	scanf("%lld", &K);

	if (K < 1)
	{
		printf("4\n3 3 3 3\n");
		return 0;
	}
	else if (K == 1)
	{
		printf("3\n1 0 3\n");
	}
	else if (2 <= K && K <= 50)
	{
		printf("%lld\n%lld", K, K);
		for (long long int a = 1; a < K; ++a)
		{
			printf(" %lld", K);
		}
		puts("");
	}
	else
	{
		for (int a = 0; a < 50; ++a)
		{
			data[((K % 50) + a) % 50] = K - a;
		}


		printf("%lld\n%lld", 50LL, data[0]);

		for (int a = 1; a < 50; ++a)
		{
			printf(" %lld", data[a]);
		}
		puts("");

	}

	_getch();


	return 0;
}

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

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

using namespace std;

#define ll long long



int main(){
  ll K;
  ll q,c;
  cin >> K;

  cout << "50" << endl;
  vector <ll> result(50,49);
  q = K/50;
  c = K%50;

  for(ll i = 0;i<50;i++){a[i]+=q;};
  for(ll i =0;i<c;i++){
    for(ll j =0;j<50;j++){
      a[j]--;
    }
    a[i]+=51;
  }


  for(i = 0;i<50;i++){
    cout << a[i] << " ";
  }
  cout << endl;
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:21:26: error: 'a' was not declared in this scope
   21 |   for(ll i = 0;i<50;i++){a[i]+=q;};
      |                          ^
a.cc:24:7: error: 'a' was not declared in this scope
   24 |       a[j]--;
      |       ^
a.cc:26:5: error: 'a' was not declared in this scope
   26 |     a[i]+=51;
      |     ^
a.cc:30:7: error: 'i' was not declared in this scope
   30 |   for(i = 0;i<50;i++){
      |       ^
a.cc:31:13: error: 'a' was not declared in this scope
   31 |     cout << a[i] << " ";
      |             ^
Language: Java


import java.util.Scanner;

public class TaskD {

	public static void main(String[] args) {
	
		Scanner sc=new Scanner(System.in);
		Long k=sc.nextLong();
		int N=50;
		System.out.println(N);
		int b=(int) (N-1+k/N-k%N);
		//System.out.println(b);
		for (int i = 0; i <N; i++) {
			System.out.print(b+ (i<k%N?N:0)+ (i==N-1 ? "\n" : " "));
		}
		

	}

}


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

// failed to generate code

#include <algorithm>
#include <bitset>
#include <cassert>
#include <deque>
#include <fstream>
#include <iostream>
#include <map>
#include <math.h>
#include <memory>
#include <queue>
#include <sstream>
#include <stdio.h>
#include <string>
#include <vector>

#define FOR(i, a, b) for (int i = (a); i < (b); ++i)
#define REP(i, n) FOR(i, 0, n)
#define POW(n) ((n) * (n))
#define ALL(a) (a).begin(), (a).end()
#define dump(v) (cerr << #v << ": " << v << endl)

using namespace std;

typedef long long ll;
typedef unsigned long long ull;

typedef vector<int> vi;
typedef vector<double> vd;
typedef vector<string> vs;
typedef vector<long long> vll;
typedef vector<unsigned long long> vull;
//
// 1234567894848 * 10
// 1234567891011
// 1234567900000
// 3800/10 = 380
//
// 7 * 3 = 21
// 27
//
// K * N
//
// N - (N-1) * K
// 50 - 49
// 50*10^16 -
//
// 1000+193+256+777+0+1+1192+1234567891011+48+425

// ll n = to_T<ll>("114514")
template <class T> T to_T(const string &s) {
  istringstream is(s);
  T res;
  is >> res;
  return res;
}
template <class T> string to_s(const T &a) {
  ostringstream os;
  os << a;
  return os.str();
}
ull K;
ull MAX = 10e16 + 1000L;

bool solve(ll N) {
  if (K == 0) {
    cout << "2" << endl;
    cout << "1 1" << endl;
    return true;
  } else if (K == 1) {
    cout << "2" << endl;
    cout << "3 0" << endl;
    return true;
  }

  ll sum = K * N;
  vll v(N, 0);

  // dump(sum);
  // ll buf = 0;
  REP(i, N) { v[i] = i + 1; }

  cout << N << endl;
  REP(i, N) {
    cout << v[i];
    if (i != N - 1)
      cout << " ";
  }
  cout << endl;
  return true;
}
int main() {
  ios::sync_with_stdio(false);

  cin >> K;
  // K = 10e16 * 50;

  // for (int i = 2; i <= 50; ++i)
  //   if (solve(i))
  //     return 0;
  if (K > 50) {
    REP(i, 1L << 60) REP(j, 1L << 60) { dump(i); }
    return;
  }
  solve(K);
}


Compiler output:
a.cc: In function 'int main()':
a.cc:104:5: error: return-statement with no value, in function returning 'int' [-fpermissive]
  104 |     return;
      |     ^~~~~~
Language: C++

#include<iostream>
#include<vector>
#include<map>
#include<set>
#include<cmath>
using namespace std;

int main(){
  long long int k;
  cin>>k;
  cout<<50<<endl;
  int n=50;
  vector<int> a(n);
  long long int x=k/50;
  for(int i=0;i<n;i++)a[i]=i+x;

  while(1){
    if(x==k)break;
    //cout<<a[0]<<endl;
    a[0]+=n;
    for(int i=1;i<n;i++)a[i]--;
    x++;
    sort(a.begin(),a.end());
  }
  for(int i=0;i<n-1;i++)cout<<a[i]<<" ";
  cout<<a[49]<<endl;

  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:23:5: error: 'sort' was not declared in this scope; did you mean 'sqrt'?
   23 |     sort(a.begin(),a.end());
      |     ^~~~
      |     sqrt
Language: Java

    import java.util.Scanner;
     
    public class Main{
      static final long MAX = 10_000_000_000_001_000L;
      static long k;
     
      public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
     
        k = sc.nextLong();
     
        long[] a = null;
        for(int n = 2; n <= 50; n++){
          long s = n * (n - 1) + k - ((k - 1) * n + (n + 1));
          long r = s % (n - 1);
          a = new long[n];
          a[0] = (k - 1) * n + (n + 1);
          a[1] = s / (n - 1) + r;
          for(int i = 1; i < n; i++){
            a[i] = s / (n - 1);
          }
          boolean ok = true;
          for(int i = 0; i < n; i++){
            if(a[i] < 0 || a[i] > MAX){
              ok = false;
              break;
            }
          }
          if(ok){
            break;
          }
        }
        System.out.println(n);
        for(int i = 0; i < a.length; i++){
          System.out.print(a[i] + " ");
        }
        System.out.println();
      }
    }

Compiler output:
Main.java:33: error: cannot find symbol
        System.out.println(n);
                           ^
  symbol:   variable n
  location: class Main
1 error
Language: C++

#define _CRT_SECURE_NO_WARNINGS
#include <bits/stdc++.h>
using namespace std;
#define DEBUG(x) cout << '>' << #x << ':' << x << endl;
#define FOR0(i,n) for(int i=0, _##i=(n); i<_##i; ++i)
#define FOR(i,l,r) for(int i=(l), _##i=(r); i<_##i; ++i)
#define FORD(i,l,r) for(int i=(r), _##i=(l); --i>=_##i; )
#define repi(i,a) for(__typeof((a).begin()) i=(a).begin(), _##i=(a).end(); i!=_##i; ++i)
#define dwni(i,a) for(__typeof((a).rbegin()) i=(a).rbegin(), _##i=(a).rend(); i!=_##i; ++i)
#define SZ(a) ((int)((a).size()))
#define printCase() "Case #" << caseNum << ": "
#define pb push_back
#define mp make_pair
#define INF ((int)1e9)
#define SYNC std::ios::sync_with_stdio(false);  cin.tie(NULL);
#define ff first
#define ss second
typedef long long ll;
typedef unsigned long long ull;
typedef pair<int, int> ii;
typedef vector<ii> vii;
typedef vector<int> vi;
typedef vector<vi> vvi;
ll k, a[55] = {};
#define A ((ll)1e16+1000)
int main() {
    SYNC
    FOR(n,2,51) {
        ll done = 0;
        FOR0(i, n - 1) {
            a[i] = max(0LL, n-k-1);
            done += (a[i] + k - n )/ (n + 1) + 1;
        }
        if(done <= k) {
            a[i] = (k - done) - k - 1 + n;
        }
        if(a[i] <= A && a[i] >= 0) 
            cout << n << endl;
            FOR0(i, n) cout << a[i ] << " ";
            return 0;

    }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:35:15: error: 'i' was not declared in this scope
   35 |             a[i] = (k - done) - k - 1 + n;
      |               ^
a.cc:37:14: error: 'i' was not declared in this scope
   37 |         if(a[i] <= A && a[i] >= 0)
      |              ^
Language: Java

import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        long K = scanner.nextLong();
        
        System.out.println("2");
        
        if((K % 3) == 1) {
            int n = K ;
            int x = n / 2;
            int y = K - x + 1;
            System.out.printf("%d %d%n", x, y);
        } else if((K % 3) == 2) {
            int n = K + 1;
            int x = n / 2;
            int y = K - x;
            System.out.printf("%d %d%n", x, y);
        } else if((K % 3) == 0) {
            int n = K;
            int x = n / 2;
            int y = K - x;
            System.out.printf("%d %d%n", x, y);
        }
    }
}

Compiler output:
Main.java:11: error: incompatible types: possible lossy conversion from long to int
            int n = K ;
                    ^
Main.java:13: error: incompatible types: possible lossy conversion from long to int
            int y = K - x + 1;
                          ^
Main.java:16: error: incompatible types: possible lossy conversion from long to int
            int n = K + 1;
                      ^
Main.java:18: error: incompatible types: possible lossy conversion from long to int
            int y = K - x;
                      ^
Main.java:21: error: incompatible types: possible lossy conversion from long to int
            int n = K;
                    ^
Main.java:23: error: incompatible types: possible lossy conversion from long to int
            int y = K - x;
                      ^
6 errors
Language: Java

//( ͡° ͜ʖ ͡°) °º¤ø,¸¸,ø¤º°`°º¤ø,¸,ø¤°º¤ø,¸¸,ø¤º°`°º¤ø,¸,ø¤º°` 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 k; cin >> k;
    
    int low = (k/50);
    vector<int> arr(50,49+low);
    cout << 50 << endl;
    for(int i = 0; i < 50; ++i) {
        if(i < k % 50) arr[i] = arr[i] + 50 - (k % 50)+1;
        cout << arr[i] << " ";
    }
    
    
    return 0;
}






Compiler output:
Main.java:3: error: illegal character: '#'
#define ONLINE_JUDGE //in case i forget to uncomment this, sometimes the grader defines the macro ^.^
^
Main.java:4: error: illegal character: '#'
#ifdef ONLINE_JUDGE
^
Main.java:5: error: illegal character: '#'
#include <bits/stdc++.h>
^
Main.java:6: error: illegal character: '#'
#else
^
Main.java:7: error: illegal character: '#'
#include "stdc++.h"
^
Main.java:8: error: illegal character: '#'
#endif
^
Main.java:9: error: illegal character: '#'
#define MAX(x, y) (((x) > (y)) ? (x) : (y))
^
Main.java:10: error: illegal character: '#'
#define MIN(x, y) (((x) < (y)) ? (x) : (y))
^
Main.java:11: error: illegal character: '#'
#define INF  (int)1e9
^
Main.java:13: error: illegal character: '#'
#define int long long
^
Main.java:17: error: illegal character: '#'
#ifndef ONLINE_JUDGE
^
Main.java:20: error: illegal character: '#'
#endif
^
Main.java:25: error: not a statement
    int k; cin >> k;
               ^
Main.java:28: error: not a statement
    vector<int> arr(50,49+low);
                          ^
Main.java:29: error: not a statement
    cout << 50 << endl;
               ^
Main.java:32: error: not a statement
        cout << arr[i] << " ";
                       ^
Main.java:16: error: unnamed classes are a preview feature and are disabled by default.
signed main() {
^
  (use --enable-preview to enable unnamed classes)
Main.java:17: error: ';' expected
#ifndef ONLINE_JUDGE
                    ^
Main.java:22: error: ';' expected
    ios_base::sync_with_stdio(false);
            ^
Main.java:28: error: ';' expected
    vector<int> arr(50,49+low);
                   ^
Main.java:28: error: ';' expected
    vector<int> arr(50,49+low);
                             ^
21 errors
Language: C++

#include<iostream>
using namespace std;
typedef long long ll;

ll ceil(ll a, ll b){
    return a / b + (a % b ? 1 : 0);
}

int main(){
    ll k; cin >> k;
    if(k == 0){
        cout << 2 << endl;
        cout << 0 << " " << 0 << endl;
    }else if(k == 1){
        cout << 2 << endl;
        cout << 0 << " " << 2 << endl;
    }else if(k == 2){
        cout << 2 << endl;
        cout << 2 << " " << 2 << endl;
    }else if(k == 3){
        cout << 2 << endl;
        cout << 1 << " " << 3 << endl;
    }else if(k == 4){
        cout << 2 << endl;
        cout << 0 << " " << 6 << endl;
    }else if(k == 5){
        cout << 2 << endl;
        cout << 2 << " " << 4 << endl;
    }else if(k > (20000000000000000 + 1000) * 2){
        cout << 5 << endl;
        for(int i = 0; i < 5; ++i){    
            cout << (5 - 1 + k) / 5 + (i < (4 + k) % 5 ? 1 : 0) << " ";
        }
        cout << endl;
    }else{
        /*for(ll i = 2; i <= 50; ++i){
            if(ceil(i - 1 + k, i) >= i * i){
                cout << i << endl;
                for(ll j = 0; j < i; ++j){
                    cout << (i - 1 + k) / i + (j < (i - 1 + k) % i ? 1 : 0) << " ";
                }
                cout << endl;
                return 0;
            }
        }*/
        if(k % 2){
            cout << 2 << endl;
            cout << k / 2 + 1 << " " << k / 2 << endl;
        }else{
            cout << 2 << endl;
            cout << k / 2 + 1 << " " << k / 2 + 1 << endl;
    }
}

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

#include <bits/stdc++.h>

const int N = 55;

long long k;

void init() {
	std::cin >> k;
}

void work() {
	static long long answer[N];

	long long n = 50;
	for (int i = 1; i <= n; i++) {
		answer[i] = n - 1 + k / n;
	}
	answer[1] += n * (k % n);
	for (int i = 2; i <= n; i++) {
		answer[i] -= k % n;
	}

	std::cout << n << std::endl;
	for (int i = 1; i <= n; i++) {
		printf("%lld%c", answer[i], " \n"[i == n]);
	}
}

int main() {
	freopen("d.i
	init();
	work();

	return 0;
}


Compiler output:
a.cc:30:17: warning: missing terminating " character
   30 |         freopen("d.i
      |                 ^
a.cc:30:17: error: missing terminating " character
   30 |         freopen("d.i
      |                 ^~~~
a.cc: In function 'int main()':
a.cc:31:15: error: expected ')' before ';' token
   31 |         init();
      |               ^
      |               )
a.cc:30:16: note: to match this '('
   30 |         freopen("d.i
      |                ^
Language: C++

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

typedef long long ll;
typedef pair<int, int> pii;
typedef pair<ll, ll> pll;

#define FOR(i, s, e) for (ll(i) = (s); (i) < (e); (i)++)
#define FORR(i, s, e) for (ll(i) = (s); (i) > (e); (i)--)
#define debug(x) cout << #x << ": " << x << endl
#define mp make_pair
#define pb push_back
const ll MOD = 1000000007;
const int INF = 1e9;
const ll LINF = 1e16;
const double PI = acos(-1.0);
int dx[8] = { 0, 0, 1, -1, 1, 1, -1, -1 };
int dy[8] = { 1, -1, 0, 0, 1, -1, 1, -1 };

/* -----  2017/07/29  Problem: ARC 079 B / Link: http://arc079.contest.atcoder.jp/tasks/arc079_b  ----- */
/* ------問題------



-----問題ここまで----- */
/* -----解説等-----



----解説ここまで---- */

ll N;

ll ans = 0LL;

int main() {
	cin.tie(0);
	ios_base::sync_with_stdio(false);
		ll K;
		cin >> K;
		if (K == -1)break;
		N = 50;
		ll lef = K%N;
		ll div = K / N;

		assert(lef + div*N == K);

		cout << N << endl;
		FOR(i, 0, N) {
			ans = div;
			if (i <lef)ans +=1;
			ll sita = ans*(N + 1) - K;
			ll ue = ans*(N + 1) - K + N;
			ll x = sita;
			ll shi = 1;// ue - sita;
			while (shi * 2 < ue - sita)shi *= 2; shi *= 2;
			while (1) {
				if (shi == 0)break;
				if (x + shi < ue/*&&(x+shi<=(1e16+1000))*/) {
					x += shi;
				}
				shi /= 2;
			}
			assert(x >= 0 && x <= (1e16 + 1000));
			cout << x << " ";
		}
		cout << endl;
	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:41:29: error: break statement not within loop or switch
   41 |                 if (K == -1)break;
      |                             ^~~~~
Language: C++

#include<bits/stdc++.h>
#define int long long
using namespace std;
main(){
  int n;
  cin>>n;
  cout<<50<<endl;
  for(i=0;i<49;i++){
   if(50*n>1e16){
    cout<<1e16<<' ';
    n-=2*1e14;
   }
  }
  for(;i<49;i++)cout<<0<<' ';
    cout<<endl;
}



Compiler output:
a.cc:4:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    4 | main(){
      | ^~~~
a.cc: In function 'int main()':
a.cc:8:7: error: 'i' was not declared in this scope
    8 |   for(i=0;i<49;i++){
      |       ^
a.cc:14:8: error: 'i' was not declared in this scope
   14 |   for(;i<49;i++)cout<<0<<' ';
      |        ^
Language: Java

import java.math.BigInteger;
import java.util.*;

public class ZZZZ {
	public static void main(String[] args) {
		Scanner s = new Scanner(System.in);
		String k = s.next();
		BigInteger b = new BigInteger(k);
		BigInteger TWO = new BigInteger("2");
		BigInteger THREE = new BigInteger("3");
		BigInteger HALF = b.divide(TWO);
		if(b.mod(TWO).equals(BigInteger.ZERO)) System.out.println(HALF.add(BigInteger.ONE)+ " " + HALF.add(BigInteger.ONE));
		else System.out.println(HALF.add(THREE) + " " + HALF);
	}
}


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

#include <algorithm>
#include <cstdio>
#include <iostream>
#include <map>
#include <cmath>
#include <queue>
#include <set>
#include <sstream>
#include <stack>
#include <string>
#include <vector>
#include <stdlib.h>
#include <stdio.h>
#include <bitset>
using namespace std;
#define FOR(I,A,B) for(int I = (A); I < (B); ++I)
typedef long long ll;

int main()
{
  ll K; cin >> K;
  ll N = min(K, 50);
  cout << N << endl;
  ll nokori = K - K / N;
  FOR(i,1,N+1) {
    if(i <= nokori) cout << K / N + 2 * N - 1<< " ";
    else cout << K / N + N - 1 - nokori << " ";
  }
  cout << endl;
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:22:13: error: no matching function for call to 'min(ll&, int)'
   22 |   ll N = min(K, 50);
      |          ~~~^~~~~~~
In file included from /usr/include/c++/14/algorithm:60,
                 from a.cc:1:
/usr/include/c++/14/bits/stl_algobase.h:233:5: note: candidate: 'template<class _Tp> constexpr const _Tp& std::min(const _Tp&, const _Tp&)'
  233 |     min(const _Tp& __a, const _Tp& __b)
      |     ^~~
/usr/include/c++/14/bits/stl_algobase.h:233:5: note:   template argument deduction/substitution failed:
a.cc:22:13: note:   deduced conflicting types for parameter 'const _Tp' ('long long int' and 'int')
   22 |   ll N = min(K, 50);
      |          ~~~^~~~~~~
/usr/include/c++/14/bits/stl_algobase.h:281:5: note: candidate: 'template<class _Tp, class _Compare> constexpr const _Tp& std::min(const _Tp&, const _Tp&, _Compare)'
  281 |     min(const _Tp& __a, const _Tp& __b, _Compare __comp)
      |     ^~~
/usr/include/c++/14/bits/stl_algobase.h:281:5: note:   candidate expects 3 arguments, 2 provided
In file included from /usr/include/c++/14/algorithm:61:
/usr/include/c++/14/bits/stl_algo.h:5686:5: note: candidate: 'template<class _Tp> constexpr _Tp std::min(initializer_list<_Tp>)'
 5686 |     min(initializer_list<_Tp> __l)
      |     ^~~
/usr/include/c++/14/bits/stl_algo.h:5686:5: note:   candidate expects 1 argument, 2 provided
/usr/include/c++/14/bits/stl_algo.h:5696:5: note: candidate: 'template<class _Tp, class _Compare> constexpr _Tp std::min(initializer_list<_Tp>, _Compare)'
 5696 |     min(initializer_list<_Tp> __l, _Compare __comp)
      |     ^~~
/usr/include/c++/14/bits/stl_algo.h:5696:5: note:   template argument deduction/substitution failed:
a.cc:22:13: note:   mismatched types 'std::initializer_list<_Tp>' and 'long long int'
   22 |   ll N = min(K, 50);
      |          ~~~^~~~~~~
Language: C++

#include <deque> 
#include <queue> 
#include <stack> 
#include <set> 
#include <map> 
#include <algorithm> 
#include <functional> 
#include <utility> 
#include <bitset> 
#include <cmath> 
#include <cstdlib> 
#include <ctime> 
#include <cstdio> 
using namespace std;

int main(){
	long long k;
	cin>>k;
	if(k==0){
		cout<<2<<endl;
		cout<<1<<' '<<1<<endl;
	}
	else{
		cout<<50<<endl;
		long long a=k/50;
		long long r=k%50;
		for(int i=1;i<=50;i++){
			if(i<=r) cout<<50+a<<' ';
			else cout<<49+a<<' ';
		}
	}
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:18:9: error: 'cin' was not declared in this scope
   18 |         cin>>k;
      |         ^~~
a.cc:14:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
   13 | #include <cstdio>
  +++ |+#include <iostream>
   14 | using namespace std;
a.cc:20:17: error: 'cout' was not declared in this scope
   20 |                 cout<<2<<endl;
      |                 ^~~~
a.cc:20:17: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:20:26: error: 'endl' was not declared in this scope
   20 |                 cout<<2<<endl;
      |                          ^~~~
a.cc:14:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
   13 | #include <cstdio>
  +++ |+#include <ostream>
   14 | using namespace std;
a.cc:24:17: error: 'cout' was not declared in this scope
   24 |                 cout<<50<<endl;
      |                 ^~~~
a.cc:24:17: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:24:27: error: 'endl' was not declared in this scope
   24 |                 cout<<50<<endl;
      |                           ^~~~
a.cc:24:27: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
Language: Java

import java.util.*;

public class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    long K = sc.nextLong();
    if(K == 0) {
      System.out.println(2);
      System.out.println(0 + " " + 0);
    } else if(K == 1) {
      System.out.println(2);
      System.out.println(0 + " " + 2);
    } else if(K == 2) {
      System.out.println(2);
      System.out.println(2 + " " + 2);
    } else {
      long d = 0;
      for(long i = 0; i < (long)Math.pow(10, 8); i++) {
        if(K % i == 0) {
          d = (long)i;
          break;
        }
      }
      System.out.println(d);
      long s = K / d;
      for(int i = 0; i < d; i++) {
        System.out.print(N - 1 + s);
        if(i < d - 1) System.out.print(" ");
      }
      System.out.println();
    }
  }
}

Compiler output:
Main.java:27: error: cannot find symbol
        System.out.print(N - 1 + s);
                         ^
  symbol:   variable N
  location: class Main
1 error
Language: C++

#include <bits/stdc++.h>
#include "example.h"
using namespace std;
// Powered by caide (code generator, tester, and library code inliner)

long long k;

class Solution {
public:
  void solve(std::istream& in, std::ostream& out)
  {
    in >> k;
    out << 2 << "\n";
    out << 1 << k << "\n";
  }
};

void solve(std::istream& in, std::ostream& out)
{
  out << std::setprecision(12);
  Solution solution;
  solution.solve(in, out);
}


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

#include<bits/stdc++.h>
#define r(i,n) for(int i=0;i<n;i++)
#define fi first
#define se second
#define mk make_pair
using namespace std;
int main(){
  long long n;
  cin>>n;
  c  out<<1000000000000000000<<endl;
      r(i,1000000000000000000-1)printf("0 ");
  cout<<n+1000000000000000000<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:3: error: 'c' was not declared in this scope
   10 |   c  out<<1000000000000000000<<endl;
      |   ^