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

#include <bits/stdc++.h>
 
using namespace std;
 
using ll = long long;
 
int main(){
	ll n, k, s; cin >> n >> k >> s;
	if(s % 2 ==0 ){
		for(ll i = 0; i < n; ++i){
			if(i <= k)
				cout << s / 2 << " ";
			else cout << (s + 1) % 1e9 <<" ";
		}
	}else{
		for(ll i = 0; i < n; ++i){
			if(i % 2 && i <= k)
				cout << s / 2 << " ";
			else if(i <= k) cout << s / 2 + 1 << " ";
			else cout << (s + 1) % 1e9 << " ";
		}

	}
	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:13:46: error: invalid operands of types 'll' {aka 'long long int'} and 'double' to binary 'operator%'
   13 |                         else cout << (s + 1) % 1e9 <<" ";
      |                                      ~~~~~~~ ^ ~~~
      |                                         |      |
      |                                         |      double
      |                                         ll {aka long long int}
a.cc:20:46: error: invalid operands of types 'll' {aka 'long long int'} and 'double' to binary 'operator%'
   20 |                         else cout << (s + 1) % 1e9 << " ";
      |                                      ~~~~~~~ ^ ~~~
      |                                         |      |
      |                                         |      double
      |                                         ll {aka long long int}
Language: C++



#include <bits/stdc++.h>
#include <string.h>
//s#define rep(i, n) for (int i = 0; i < (n); i++)
#define MAX 10000

using namespace std;

#define ll long long
#define pb push_back
//#define mp make_pair
#define all(a) (a).begin(),(a).end()
#define rep(i,a,n) for(int i=a; i<n; i++)
#define INF (int)1e15
#define MOD 1000000007
//#define N 12
#define sz 1000*1000



int main(){

 int n,k,s;
 cin>>n>>k>>s;
   ll inf = 10000000000;
    vector <long long> ans(n, inf);

    for(int i=0;i<k;i++)
      ans[i] = s;

    for(int i=0;i,n;i++){
      if(a[i] == inf){
              if (s == 1000000000)
                  ans[i] = 1;
            else
                ans[i] = 1000000000;
      }
    }

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

    cout<<endl;


return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:33:10: error: 'a' was not declared in this scope
   33 |       if(a[i] == inf){
      |          ^
Language: C++

#include <algorithm>  
#include <iostream>  
#include <sstream>  
#include <string>  
#include <vector>  
#include <queue>  
#include <set>  
#include <map>  
#include <cstdio>  
#include <cstdlib>  
#include <cctype>  
#include <cmath>  
#include <cstring>
#include <list>  
#include <cassert>
#include <climits>
#include <bitset>
#include <chrono>
#include <random>
 
using namespace std;
     
    int main(){
      int N, K, S;
      cin >> N >> K >> S;
      if(N==K){
        for(int i=0; i<N; i++){
          cout << S;
        }
        cout << '' << endl;
      }
      else{
        for(int i=0; i<K+1; i++){
          if(i%2==0){
            cout << 2*S + 1;
          }
          else{
            cout << -S - 1;
          }
        }
        for(int j=K+1; j<N; j++){
          cout << S + 1000;
        }
        cout << '' << endl;
      }
    }

Compiler output:
a.cc:30:17: error: empty character constant
   30 |         cout << '' << endl;
      |                 ^~
a.cc:44:17: error: empty character constant
   44 |         cout << '' << endl;
      |                 ^~
Language: C++

    PER(i, n - m) {
            cout << "1 ";
        }
        cout << sum - (n - m);
        PER (i, sum - (n - m) - 1) {
            cout << " " << sum;
        }
    }
    return;
}

#endif

#ifdef SOLVE_B

long long times (const vector<long long>& sorted, long long len) {
    long long result = 1;
    PER (i, len) {
        result *= sorted[i];
    }
    return result;
}

void solve(void){
    long long n, k;
    cin >> n >> k;
    vector<long long> a(n);
    PER(i, n) {
        cin >> a[i];
    }

    vector<long long> up, down;
    PER(i, n) {
        if (a[i] > 0) {
            up.push_back(a[i]);
        } else if (a[i] < 0) {
            down.push_back(a[i] = -a[i]);
        }
    }

    long long result = 0;
    if ((k % 2 == 1 && up.size() == 0) || (down.size() == 1 && up.size() == k - 1)) {
        if (up.size() + down.size() != a.size()) {
            result = 0;
        } else {
            sort(ALL(a));
            for (int i = 0; i < k; ++i) {
                result += -a[i];
            }
            while (result < 0) {
                result += (long long) 1e9 + 7;
            }
        }
    } else {
        sort(ALL(up), [](const long long& a, const long long& b){return a > b;});
        sort(ALL(down), [](const long long& a, const long long& b){return a > b;});

        for(long long i = 0; i <= down.size(); i += 2) {
            long long _ = times(up, k - i) * times(down, i);
            result = (result > _ ? result : _);
            result %= (long long)1e9 + 7;
        }
    }

    cout << result << endl;

    return;
}

#endif // for solve

/* ------------------------------------------------------------------------- */

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


Compiler output:
a.cc:12:2: error: #endif without #if
   12 | #endif
      |  ^~~~~
a.cc:1:8: error: expected constructor, destructor, or type conversion before '(' token
    1 |     PER(i, n - m) {
      |        ^
a.cc:4:9: error: 'cout' does not name a type
    4 |         cout << sum - (n - m);
      |         ^~~~
a.cc:5:13: error: expected constructor, destructor, or type conversion before '(' token
    5 |         PER (i, sum - (n - m) - 1) {
      |             ^
a.cc:8:5: error: expected declaration before '}' token
    8 |     }
      |     ^
a.cc:9:5: error: expected unqualified-id before 'return'
    9 |     return;
      |     ^~~~~~
a.cc:10:1: error: expected declaration before '}' token
   10 | }
      | ^
a.cc: In function 'int main()':
a.cc:75:5: error: 'cin' was not declared in this scope
   75 |     cin.tie(0);
      |     ^~~
a.cc:76:5: error: 'ios' has not been declared
   76 |     ios::sync_with_stdio(false);
      |     ^~~
a.cc:77:5: error: 'solve' was not declared in this scope
   77 |     solve();
      |     ^~~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main()
{
    long long n,m,sum;
    cin>>n>>m>>sum;
    long long num=n/m+1;
    if (n%num==0) num-=1;

    for (int i=0;i<m;i++){
      cout<<sum<<" ";
    }
    if (sum!=1e9){}
    for (int i=0;i<n-m;i++){
            cout<<(long long)1e9<<" ";
    }
}
    else{
        for (int i=0;i<n-m;i++){
            cout<<(long long)1e9/(n-m+3)<<" ";
    }
    }
    return 0;
}


Compiler output:
a.cc:18:5: error: expected unqualified-id before 'else'
   18 |     else{
      |     ^~~~
a.cc:23:5: error: expected unqualified-id before 'return'
   23 |     return 0;
      |     ^~~~~~
a.cc:24:1: error: expected declaration before '}' token
   24 | }
      | ^
Language: C++

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

typedef long long ll;
int n,m;
ll sum;

int main()
{
    scanf("%d%d%lld",&n,&m,&sum);
    int f=0,flag=0;
    while(f<n)
    {
        f++;
        if((n-f)==(m-1))
        {
            printf("%lld ",sum-f+1);
            flag=1;
            continue;
        }
        if(flag==0)
        {
            printf("%d ",1);
        }
        else
        {
            printf("%lld ",sum);
        }
    }
    printf("\n");
    return 0;
}

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

#include<bits/stdc++.h>
using namespace std;
using ll = long long;
using Graph = vector<vector<int>>;
const ll mod=1000000007;
const int MAX_N = 1000;         // n の最大値
 
// nCk を取得
double nCk(int n, int k) {
double res=1.0;
for(int i=0; i<n; i++){
res*=0.5;}
for(int i=0; i<k; i++){
res*=(double)(n-i);
res/=(double)(k-i);
}
return res;}
 
int main() {
ll h,w,k;
cin>>h>>w>>k;
if(k==1000000000){
rep(i,w){
cout << 1000000000 << " ";}
rep(i, h-w){
cout << 1 << " ";}
cout << endl;}
else{
rep(i,w){
cout << k << " ";}
rep(i,h-w){
cout << k+1 << " ";}
cout << endl;}}

Compiler output:
a.cc: In function 'int main()':
a.cc:23:5: error: 'i' was not declared in this scope
   23 | rep(i,w){
      |     ^
a.cc:23:1: error: 'rep' was not declared in this scope
   23 | rep(i,w){
      | ^~~
a.cc:29:5: error: 'i' was not declared in this scope
   29 | rep(i,w){
      |     ^
a.cc:29:1: error: 'rep' was not declared in this scope
   29 | rep(i,w){
      | ^~~
Language: C++

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

lint gcd(lint x, lint y) {
  if(x == 0) { return y; }
  else { return gcd(y%x,x); }
}

lint lcm(lint x, lint y) { return x/gcd(x,y)*y; }

lint C(lint n, lint k) {
  if(n == k) { return 1; }
  else if(n < k) { return 0; }
  else if(k == 0) { return 1; }
  else if(k == 1) { return n; }
  else return C(n-1,k-1) + C(n-1,k);
}


int main() {
  lint n,k,s; cin >> n >> k >> s;

  vector<lint> a(n,min(s-1,0));
  for(lint i=0;i<k;i++) { a[i] = s; }


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


Compiler output:
a.cc: In function 'int main()':
a.cc:24:23: error: no matching function for call to 'min(lint, int)'
   24 |   vector<lint> a(n,min(s-1,0));
      |                    ~~~^~~~~~~
In file included from /usr/include/c++/14/algorithm:60,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51,
                 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:24:23: note:   deduced conflicting types for parameter 'const _Tp' ('long long int' and 'int')
   24 |   vector<lint> a(n,min(s-1,0));
      |                    ~~~^~~~~~~
/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:24:23: note:   mismatched types 'std::initializer_list<_Tp>' and 'long long int'
   24 |   vector<lint> a(n,min(s-1,0));
      |                    ~~~^~~~~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
using pint = pair<int,int>;


const long long INFLL = 1LL << 60;
const int INFI = 1000000000;


int main(){
    long long N,K,S; cin >> N >> K >> S;
    if(S==pow(10,9)){
        for(int i=0;i<N;i++){
            if(i<K) cout << S <<' ';
            else cout << 1 << ' ';

    }else {
        for(int i=0;i<N;i++){
            if(i<K) cout << S <<' ';
            else cout << S+1 << ' ';
        }
    }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:17:6: error: expected '}' before 'else'
   17 |     }else {
      |      ^~~~
a.cc:12:21: note: to match this '{'
   12 |     if(S==pow(10,9)){
      |                     ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
using pint = pair<int,int>;


const long long INFLL = 1LL << 60;
const int INFI = 1000000000;


int main(){
    long long N,K,S; cin >> N >> K >> S;
    for(int long lon i=0;i<N;i++){
        if(i<K) cout << S <<' ';
        else cout << S+1 << ' ';
    }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:12:21: error: expected ';' before 'i'
   12 |     for(int long lon i=0;i<N;i++){
      |                     ^~
      |                     ;
a.cc:12:22: error: 'i' was not declared in this scope
   12 |     for(int long lon i=0;i<N;i++){
      |                      ^
a.cc:12:29: error: expected ')' before ';' token
   12 |     for(int long lon i=0;i<N;i++){
      |        ~                    ^
      |                             )
a.cc:12:30: error: 'i' was not declared in this scope
   12 |     for(int long lon i=0;i<N;i++){
      |                              ^
Language: C++

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

int main(){
    ll N, K, S;
    cin >> N >> K >> S;
    if(S != 1e9){
        vector<ll> A(N,S + 1);
    }else{
        vector<ll> A(N,S - 1);
    }
    
    for(ll i = 0; i < K; i++){
        A[i] = S;
    }

    for(ll i = 0; i < N; i++){
        cout << A[i] << " ";
    }
    cout << endl;
}   


Compiler output:
a.cc: In function 'int main()':
a.cc:15:9: error: 'A' was not declared in this scope
   15 |         A[i] = S;
      |         ^
a.cc:19:17: error: 'A' was not declared in this scope
   19 |         cout << A[i] << " ";
      |                 ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
using ll = long long;
#define int ll
#define rep(i,n) for(int i=0;i<n;i++)
#define all(in) in.begin(), in.end()
constexpr int INF = (numeric_limits<int>::max() == INT_MAX ? (int)1e9 : (long long)1e18);
constexpr long double eps = 1e-6;
const string el = "\n";
template<class T, class S> void cmin(T &a, const S &b) { if (a > b)a = b; }
template<class T, class S> void cmax(T &a, const S &b) { if (a < b)a = b; }
template<typename Head, typename Value> auto vectors(const Head &head, const Value &v) { return vector<Value>(head, v); }
template<typename Head, typename... Tail> auto vectors(Head x, Tail... tail) { auto inner = vectors(tail...); return vector<decltype(inner)>(x, inner); }
using ld  = long double;using pii = pair<int,int>;using piii = pair<int,pii>;
int W,H;
int dx[]={0,0,1,-1}, dy[]={1,-1,0,0};
bool valid(int x,int y){return (0<=x&&x<W)&&(0<=y&&y<H);}
void fast_io(){ios::sync_with_stdio(false); cin.tie(nullptr);}
int out(int a){cout << a << el; return 0;}
int out(string s = "NO"){cout << s << el; return 0;}
template <class T>
inline int out(vector<T>&v,string c = " "){
    for(int i = 0; i < v.size(); ++i){
        if(i) cout << c; cout << v[i];
    } cout << el;return 0;
}
signed main(){
    fast_io();
    int N,K,S; cin >> N >> K >> S;
    vector<int>v(K,S);f
    int maxi = 1e9;
    rep(i, N - K)v.push_back((S == maxi ? 1 : maxi));
    out(v);
}




Compiler output:
a.cc: In function 'int main()':
a.cc:30:23: error: 'f' was not declared in this scope
   30 |     vector<int>v(K,S);f
      |                       ^
a.cc:32:36: error: 'maxi' was not declared in this scope
   32 |     rep(i, N - K)v.push_back((S == maxi ? 1 : maxi));
      |                                    ^~~~
Language: C++

#include <bits/stdc++.h>
//----***やべーやつら***----
using namespace std;
#define int long long

//----***型定義***----
using ll = long long;
using P = pair<int,int>;

//----***Like a Pythonista***----
#define REP(ii,jj,nn) for (ll ii=jj;ii<(nn);ii++)
#define RREP(ii,nn,jj) for (ll ii = nn; jj<ii;ii--)
#define each(i,...) for (auto&& i:__VA_ARGS__)
#define ALL(vec) (vec).begin(),(vec).end()
#define sum(...) accumulate(ALL(__VA_ARGS__),0LL)
#define dsum(...) accumulate(ALL(__VA_ARGS__),0.0)
#define vec(type,name,...) vector<type> name(__VA_ARGS__)
template<class T> inline auto max(const T& a){ return *max_element(ALL(a)); }
template<class T> inline auto min(const T& a){ return *min_element(ALL(a)); }
inline ll gcd(ll a,ll b){if(b == 0) return a;return  gcd(b,a%b);}
inline ll lcm(ll a,ll b){ll g = gcd(a,b);return a / g * b;}

//----***定数***----
#define MOD 1000000007
#define INF 100000000000000000
#define EPS 1e-9
const vector<vector<int>> DXY={{-1,0},{1,0},{0,-1},{0,1}};

//----***パーツ***----
#define fi first
#define se second
#define pb push_back
#define re return
#define br break

//----***入出力***---
void print() { std::cout << "\n"; }
template <class T>void print(const T &x) {std::cout << x<<"\n";}
template <class T, class... Args>void print(const T &x, const Args &... args) {std::cout << x << " ";print(args...);}
#define debug(var)  do{std::cerr << #var << " ↓ "<<"\n";view(var);}while(0);
#define dbg cerr<<"🥺🥺🥺🥺🥺🥺"<<endl;
template<typename T> void view(T e){std::cout << e << std::endl;}
template<typename T> void view(const std::vector<T>& v){for(const auto& e : v){ std::cout << e << " "; } std::cout << std::endl;}
template<typename T> void view(const std::vector<std::vector<T> >& vv){ for(const auto& v : vv){ view(v); } }

//----***初期時読み込み***----
struct initial{initial(){cin.tie(0); ios::sync_with_stdio(0); cout<<fixed<<setprecision(15);};}initial_;

signed main(){
  int N,K,S;cin>>N>>K>>S;
  vector<int> V{S/2,(S+1)/2};
  REP(i,0,K-1){
    if(i%2==0)V.push_back((S)/2);
    else V.push_back((S+1)/2);
  }
  REP(i,0,N-K-1){
    V.push_back(S+1);
  }
  for(int i=0;i<K,i++){
    cout<<S<<" ";
  }
  for(int i=K;i<N,i++){
    cout<<S+1<<" ";
  }
  cout<<"\n";

}


Compiler output:
a.cc: In function 'int main()':
a.cc:59:22: error: expected ';' before ')' token
   59 |   for(int i=0;i<K,i++){
      |                      ^
      |                      ;
a.cc:62:22: error: expected ';' before ')' token
   62 |   for(int i=K;i<N,i++){
      |                      ^
      |                      ;
Language: C++

#include <bits/stdc++.h>
#include <chrono>
using namespace std;
using ll = long long;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define repl(i, n) for (ll i = 0; i < (ll)(n); i++)
#define rep2(i, s, n) for (int i = (s); i < (int)(n); i++)
#define rep2l(i, s, n) for (ll i = (ll)(s); i < (ll)n; i++)

int main() {
    int N, K, S;
    cin >> N >> K >> S;
    if (S < 1000000000) {
        rep(i, K) {
            cout << S << " ";
        }
        rep2(i, K, N) {
            if (i == N-1) {
                cout << S+1 << endl;
                return 0;
            }
            else {
                cout << S + 1 << " ";
            }
        }
    }
    else {
        rep(i, K) {
            cout << S << " ";
        }
        rep(i, K, N) {
            if (i == M-1) {
                cout << 1 << endl;
            }
            else {
                cout << 1 << " ";
            }
        }
    }
}

Compiler output:
a.cc:31:20: error: macro "rep" passed 3 arguments, but takes just 2
   31 |         rep(i, K, N) {
      |                    ^
a.cc:5:9: note: macro "rep" defined here
    5 | #define rep(i, n) for (int i = 0; i < (int)(n); i++)
      |         ^~~
a.cc: In function 'int main()':
a.cc:31:9: error: 'rep' was not declared in this scope
   31 |         rep(i, K, N) {
      |         ^~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
using ll=long long;
typedef pair<int,int>P;
 
int main() {
  ll a,b,c;
  cin>>a>>b>>c;
  for(int i=0;i<b;i++){
    cout<<c<<" ";
    if(b==a && i=b-1){
      cout<<c<<endl;
    }
  }
 for(int j=0;j<a-b;j++){
   if(j==a-b-1){
     cout<<c+1<<endl;
   }
   else {
   cout<<c+1<<" ";
   }
 }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:13: error: lvalue required as left operand of assignment
   11 |     if(b==a && i=b-1){
      |        ~~~~~^~~~
Language: C++

// @DateTime:    2020-04-22 15:05:23
//~ while (clock()<=69*CLOCKS_PER_SEC)
//~ #pragma comment(linker, "/stack:200000000")
#pragma GCC optimize("O3")
#pragma GCC optimize("-Ofast", "-funroll-all-loops", "-ffast-math")
//~ #pragma GCC target ("avx2")
//~ #pragma GCC
// target("sse,sse2,sse3,ssse3,sse4,popcnt,abm,mmx,avx,tune=native")
#include <algorithm>
#include <cassert>
#include <chrono>
#include <cmath>
#include <cstdio>
#include <cstring>
#include <iostream>
#include <map>
#include <queue>
#include <random>
#include <set>
#include <stack>
#include <string>
#include <vector>
//#include <ext/pb_ds/assoc_container.hpp>
//#include <ext/pb_ds/tree_policy.hpp>
// using namespace __gnu_pbds;
using namespace std;
using LL = long long;
#define eps 1e-8
#define fi first
#define se second
#define eb emplace_back
#define SZ(a) int(a.size())
#define ALL(x) (x).begin(), (x).end()
#define trav(a, x) for (auto &a : x)
#define close \
    std::ios::sync_with_stdio(false), cin.tie(nullptr), cout.tie(nullptr)
#define FOR(i, x, y) for (LL i = (x), _##i = (y); i < _##i; ++i)
#define FORD(i, x, y) for (LL i = (x), _##i = (y); i > _##i; --i)
#define SORT_UNIQUE(c)         \
    (sort(c.begin(), c.end()), \
     c.resize(distance(c.begin(), unique(c.begin(), c.end()))))
#define CASET    \
    int ___T;    \
    cin >> ___T; \
    for (int __CS = 1; __CS <= ___T; __CS++)
typedef long long ll;
typedef unsigned long long ull;
typedef vector<int> vi;
typedef pair<int, int> pii;
mt19937 dlsrand(random_device{}());
mt19937 mrand(std::chrono::system_clock::now().time_since_epoch().count());
int rnd(int x) { return mrand() % x; }
ll gcd(ll a, ll b) { return b ? gcd(b, a % b) : a; }
LL bin(LL x, LL n, LL MOD) {
    LL ret = MOD != 1;
    for (x %= MOD; n; n >>= 1, x = x * x % MOD)
        if (n & 1) ret = ret * x % MOD;
    return ret;
}
inline LL get_inv(LL x, LL p) { return bin(x, p - 2, p); }
const double PI = acos(-1.0);
constexpr int maxn = 1e6 + 10;
constexpr int mod = 1e9;
constexpr int INF = 0x3f3f3f3f;
constexpr ll linf = 0x3f3f3f3f3f3f3f3f;
constexpr ull base = 2333, P_1 = 19260811, P_2 = 999998639;
void add(int &a, int b) {
    a += b;
    if (a >= mod) a -= mod;
}
void dec(ll &a, int b) {
    a -= b;
    if (a < 0) a += mod;
}
int main() {
    ll n , k  , s;
    cin >> n >> k >> s;
    // vector<ll> a(n);
    for(int i = 1; i <= k;i++){
        cout << s << ' ';
    }
    add(s,1);
    for(int i= k+1; i <= n; i++){
        cout << s << ' ';
    }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:82:9: error: cannot bind non-const lvalue reference of type 'int&' to a value of type 'll' {aka 'long long int'}
   82 |     add(s,1);
      |         ^
a.cc:67:15: note:   initializing argument 1 of 'void add(int&, int)'
   67 | void add(int &a, int b) {
      |          ~~~~~^
Language: C++

#include <bits/stdc++.h>
#define rep(i,n) for (int i=0; i<(n); ++i)
using namespace std;
using ll=long long;
int main(){
    int n,k,s;
    cin>>n>>k>>s;
    int cnt=0;
    rep(i,n){
        while(k!=cnt){
            cout<<s<<" ";
            cnt++;
            i++;
        }
        if(n!=cnt){
            if(s==1e9)cout<<1<<" ";
            else cout<<s+1<<" ";
    }
    cout<<endl;
}

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

import           Control.Monad
import qualified Data.Array.IO               as IO
import           Data.Bits
import qualified Data.ByteString.Char8       as BS
import           Data.Char
import           Data.Foldable
import           Data.List
import           Data.Maybe
import qualified Data.Sequence               as Seq
import qualified Data.Vector.Unboxed         as V
import qualified Data.Vector.Unboxed.Mutable as VM

readInt = fst . fromJust . BS.readInt
readIntList = map readInt . BS.words
getInt = readInt <$> BS.getLine
getIntList = readIntList <$> BS.getLine
getIntVec n = V.unfoldrN n (BS.readInt . BS.dropWhile isSpace) <$> BS.getLine

readInteger = fst . fromJust . BS.readInteger
readIntegerList = map readInteger . BS.words
getInteger = readInteger <$> BS.getLine
getIntegerList = readIntegerList <$> BS.getLine

main = do
  [n, k, s] <- getIntList
  let as = replicate k s ++ replicate (n-k) 0
      ans = foldl' (\s i -> s ++ " " ++ show i) (show $ head as) (tail as)
  putStrLn ans

Compiler output:
a.cc:27:18: warning: missing terminating ' character
   27 |       ans = foldl' (\s i -> s ++ " " ++ show i) (show $ head as) (tail as)
      |                  ^
a.cc:27:18: error: missing terminating ' character
   27 |       ans = foldl' (\s i -> s ++ " " ++ show i) (show $ head as) (tail as)
      |                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
a.cc:1:1: error: 'import' does not name a type
    1 | import           Control.Monad
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
Language: C++

int main() {
    long long n, k, s;
    cin >> n >> k >> s;
    for (int i = 1; i <= k; ++i) {
        cout << s << ' ';
    }
    if (s == 1e9) {
        for (int i = 1; i <= n - k; ++i)
            cout << 1 << ' ';
    } else {
        for (int i = 1; i <= n - k; ++i)
            cout << s + 1 << ' ';
    }
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:3:5: error: 'cin' was not declared in this scope
    3 |     cin >> n >> k >> s;
      |     ^~~
a.cc:5:9: error: 'cout' was not declared in this scope
    5 |         cout << s << ' ';
      |         ^~~~
a.cc:9:13: error: 'cout' was not declared in this scope
    9 |             cout << 1 << ' ';
      |             ^~~~
a.cc:12:13: error: 'cout' was not declared in this scope
   12 |             cout << s + 1 << ' ';
      |             ^~~~
Language: C

#include<stdio.h>
#define ll long long
const int maxn=1300;
const int inf=-0x3f3f3f;

using namespace std;

ll gcd(int a,int b){return b==0?a:gcd(b,a%b);}
ll lcm(int a,int b){return gcd(a,b)/a*b;}


int main()
{
	ll n,k,s;
	scanf("%lld%lld%lld",&n,&k,&s);
	for(int i=1; i<=k; i++) printf("%lld ",s);
	
	if(s ==1e9)
	 for(int i=1; i<=n-k; i++) printf("5 ");
	else
	 for(int i=1; i<=n-k; i++) printf("%lld ",s+1);
	return 0;
 } 

Compiler output:
main.c:6:1: error: unknown type name 'using'
    6 | using namespace std;
      | ^~~~~
main.c:6:17: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'std'
    6 | using namespace std;
      |                 ^~~
Language: C++

#include<iostream>
#include<algorithm>
#include<stdio.h>
#include<string>
#include<string.h>
typedef long long int ll;
using namespace std;
int main()
{
    ll s,n,lp=1,m1,n1,n2,nl,m,i,j,k,sum;
    cin>>n>>k>>s;
    for(i=1;i<=n-k;i++)
        cout<<"0"<<" ";
    else
    for(;i<=n;i++)
        cout<<s<<" ";
     return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:14:5: error: 'else' without a previous 'if'
   14 |     else
      |     ^~~~
Language: C

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

typedef long long ll;
#define mem(x,y) memset(x,y,sizeof(x))
#define PI   3.1415926
#define INF  0x3f3f3f3f//(1061109567)
int main()
{
	int n,k,s;
	cin >> n >> k >> s;
	int q=1e9+1;
	if(n>k)
	{
		for(int j=0;j<k;j++)
		{
			cout << s << " "; 
		}
		for(int j=0;j<n-k;j++)
		{
			if(j!=n-k-1) cout << q << " ";
			else cout << q;
		}
	}
	else
	{
		for(int j=0;j<k;j++)
		{
			if(j==k-1) cout << s;
			else cout << s << " "; 
		}
	}
	return 0;
}

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

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

typedef long long ll;
#define mem(x,y) memset(x,y,sizeof(x))
#define PI   3.1415926
#define INF  0x3f3f3f3f//(1061109567)
int main()
{
	int n,k,s;
	cin >> n >> k >> s;
	if(n>k)
	{
		for(int j=0;j<k;j++)
		{
			cout << s << " "; 
		}
		for(int j=0;j<n-k;j++)
		{
			if(j!=n-k-1) cout << "1000000" << " ";
			else cout << "1000000";
		}
	}
	else
	{
		for(int j=0;j<k;j++)
		{
			if(j==k-1) cout << s;
			else cout << s << " "; 
		}
	}
	return 0;
}

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

#include<bits/stdc++.h>
using namespace std;
long md = 1e9;
int main() {
  long n, k, s;
  cin>>n>>k>>s;
  
  if(s ==  md) {
  	for(long i = 1; i<=k; i++)
    	cout<<s<<" ";
    for(long i = k + 1; i<=n; i++)
      	cout<<1<<" ";  
  }
  else {
		for(long i = 1; i<=k; i++)
    		cout<<s<<" ";
    	for(long i = k + 1; i<=n; i++)
      		cout<<s+1<<" ";  
  }
  return 0;

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

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

int main(){
    Int N, K, S; cin >> N >> K >> S;
    vector<Int> ans;

    rep(i,K) ans.push_back(S);
    rep(i,N-K){
        if(S != 1e9) ans.push_back(S+1);
        else ans.push_back(S-1);

    rep(i, N) cout << ans[i] << " ";
    cout << endl;
}


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

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

#define rep(i,n) for(int i = 0; i<n; ++i)
#define REP(i,n) for(int i = 1; i<n; ++i)
typedef long long ll;
const int inf = 100100100;
const ll INF = 1LL<<60;
const int MOD = (int)1e9 + 7;

int main(){
    int n,k,s; cin>>n>>k>>s;
    if(s==(int)1e9)vector <int>a(n,1);
    else vector <int> a(n,(int)1e9);

    rep(i,k)a[i] = s;

    for(auto x:a)cout<<x<<' '; cout<<endl; return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:27:13: error: 'a' was not declared in this scope
   27 |     rep(i,k)a[i] = s;
      |             ^
a.cc:29:16: error: 'a' was not declared in this scope
   29 |     for(auto x:a)cout<<x<<' '; cout<<endl; return 0;
      |                ^
Language: C++

for(int j=k;j<n;++j)v[j] = 1;

Compiler output:
a.cc:1:1: error: expected unqualified-id before 'for'
    1 | for(int j=k;j<n;++j)v[j] = 1;
      | ^~~
a.cc:1:13: error: 'j' does not name a type
    1 | for(int j=k;j<n;++j)v[j] = 1;
      |             ^
a.cc:1:17: error: expected unqualified-id before '++' token
    1 | for(int j=k;j<n;++j)v[j] = 1;
      |                 ^~
Language: C++

#pragma gcc optimize("Ofast")
#include <bits/stdc++.h>

using namespace std;
using ll = long long;

#define FOR(i, a, b) for (int i = (a); i < (b); ++i)
#define REP(i, n) FOR(i, 0, n)
#define ALL(V) (V).begin(),(V).end()
#define SORT(V) sort(ALL(V)) //小さい方からソート
#define REV(V) reverse(ALL(V)) //リバース
#define RSORT(V) SORT(V);REV(V) //大きい方からソート
#define NPN(V) next_permutation(ALL(V)) //順列
#define pb(n) push_back(n)
#define endl '\n'
#define Endl '\n'
#define DUMP(x)  cout << #x << " = " << (x) << endl
#define YES(n) cout << ((n) ? "YES" : "NO"  ) << endl
#define Yes(n) cout << ((n) ? "Yes" : "No"  ) << endl
#define yes(n) cout << ((n) ? "yes" : "no"  ) << endl
#define Yay(n) cout << ((n) ? "Yay!": ":(") << endl
#define RAPID cin.tie(0);ios::sync_with_stdio(false)
#define VSUM(V) accumulate(ALL(V), 0)
#define MID(a,b,c) (a) < (b) && (b) < (c)
#define MIDe(a,b,c) (a) <= (b) && (b) <= (c)
#define IN(n) cin >> n
#define IN2(a,b) cin >> a >> b
#define IN3(a,b,c) cin >> a >> b >> c 
#define IN4(a,b,c,d) cin >> a >> b >> c >> d
#define VIN(V) for(int i = 0; i < (V).size(); i++) {cin >> (V).at(i);}
#define OUT(n) cout << n << endl
#define VOUT(V) REP(i, (V).size()) {cout << (V)[i] << endl;}
#define VOUT2(V) REP(i, (V).size()) {cout << (V)[i] << " ";} cout<<endl;

// 型マクロ定義
#define int long long
#define P pair<ll,ll>
#define Vi vector<ll>
#define VVi vector<vector<ll>>
#define Vd vector<double>
#define Vb vector<bool>
#define Vs vector<string>
#define Vc vector<char>
#define M map<ll,ll>
#define S set<ll>
#define PQ priority_queue<ll>
#define PQG priority_queue<ll,V,greater<ll>
//

template<class T> inline bool chmin(T& a, T b) {if(a>b){a=b;return true;}return false;}
template<class T> inline bool chmax(T& a, T b) {if(a<b){a=b;return true;}return false;}

const int MOD = 1000000007;
const int INF = 1061109567;
const double EPS = 1e-10;
const double PI  = acos(-1.0);

int gcd(int a,int b){return b != 0 ? gcd(b, a % b) : a;} //最大公約数
int lcm(int a, int b){return a * b / gcd(a, b);}
string toStrUp(string str){char diff = 'A'-'a';REP(i,str.size()) str[i] += diff;return str;}
string gCh(string str, int key){return str.substr(key,1);}

signed main() {
  RAPID;
  // デフォルト変数定義
  int n=0,m=0,a=0,b=0,c=0,d=0,x=0,y=0,z=0;
  string s="",t="";
  //

  // ここから
  IN3(n,a,b);
  if(b==1000000000) Vi ANS(n, 1);
  else Vi ANS(n, b+1);
  REP(i,a){
    ANS[i] = b;
  }
  VOUT2(ANS)
}

Compiler output:
a.cc: In function 'int main()':
a.cc:75:5: error: 'ANS' was not declared in this scope
   75 |     ANS[i] = b;
      |     ^~~
a.cc:77:9: error: 'ANS' was not declared in this scope
   77 |   VOUT2(ANS)
      |         ^~~
a.cc:7:45: note: in definition of macro 'FOR'
    7 | #define FOR(i, a, b) for (int i = (a); i < (b); ++i)
      |                                             ^
a.cc:33:18: note: in expansion of macro 'REP'
   33 | #define VOUT2(V) REP(i, (V).size()) {cout << (V)[i] << " ";} cout<<endl;
      |                  ^~~
a.cc:77:3: note: in expansion of macro 'VOUT2'
   77 |   VOUT2(ANS)
      |   ^~~~~
Language: C++

N, K, S = map(int, input().split())
if N == K:
  print(' '.join([str(S)]*N))
else:
  L = S // 2
  R = S - L
  ans = ''
  for i in range(K+1):
    if i & 1:
      ans += str(R) + ' '
    else:
      ans += str(L) + ' '
  for i in range(N-K-1):
    ans += str((S+1) % int(1e9)) + ' '
  print(ans)

Compiler output:
a.cc:7:9: error: empty character constant
    7 |   ans = ''
      |         ^~
a.cc:1:1: error: 'N' does not name a type
    1 | N, K, S = map(int, input().split())
      | ^
Language: C++

#include<iostream>
#include<vector>
using namespace std;
int main() {
  int n, k, s;
  cin >> n >> k >> s;
  vector<int> a(k, s);
  vector<int> b(n - k, (s + 1 % 1e9));
  for (auto x : a) cout << x << " ";
  for (auto x : b) cout << x << " ";
  cout << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:31: error: invalid operands of types 'int' and 'double' to binary 'operator%'
    8 |   vector<int> b(n - k, (s + 1 % 1e9));
      |                             ~ ^ ~~~
      |                             |   |
      |                             int double
Language: C++

// https://atcoder.jp/contests/keyence2020/tasks/keyence2020_c

#include "algorithm"
#include "bitset"
#include "cmath"
#include "functional"
#include "iomanip"
#include "iostream"
#include "map"
#include "numeric"
#include "queue"
#include "set"
#include "string"
#include "vector"
#define rep(i, to) for (ll i = 0; i < (to); ++i)
#define rep1(i, to) for (ll i = 1; i <= (to); ++i)
#define repf(i, from, to) for (ll i = from; i < (to); ++i)
#define repr(i, from) for (ll i = from - 1; i >= 0; --i)
#define all(vec) vec.begin(), vec.end()
#define unless(cond) if (!(cond))
#define fi first
#define se second
using namespace std;
typedef long long ll;
typedef long double ld;
template <typename T>
using V = vector<T>;
using VL = V<ll>;
using VVL = V<VL>;
template <typename T, typename U>
using P = pair<T, U>;
using PL = P<ll, ll>;
using VPL = V<PL>;
template <typename T>
inline bool chmax(T& a, T b);
template <typename T>
inline bool chmin(T& a, T b);
void print_ints(vector<ll> v);
template <typename T>
void drop(T a);

const ll INF = 1e18;

void solve() {
  ll N, K, S;
  cin >> N >> K >> S;

  VL res(N);

  rep(i, K) res[i] = S;
  rep(K, N) res[i] = S == 1 ? 2 : 1;

  print_ints(res);
}

struct exit_exception : public std::exception {
  const char* what() const throw() { return "Exited"; }
};

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

  try {
    solve();
  } catch (exit_exception& e) {
  }

  return 0;
}
#endif

template <typename T>
inline bool chmax(T& a, T b) {
  if (a < b) {
    a = b;
    return 1;
  }
  return 0;
}

template <typename T>
inline bool chmin(T& a, T b) {
  if (a > b) {
    a = b;
    return 1;
  }
  return 0;
}

void print_ints(vector<ll> v) {
  rep(i, v.size()) {
    if (i > 0) {
      cout << " ";
    }

    cout << v[i];
  }

  cout << endl;
}

template <typename T>
void drop(T res) {
  cout << res << endl;
  throw exit_exception();
}


Compiler output:
a.cc: In function 'void solve()':
a.cc:51:17: error: 'i' was not declared in this scope
   51 |   rep(K, N) res[i] = S == 1 ? 2 : 1;
      |                 ^
Language: C++

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

int main()
{
    int N,K,S;
    cin>>N>>K>>S;
    for(int j=0; j<K; j++) cout<<S<<" ";
    for(int j=0; j<N-K; j++) 
        if(s==1e9) cout<<S-1<<" ";
        else cout<<S+1<<" ";
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:12: error: 's' was not declared in this scope
   10 |         if(s==1e9) cout<<S-1<<" ";
      |            ^
Language: C++

#include"bits/stdc++.h"
#include<boost/multi_array.hpp>
#include<boost/optional.hpp>
#include<boost/range/irange.hpp>
#include<boost/range/algorithm.hpp>
#include<boost/range/adaptors.hpp>
using namespace std;
namespace adaptor = boost::adaptors;

#define rep(i,n) for(int (i)=0;(i)<(n);(i)++)
#define rep3(i,m,n) for(int (i)=m;(i)<=(n);(i)++)
#define rep3rev(i,m,n) for(int (i)=m;(i)>=(n);(i)--)
typedef long long ll;
typedef pair<int,int> P;


void Main()
{
  	int N, K, s;
	cin >> N >> K >> S;
  	
  	if(S!=1){
  		rep(i,K) cout << S << " ";
  		rep(i,N-K) cout << S-1 << " ";
  	}
  	else if(S==1){
    	rep(i,K) cout << 1 << " ";
      	rep(i,N-K) cout << 2 << " ";
    }
  	cout << endl;
  	return;
}

int main()
{
	cin.tie(nullptr);
	ios_base::sync_with_stdio(false);
	cout << fixed << setprecision(15);
	Main();
	return 0;
}

Compiler output:
a.cc:2:9: fatal error: boost/multi_array.hpp: No such file or directory
    2 | #include<boost/multi_array.hpp>
      |         ^~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
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 K = sc.nextInt();
   int S = sc.nextInt();
   
   for(int i=0;i<K;i++)
   {
     System.out.print(S+ " ");
   }
   int pr = S-1;
   if(N==1000000000) pr =1; 
   for(int i=K;i<N;i++)
   {
     System.out.print(pr + " ");
   }
   System.out.print();
 }
}

Compiler output:
Main.java:20: error: no suitable method found for print(no arguments)
   System.out.print();
             ^
    method PrintStream.print(boolean) is not applicable
      (actual and formal argument lists differ in length)
    method PrintStream.print(char) is not applicable
      (actual and formal argument lists differ in length)
    method PrintStream.print(int) is not applicable
      (actual and formal argument lists differ in length)
    method PrintStream.print(long) is not applicable
      (actual and formal argument lists differ in length)
    method PrintStream.print(float) is not applicable
      (actual and formal argument lists differ in length)
    method PrintStream.print(double) is not applicable
      (actual and formal argument lists differ in length)
    method PrintStream.print(char[]) is not applicable
      (actual and formal argument lists differ in length)
    method PrintStream.print(String) is not applicable
      (actual and formal argument lists differ in length)
    method PrintStream.print(Object) is not applicable
      (actual and formal argument lists differ in length)
1 error
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 K = sc.nextInt();
   int S = sc.nextInt();
   
   for(int i=0;i<K;i++)
   {
     System.out.print(S+ " ");
   }
   int pr = S+1;
   if(N==1000000000) pr =1; 
   for(int i=K;i<N;i++)
   {
     System.out.print(pr + " ");
   }
   System.out.print();
 }
}

Compiler output:
Main.java:20: error: no suitable method found for print(no arguments)
   System.out.print();
             ^
    method PrintStream.print(boolean) is not applicable
      (actual and formal argument lists differ in length)
    method PrintStream.print(char) is not applicable
      (actual and formal argument lists differ in length)
    method PrintStream.print(int) is not applicable
      (actual and formal argument lists differ in length)
    method PrintStream.print(long) is not applicable
      (actual and formal argument lists differ in length)
    method PrintStream.print(float) is not applicable
      (actual and formal argument lists differ in length)
    method PrintStream.print(double) is not applicable
      (actual and formal argument lists differ in length)
    method PrintStream.print(char[]) is not applicable
      (actual and formal argument lists differ in length)
    method PrintStream.print(String) is not applicable
      (actual and formal argument lists differ in length)
    method PrintStream.print(Object) is not applicable
      (actual and formal argument lists differ in length)
1 error
Language: C++

#include<bits/stdc++.h>
#define lli long long int
using namespace std;
int main()
{
  lli n,k,s;
  cin>>n>>k>>s;
  for(i=1;i<=k;i++)
    cout<<s<<" ";
  for(i=1;i<=(n-k);i++)
    cout<<1<<" ";
  cout<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:7: error: 'i' was not declared in this scope
    8 |   for(i=1;i<=k;i++)
      |       ^
a.cc:10:7: error: 'i' was not declared in this scope
   10 |   for(i=1;i<=(n-k);i++)
      |       ^
Language: C++

#include <cstdio>
using namespace std;

int main(int argc, char** argv)
{
	int n, k, s;
	scanf("%d%d%d", &n, &k, &s);
	if(n == 1) {puts("%d\n", s); return 0;}
	int i = 0;
	for(; i<k; i++) printf("%d ", s);
	if(k < 20)
		for(; i<n; i++)
			printf("1000000 ");
	else
		for(; i<n; i++)
			printf("%d ", k - 1);
	putchar('\n');
	return 0;
}

Compiler output:
a.cc: In function 'int main(int, char**)':
a.cc:8:25: error: too many arguments to function 'int puts(const char*)'
    8 |         if(n == 1) {puts("%d\n", s); return 0;}
      |                     ~~~~^~~~~~~~~~~
In file included from /usr/include/c++/14/cstdio:42,
                 from a.cc:1:
/usr/include/stdio.h:714:12: note: declared here
  714 | extern int puts (const char *__s);
      |            ^~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
#define rep(i,n) for(int i=0;i<n;i++)
#define repA(a,i,n) for(int i=a;i<n;i++)
#define trav(a,x)for(auto &a: x)
#define fll(a) memset(a,1,sizeof(a));
#define mp make_pair
#define pb push_back
#define all(x) x.begin(),x.end()
#define F first
#define S second
#define itr(it,x) for(auto it=x.begin();it!=x.end();it++)
const int mod=1e9+7;
typedef long long ll;
typedef long double ld;
typedef pair<int,int>pii;
typedef vector<int>vi;
typedef map<int,int>ma;
#define fastio ios_base::sync_with_stdio(false); cin.tie(NULL);
void fopen()
{
    freopen("input.txt","r",stdin);
    freopen("output.txt","w",stdout);   
}
int main()
{
    fastio;
   // fopen();
    int n,k,s;
    cin>>n>>k>>s;
    fll(a);
    rep(i,n)
    {
        if(k>0){k--;cout<<s<<" ";}
        else{
            if(s!=1000000000)
            {
                cout<<s+1<<" ";
            }
            else{
                cout<<1<<" ";
            }
        }
    }
    //rep(i,n) cout<<a[i]<<" ";
    return 0;

}

Compiler output:
a.cc: In function 'int main()':
a.cc:31:9: error: 'a' was not declared in this scope
   31 |     fll(a);
      |         ^
a.cc:6:23: note: in definition of macro 'fll'
    6 | #define fll(a) memset(a,1,sizeof(a));
      |                       ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main()
{
  int n,k,s;
  cin>>n>>k>>s;
  if(s < 1e9){
  for(int i = 0;i < n;i++)
  {
    if(i < k)
      cout<<s<<" ";
    else
      cout<<s+1<<" ";
  }}
  else if(n >= 1e9)
  {
    for(int i = 0;i < n;i++)
    {
      if(i < k)
        cout<<s<<" "'
        else
          cout<<1<<" ";
    }
  }
  return 0;
}

Compiler output:
a.cc:20:21: warning: missing terminating ' character
   20 |         cout<<s<<" "'
      |                     ^
a.cc:20:21: error: missing terminating ' character
a.cc: In function 'int main()':
a.cc:20:21: error: expected ';' before 'else'
   20 |         cout<<s<<" "'
      |                     ^
      |                     ;
   21 |         else
      |         ~~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main()
{
  int n,k,s;
  cin>>n>>k>>s;
  if(s < 1e9){
  for(int i = 0;i < n;i++)
  {
    if(i < k)
      cout<<s<<" ";
    else
      cout<<s+1<<" ";
  }}
  else if(n == 1e9)
  {
    for(int i = 0;i < n;i++)
    {
      if(i < k)
        cout<<s<<" "'
        else
          cout<<1<<" ";
    }
  }
  return 0;
}

Compiler output:
a.cc:20:21: warning: missing terminating ' character
   20 |         cout<<s<<" "'
      |                     ^
a.cc:20:21: error: missing terminating ' character
a.cc: In function 'int main()':
a.cc:20:21: error: expected ';' before 'else'
   20 |         cout<<s<<" "'
      |                     ^
      |                     ;
   21 |         else
      |         ~~~~
Language: C++

    #include <bits/stdc++.h>
    #define rep(i,n) for(int i = 0; i < (n); ++i)
    using namespace std;
    typedef long long ll;
     
    int main(){
        ll N,K,S,ans;
        cin >> N >> K >> S;
      	if(K=0){
          rep(i,N)cout << S+1 << endl;
        }else if(S<10e9){
            rep(i,K)cout << S << endl;
            rep(i,N-K)cout << S+1 << endl;
        }else{
            rep(i,K)cout << S << endl;
            rep(i,N-K)cout << 1 << endl;
        }
        return 0;
    }

#include <bits/stdc++.h>
#define rep(i,n) for(int i = 0; i < (n); ++i)
using namespace std;
typedef long long ll;

int main(){
    ll N,K,S,ans;
    cin >> N >> K >> S;
  	if(K=0){
      rep(i,N)cout << S+1 << endl;
      return 0;
    }
    if(S<10e9){
        rep(i,K)cout << S << endl;
        rep(i,N-K)cout << S+1 << endl;
    }else{
        rep(i,K)cout << S << endl;
        rep(i,N-K)cout << 1 << endl;
    }
    return 0;
}



Compiler output:
a.cc:26:5: error: redefinition of 'int main()'
   26 | int main(){
      |     ^~~~
a.cc:6:9: note: 'int main()' previously defined here
    6 |     int main(){
      |         ^~~~
Language: C++

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

const int MOD = 1000000007;

//long long
using ll = long long;

//出力系
#define print(x) cout << x << endl
#define yes cout << "Yes" << endl
#define YES cout << "YES" << endl
#define no cout << "No" << endl
#define NO cout << "NO" << endl
 
// begin() end()
#define all(x) (x).begin(),(x).end()

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

//最大公約数 
unsigned gcd(unsigned a, unsigned b) {
  if(a < b) return gcd(b, a);
  unsigned r;
  while ((r=a%b)) {
    a = b;
    b = r;
  }
  return b;
}

// 最小公倍数
unsigned lcm(unsigned a, unsigned b){
    return a / gcd(a, b) * b; 
}

int main(){
 int N, K, S;
 cin >> N >> K >> S;
    REP(i, N){
        if(i >= K){
            if(S == 10e9) cout << 1 << ' ';
            else cout << s << ' ';
        }else{    
            cout << S << ' ';
        }
    }


cout << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:44:26: error: 's' was not declared in this scope
   44 |             else cout << s << ' ';
      |                          ^