Language: C++

#include <bits/stdc++.h>
#define rep(i,n) for(int64_t i=0;i < (int64_t)(n);i++)
#define invrep(i,n) for(int64_t i=n-1;i >= 0;i--)
using namespace std;

//////全探索したいときに開けよ////////
vector<vector<int>> fspattern;
vector<int> fspattern_draft;
int fspcnt = 0;

void setfspattern_core(int floor,int number,int degree){
  if(floor==degree){
    fspattern.at(fspcnt) = fspattern_draft;
    fspcnt++;
  }else{
    rep(i,number){
      fspattern_draft.at(floor) = i;
      setfspattern_core(floor+1,number,degree);
    }
  }
}

void setfspattern(int number,int degree){
  fspcnt = 0;
  int64_t array_num = 1;
  rep(i,degree){
    array_num *= number;
  }
  fspattern = vector<vector<int>>(array_num,vector<int>(degree));
  fspattern_draft = vector<int>(degree);
  setfspattern_core(0,number,degree);
}

//////nCrのmodを求めたいときに開けよ/////////
//int64_t univMod = 1000000007;
//int64_t factnum = 100000
//vector<int64_t> modfact(factnum);
//vector<int64_t> modinvfact(factnum);

/*void setmodfact(){
  for(int i=0;i<factnum;i++){
    if(i == 0){
      modfact.at(i) = 1;
    }else{
      modfact.at(i) = (modfact.at(i-1)*i)%univMod;
    }
  }
}

int64_t calcmodpower(int64_t a,int64_t n){
  int64_t res = 1;
  while(n != 0){
    if(n & 1){
      res = (res * a) % univMod;
    }
    a = (a*a) % univMod;
    n = n >> 1;
  }
  return res;
}

int64_t calcinverse(int64_t n){
	return calcmodpower(n,univMod-2);
}

void setmodinvfact(){
  for(int i=0;i<factnum;i++){
    if(i==0){
      modinvfact.at(i) = 1;
    }else{
      modinvfact.at(i) = calcmodpower(modfact.at(i),univMod-2);
    }
  }
}*/


/*
int64_t calcGCD(int64_t a,int64_t b){
	int64_t p = a;
	int64_t q = b;
	int64_t c = a%b;
	while(c != 0){
		p = q;
		q = c;
		c = p%q;
	}
	return q;
}
*/
bool cmp(pair<int64_t,int64_t> a,pair<int64_t,int64_t> b){
  if(a.first != b.first){
    return a.first < b.first;
  }else{
    return a.second > b.second;
  }
}


int main(){
  int64_t k;
  cin >> k;
  vector<int64_t> a(50);
  rep(i,50){
    a.at(i) = 49+(k/50);
    if(i < k%50){
      a.at(i) -= ((k%50)-1-50);
    }else{
      a.at(i) -= (k%50);
    }
  }
  cout << 50 << endl;
  rep(i,50){
    cout << a.at(i) << " ";
  }
  cout << endl;
      
    
  
}#include <bits/stdc++.h>
#define rep(i,n) for(int64_t i=0;i < (int64_t)(n);i++)
#define invrep(i,n) for(int64_t i=n-1;i >= 0;i--)
using namespace std;

//////全探索したいときに開けよ////////
vector<vector<int>> fspattern;
vector<int> fspattern_draft;
int fspcnt = 0;

void setfspattern_core(int floor,int number,int degree){
  if(floor==degree){
    fspattern.at(fspcnt) = fspattern_draft;
    fspcnt++;
  }else{
    rep(i,number){
      fspattern_draft.at(floor) = i;
      setfspattern_core(floor+1,number,degree);
    }
  }
}

void setfspattern(int number,int degree){
  fspcnt = 0;
  int64_t array_num = 1;
  rep(i,degree){
    array_num *= number;
  }
  fspattern = vector<vector<int>>(array_num,vector<int>(degree));
  fspattern_draft = vector<int>(degree);
  setfspattern_core(0,number,degree);
}

//////nCrのmodを求めたいときに開けよ/////////
//int64_t univMod = 1000000007;
//int64_t factnum = 100000
//vector<int64_t> modfact(factnum);
//vector<int64_t> modinvfact(factnum);

/*void setmodfact(){
  for(int i=0;i<factnum;i++){
    if(i == 0){
      modfact.at(i) = 1;
    }else{
      modfact.at(i) = (modfact.at(i-1)*i)%univMod;
    }
  }
}

int64_t calcmodpower(int64_t a,int64_t n){
  int64_t res = 1;
  while(n != 0){
    if(n & 1){
      res = (res * a) % univMod;
    }
    a = (a*a) % univMod;
    n = n >> 1;
  }
  return res;
}

int64_t calcinverse(int64_t n){
	return calcmodpower(n,univMod-2);
}

void setmodinvfact(){
  for(int i=0;i<factnum;i++){
    if(i==0){
      modinvfact.at(i) = 1;
    }else{
      modinvfact.at(i) = calcmodpower(modfact.at(i),univMod-2);
    }
  }
}*/


/*
int64_t calcGCD(int64_t a,int64_t b){
	int64_t p = a;
	int64_t q = b;
	int64_t c = a%b;
	while(c != 0){
		p = q;
		q = c;
		c = p%q;
	}
	return q;
}
*/
bool cmp(pair<int64_t,int64_t> a,pair<int64_t,int64_t> b){
  if(a.first != b.first){
    return a.first < b.first;
  }else{
    return a.second > b.second;
  }
}


int main(){
  int64_t k;
  cin >> k;
  vector<int64_t> a(50);
  rep(i,50){
    a.at(i) = 49+(k/50);
    if(i < k%50){
      a.at(i) -= ((k%50)-1-50);
    }else{
      a.at(i) -= (k%50);
    }
  }
  cout << 50 << endl;
  rep(i,50){
    cout << a.at(i) << " ";
  }
  cout << endl;
      
    
  
}

Compiler output:
a.cc:119:2: error: stray '#' in program
  119 | }#include <bits/stdc++.h>
      |  ^
a.cc:119:3: error: 'include' does not name a type
  119 | }#include <bits/stdc++.h>
      |   ^~~~~~~
a.cc:125:21: error: redefinition of 'std::vector<std::vector<int> > fspattern'
  125 | vector<vector<int>> fspattern;
      |                     ^~~~~~~~~
a.cc:7:21: note: 'std::vector<std::vector<int> > fspattern' previously declared here
    7 | vector<vector<int>> fspattern;
      |                     ^~~~~~~~~
a.cc:126:13: error: redefinition of 'std::vector<int> fspattern_draft'
  126 | vector<int> fspattern_draft;
      |             ^~~~~~~~~~~~~~~
a.cc:8:13: note: 'std::vector<int> fspattern_draft' previously declared here
    8 | vector<int> fspattern_draft;
      |             ^~~~~~~~~~~~~~~
a.cc:127:5: error: redefinition of 'int fspcnt'
  127 | int fspcnt = 0;
      |     ^~~~~~
a.cc:9:5: note: 'int fspcnt' previously defined here
    9 | int fspcnt = 0;
      |     ^~~~~~
a.cc:129:6: error: redefinition of 'void setfspattern_core(int, int, int)'
  129 | void setfspattern_core(int floor,int number,int degree){
      |      ^~~~~~~~~~~~~~~~~
a.cc:11:6: note: 'void setfspattern_core(int, int, int)' previously defined here
   11 | void setfspattern_core(int floor,int number,int degree){
      |      ^~~~~~~~~~~~~~~~~
a.cc:141:6: error: redefinition of 'void setfspattern(int, int)'
  141 | void setfspattern(int number,int degree){
      |      ^~~~~~~~~~~~
a.cc:23:6: note: 'void setfspattern(int, int)' previously defined here
   23 | void setfspattern(int number,int degree){
      |      ^~~~~~~~~~~~
a.cc:208:6: error: redefinition of 'bool cmp(std::pair<long int, long int>, std::pair<long int, long int>)'
  208 | bool cmp(pair<int64_t,int64_t> a,pair<int64_t,int64_t> b){
      |      ^~~
a.cc:90:6: note: 'bool cmp(std::pair<long int, long int>, std::pair<long int, long int>)' previously defined here
   90 | bool cmp(pair<int64_t,int64_t> a,pair<int64_t,int64_t> b){
      |      ^~~
a.cc:217:5: error: redefinition of 'int main()'
  217 | int main(){
      |     ^~~~
a.cc:99:5: note: 'int main()' previously defined here
   99 | int main(){
      |     ^~~~