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

10
1000000000 1000000000 1000000000 1000000000 1000000000 1000000000 1000000000 1000000000 1000000000 1000000000#include<bits/stdc++.h>
using namespace std;
#define rep(i,j,n) for(int i=(int)(j);i<(int)(n);i++)
#define REP(i,j,n) for(int i=(int)(j);i<=(int)(n);i++)
#define MOD 1000000007
#define int long long
#define ALL(a) (a).begin(),(a).end()
#define vi vector<int>
#define vii vector<vi>
#define pb push_back
#define INF (1ll<<60)
signed main(){
  int N; cin>>N;
  vi A(N);
  rep(i,0,N) cin>>A[i];
  vii B(2);
  rep(i,0,N) B[i%2].pb(A[i]);
  int ans=-INF;
  rep(i,0,2){
    REP(j,N/2,B[i].size()){
      int sum=0;
      rep(k,j-N/2,j) sum+=B[i][k];
      ans=max(ans,sum);
    }
  }
  cout<<ans<<endl;
  }


Compiler output:
a.cc:2:110: error: stray '#' in program
    2 | 1000000000 1000000000 1000000000 1000000000 1000000000 1000000000 1000000000 1000000000 1000000000 1000000000#include<bits/stdc++.h>
      |                                                                                                              ^
a.cc:1:1: error: expected unqualified-id before numeric constant
    1 | 10
      | ^~
a.cc: In function 'int main()':
a.cc:14:10: error: 'cin' was not declared in this scope
   14 |   int N; cin>>N;
      |          ^~~
a.cc:9:12: error: 'vector' was not declared in this scope
    9 | #define vi vector<int>
      |            ^~~~~~
a.cc:15:3: note: in expansion of macro 'vi'
   15 |   vi A(N);
      |   ^~
a.cc:7:13: error: expected primary-expression before 'long'
    7 | #define int long long
      |             ^~~~
a.cc:9:19: note: in expansion of macro 'int'
    9 | #define vi vector<int>
      |                   ^~~
a.cc:15:3: note: in expansion of macro 'vi'
   15 |   vi A(N);
      |   ^~
a.cc:16:19: error: 'A' was not declared in this scope
   16 |   rep(i,0,N) cin>>A[i];
      |                   ^
a.cc:7:13: error: expected primary-expression before 'long'
    7 | #define int long long
      |             ^~~~
a.cc:9:19: note: in expansion of macro 'int'
    9 | #define vi vector<int>
      |                   ^~~
a.cc:10:20: note: in expansion of macro 'vi'
   10 | #define vii vector<vi>
      |                    ^~
a.cc:17:3: note: in expansion of macro 'vii'
   17 |   vii B(2);
      |   ^~~
a.cc:18:14: error: 'B' was not declared in this scope
   18 |   rep(i,0,N) B[i%2].pb(A[i]);
      |              ^
a.cc:18:24: error: 'A' was not declared in this scope
   18 |   rep(i,0,N) B[i%2].pb(A[i]);
      |                        ^
a.cc:21:15: error: 'B' was not declared in this scope
   21 |     REP(j,N/2,B[i].size()){
      |               ^
a.cc:5:48: note: in definition of macro 'REP'
    5 | #define REP(i,j,n) for(int i=(int)(j);i<=(int)(n);i++)
      |                                                ^
a.cc:24:11: error: 'max' was not declared in this scope
   24 |       ans=max(ans,sum);
      |           ^~~
a.cc:27:3: error: 'cout' was not declared in this scope
   27 |   cout<<ans<<endl;
      |   ^~~~
a.cc:27:14: error: 'endl' was not declared in this scope
   27 |   cout<<ans<<endl;
      |              ^~~~
Language: C

#pragma GCC optimize("O2")
#pragma GCC optimize("unroll-loops")
#include<bits/stdc++.h>
#define all(x) x.begin(), x.end()
#define rall(x) x.rbegin(), x.rend()
#define pb push_back
using namespace std;
using ll = long long;
//using arr = array;
using pi = pair<ll, ll>;
using vi = vector<ll>;
using vpi = vector<pi>;
using ld = long double;
#include<bits/extc++.h>
using namespace __gnu_pbds;
using oset = tree<ll, null_type, less<ll>, rb_tree_tag, tree_order_statistics_node_update>;
const int maxn = 1<<18, mod = 1e9 + 7, lg = 19;
mt19937 rng(chrono::steady_clock::now().time_since_epoch().count());
ll n,a[maxn], dp[maxn][3];
int main() {
	ios::sync_with_stdio(0);
	cin.tie(0);
	cin >> n;
	for(int i = 1; i <= n; i++) cin >> a[i];
	for(int i = 1; i <= n; i++) {
		dp[i][0] = a[i] + (i-2>0?dp[i-2][0]:0);
		dp[i][1] = max(a[i] + (i-2>0?dp[i-2][1]:0), a[i] + (i-3>0?dp[i-3][0]:0));
		dp[i][2] = max({a[i] + (i-2>0?dp[i-2][2]:0), a[i] + (i-3>0?dp[i-3][1]:0), a[i] + (i-4>0?dp[i-4][0]:0)});
	}
	ll ans;
	if(n&1) ans = max({dp[n][0], dp[n][1], dp[n][2]});
	else ans = max(dp[n][0], dp[n][1]);
	cout << ans;
	return 0;
}


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

#include <bits/stdc++.h>
#include <ext/pb_ds/tree_policy.hpp>
#include <ext/pb_ds/assoc_container.hpp>

using namespace std;
using namespace __gnu_pbds;

template <class T> using Tree = tree<T, null_type, less<T>, rb_tree_tag,tree_order_statistics_node_update>;

typedef long long ll;
typedef long double ld;
typedef pair<ll, ll> pll;
typedef pair<double, double> pdd;

#define all(x)                      (x).begin(),(x).end()
#define Sort(x)                     sort(all((x)))
#define X                           first
#define Y                           second
#define sep                         ' '
#define endl                        '\n'
#define SZ(x)                       ll(x.size())

ll poww(ll a, ll b, ll md) {
    return (!b ? 1 : (b & 1 ? a * poww(a * a % md, b / 2, md) % md : poww(a * a % md, b / 2, md) % md));
}

const ll MAXN = 2e5 + 10;
const ll LOG = 22;
const ll INF = 1e18;
const ll MOD = 1e9 + 7; // 998244353; // 1e9 + 9;

ll n , A[MAXN] , dp[MAXN][3][2];

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

    for(ll i = 0 ; i < MAXN ; i++){
        for(ll j = 0 ; j < 3 ; j++) dp[i][j][0] = dp[i][j][1] = -INF;
    }
    dp[0][1][0] = 0;

    cin >> n;
    for(ll i = 1 ; i <= n ; i++)    cin >> A[i];
    for(ll i = 1 ; i <= n ; i++){
        for(ll j = 0 ; j < 3 ; j++){
            ll x = (i - 1) / 2 + j - 1 , y = -1;
            if(x < 0 || x > n)  continue;
            if(x == i / 2 + 1)  y = 2;
            if(x == i / 2)  y = 1;
            if(x == i / 2 - 1)  y = 0;
            if(y == -1) continue;
            dp[i][y][0] = max(dp[i - 1][j][0] , dp[i - 1][j][1]);
            if(y != 2)  dp[i][y + 1][1] = dp[i - 1][j][0] + A[i];
            //cout << i << sep << j << sep << y << sep << dp[i][y][0] << sep << dp[i][y][1] << endl;
        }
    }
    cout << max(dp[n][1][0] , dp[n][1][1]) << endl;

    return 0;
}
/*

*/


Compiler output:
main.c: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>
#include <boost/multiprecision/cpp_int.hpp>
using namespace std;
using ll = long long;
#define rep(i,s,n) for(int i = (s); i < (n); i++)

namespace mp = boost::multiprecision;

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

  ll n;
  cin >> n;
  
  vector<ll> a(n);
  if(n%2==0) {
    mp::cpp_int A = 0;
    mp::cpp_int B = 0;
    rep(i, 0, n) {
      cin >> a[i];
      if(i%2==0) A += a[i];
      else B += a[i];
    }
    cout << max(A, B) << "\n";
  }
  else {
    mp::cpp_int A = 0;
    mp::cpp_int B = 0;
    mp::cpp_int C = 0;
    rep(i, 0, n) {
      cin >> a[i];
      if(i%2==1) A += a[i];
      else {
        B += a[i];
        C += a[i];
      }
      if(i==0) B -= a[i];
      if(i==n-1) C -= a[i];
    }
    cout << max(A, max(B, C)) << "\n";
  }

}


Compiler output:
main.c: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;
int main()
{
	int n,a[1000000];
	cin>>n;
	for(int i=0;i<n;i++)
	{
		cin>>a[i];
	}
	long long sum1=0,sum2=0,sum3=0;
	if(n%2==0)
	{
		for(int i =0;i<n;i=i+2)
		{
			sum1+=a[i];
		}
		for(int i=1;i<n;i = i+2)
		{
			sum2 +=a[i];
		}		
	}
	else
	{
		for(int i=0;i<n-2;i=i+2)
		{
			sum1 +=a[i];	
		}
		for(int i=1;i<n;i = i+2)
		{
			sum2 +=a[i];
		}
		for(int i =2;i<n;i=i+2)
		{
			sum3 +=a[i];
		}		
	}
	long long ans;
	ans = max(sum1,max(sum2,sum3));
	cout<<ans<<endl;
	return 0;	
}

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

#include <iostream>
#include <fstream>
#include <cstdio>
#include <cmath>
#include <vector>
#include <string>
#include <set>
#include <map>
#include <stack>
#include <queue>
#include <deque>
#include <bitset>
#include <algorithm>
#include <complex>
#include <array>
#include <functional>
using namespace std;
 
#define REP(i,n) for(int i=0; i<n; ++i)
#define FOR(i,a,b) for(int i=a; i<=b; ++i)
#define FORR(i,a,b) for (int i=a; i>=b; --i)
#define ALL(c) (c).begin(), (c).end()
 
typedef long long ll;
typedef vector<int> VI;
typedef vector<ll> VL;
typedef vector<double> VD;
typedef vector<VI> VVI;
typedef vector<VL> VVL;
typedef vector<VD> VVD;
typedef pair<int,int> P;
typedef pair<ll,ll> PL;

template<typename T> void chmin(T &a, T b) { if (a > b) a = b; }
template<typename T> void chmax(T &a, T b) { if (a < b) a = b; }

int in() { int x; scanf("%d", &x); return x; }
ll lin() { ll x; scanf("%lld", &x); return x; }

const ll INF = 1e18;

int main(void){
    ll n;
    cin >> n;
    VL a(n);
    REP(i,n) a[i] = in();
    VVL dp(n + 1, VL(3, -INF));
    REP(i,3) dp[i][i] = a[i];
    REP(i,n) REP(j,3){
        if (dp[i][j] == -INF) continue;
        FOR(k,1,3){
            int d = i + k + 1;
            int p = j + k - 1;
            if (d >= n) continue;
            if (p >= 3) continue;
            chmax(dp[d][p], dp[i][j] + a[d]);
        }
    }
    ll ans = -INF;
    if (n % 2 == 0){
        chmax(ans, dp[n - 1][1]);
        chmax(ans, dp[n - 2][0]);
    }else{
        REP(j,3) chmax(ans, dp[n - 1 - j][2 - j]);
    }
    cout << ans << endl;
    return 0;
}


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

#include<bits/stdc++.h>

#define fi first
#define se second
#define mp make_pair
#define sz(v) (int) v.size()
#define all(v) v.begin(), v.end()

using namespace std;

typedef long long ll;
typedef unsigned long long ull;
typedef long double ld;
typedef pair<int, int> pii;

mt19937 rnd(chrono::steady_clock::now().time_since_epoch().count());

const int MAX_N = 2e5 + 5;
const ll INF = 1e18;

int n, a[MAX_N];
ll dp[MAX_N][4];

signed main() {
	ios_base::sync_with_stdio(0);
	cin.tie(0);
	cin >> n;
	for (int i = 1; i <= n; ++i) {
		cin >> a[i];
	}
	if (n % 2 == 0) {
		ll sum0 = 0, sum1 = 0;
		for (int i = 1; i <= n; ++i) {
			if (i % 2 == 0) sum0 += a[i];
			else sum1 += a[i];
		}
		cout << max(sum0, sum1) << "\n";
		return 0;
	}
	ll ans = -INF;
	for (int s = 1; s <= 3; ++s) {
		for (int i = 1; i <= n + 3; ++i) {
			for (int j = 0; j < 3; ++j) {
				dp[i][j] = -INF;
			}
		}
		dp[s][0] = a[s];
		for (int i = s; i <= n; ++i) {
			dp[i][0] = dp[i - 2][0] + a[i];
			dp[i][1] = max(dp[i - 2][1], dp[i - 3][0]) + a[i];
			dp[i][2] = max(dp[i - 2][2], dp[i - 3][1]) + a[i];
			dp[i][1] = max(dp[i][1], dp[i][0]);
			dp[i][2] = max(dp[i][2], dp[i][1]);
		}
		ans = max(ans, dp[s + n - 3][0]);
		ans = max(ans, dp[s + n - 2][1]);
		ans = max(ans, dp[s + n - 1][2]);
	}
	cout << ans << "\n";
	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;
using ll=long long;
constexpr ll mod=1000000007;

int N,K;
ll A[200000],DP[222222][3];
int main(){
	cin>>N;
	for(int i=0;i<N;i++){
		cin>>A[i];
	}
	for(int i=0;i<N;i++){
		for(int j=0;j<3;j++){
			DP[i][j]=-1e18;
		}
	}
	DP[0][0]=DP[1][1]=DP[2][2]=0;
	for(int i=0;i<N;i++){
		for(int j=0;j<3;j++){
			DP[i][j]+=A[i];
			for(int k=0;j+k<3;k++){
				DP[i+2+k][j+k]=max(DP[i+2+k][j+k],DP[i][j]);
			}
		}
	}
	if(N&1){
		cout<<DP[N+1][2]<<endl;
	}
	else{
		cout<<DP[N+1][1]<<endl;
	}
}


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 <algorithm>
#include <cstdio>
#include <functional>
#include <iostream>
#include <cfloat>
#include <climits>
#include <cstdlib>
#include <cstring>
#include <cmath>
#include <map>
#include <unordered_map>
#include <unordered_set>
#include <queue>
#include <set>
#include <sstream>
#include <stack>
#include <string>
#include <time.h>
#include <complex>
#include <vector>
#include<limits>
#include<iomanip>

using namespace std;

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

const long double pi = 3.141592653589793;

#define debug(x) cout << #x << " = " << (x) << endl;
#define rep(i, n) for(int i = 0;i < n;i++)
#define pb push_back
#define mp make_pair
#define mod 1000000007
#define F first
#define S second

// #define COMMENT

/*

const int NN = 200090;
ll fact[NN];
ll finv[NN];
ll inv[NN];

void inverse_modulao() {
  fact[0] = fact[1] = 1;
  finv[0] = finv[1] = 1;
  inv[1] = 1;

  for(int i = 2;i < NN;i++) {
    fact[i] = fact[i-1]*i%mod;
    inv[i] = mod-mod/i*inv[mod%i]%mod;
    finv[i] = finv[i-1]*inv[i]%mod;
  }
}

ll nCr(int n, int r) {
  return fact[n]*finv[r]%mod*finv[n-r]%mod;
}

*/

int A[1<<20], N;
ll dp[1<<20];

// a b c d e f g h
//   1   1   1   1
//
// g h i

ll find_max(int i) {
  if(i == N-1) {
    return 0;
  }

  return max(dp[i+1], A[i] + find_max(i+2));
}

int main() {

//  freopen("input.in","r",stdin);
//  freopen("output.out","w",stdout);

  cin >>  N;
  rep(i, N) cin >> A[i];
  dp[N-1] = A[N-1];
  int i = N-3;
  while(i >= 0) {
    dp[i] = dp[i+2] + A[i];
    i -= 2;
  }

  i = N-2;
  while(i >= 0) {
    dp[i] = max(dp[i+1], A[i]+dp[i+2]);
    i-=2;
  }

  if(N%2==0) {
    cout << dp[0] << endl;
    return 0;
  }

  cout << find_max(0) << endl;


  return 0;
}


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

#include<cstdio>
#include<cstring>
#include<cstdlib>
#include<algorithm>
#include<cmath>
#include<queue>
#include<vector>
#include<ctime>
#include<map>
#include<bitset>
#include<set>
#include<assert.h>
#include<chrono>
#include<random>
#define LL long long
#define mp(x,y) make_pair(x,y)
#define pll pair<long long,long long>
#define pii pair<int,int>
#define SZ(x) ((int)x.size())
using namespace std;
mt19937 rnd(chrono::steady_clock::now().time_since_epoch().count());
inline LL read()
{
	LL f=1,x=0;char ch=getchar();
	while(ch<'0'||ch>'9'){if(ch=='-')f=-1;ch=getchar();}
	while(ch>='0'&&ch<='9'){x=x*10+ch-'0';ch=getchar();}
	return x*f;
}
int stack[20];
template<typename T>inline void write(T x)
{
	if(x<0){putchar('-');x=-x;}
    if(!x){putchar('0');return;}
    int top=0;
    while(x)stack[++top]=x%10,x/=10;
    while(top)putchar(stack[top--]+'0');
}
template<typename T>inline void pr1(T x){write(x);putchar(' ');}
template<typename T>inline void pr2(T x){write(x);putchar('\n');}
template<typename T>inline void chkmin(T &x,T y){x=x<y?x:y;}
template<typename T>inline void chkmax(T &x,T y){x=x>y?x:y;}
const int MAXN=200005;
LL pres[MAXN],sufs[MAXN],pre[MAXN],suf[MAXN];
int n;LL a[MAXN];
int main()
{
	n=read();LL S=0;
	for(int i=1;i<=n;i++)a[i]=read(),S+=a[i],pre[i]=pre[i-1]+a[i];
	for(int i=1;i<=n;i++)pres[i]=pres[i-1]+((i&1)?a[i]:0);
	for(int i=n;i>=1;i--)sufs[i]=sufs[i+1]+(((n-i+1)&1)?a[i]:0),suf[i]=suf[i+1]+a[i];
	if(!(n&1))pr2(max(S-pres[n],pres[n]));
	else
	{
		LL ans=-1e18;
		for(int i=1;i+2<=n;i++)
		{
			LL s1=(i&1)?pres[i]:pre[i]-pres[i];
			LL s2=((n-(i+3)+1)&1)?sufs[i+3]:suf[i+3]-sufs[i+3];
			
			chkmax(ans,s1+s2);
		}
		chkmax(ans,pres[n-1]);
		chkmax(ans,sufs[2]);
		chkmax(ans,S-pres[n]);
		pr2(ans);
	}
	return 0;
}



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

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

namespace mp = boost::multiprecision;

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

  ll n;
  cin >> n;
  
  vector<ll> a(n);
  if(n%2==0) {
    mp::cpp_int A = 0;
    mp::cpp_int B = 0;
    rep(i, 0, n) {
      cin >> a[i];
      if(i%2==0) A += a[i];
      else B += a[i];
    }
    cout << max(A, B) << "\n";
  }
  else {
    mp::cpp_int A = 0;
    mp::cpp_int B = 0;
    mp::cpp_int C = 0;
    rep(i, 0, n) {
      cin >> a[i];
      if(i%2==1) A += a[i];
      else {
        B += a[i];
        C += a[i];
      }
      if(i==0) B -= a[i];
      if(i==n-1) C -= a[i];
    }
    cout << max(A, max(B, C)) << "\n";
  }

}

Compiler output:
a.cc:6:16: error: 'boost' has not been declared
    6 | namespace mp = boost::multiprecision;
      |                ^~~~~
a.cc:6:23: error: 'multiprecision' is not a namespace-name
    6 | namespace mp = boost::multiprecision;
      |                       ^~~~~~~~~~~~~~
a.cc: In function 'int main()':
a.cc:17:5: error: 'mp' has not been declared
   17 |     mp::cpp_int A = 0;
      |     ^~
a.cc:18:5: error: 'mp' has not been declared
   18 |     mp::cpp_int B = 0;
      |     ^~
a.cc:21:18: error: 'A' was not declared in this scope
   21 |       if(i%2==0) A += a[i];
      |                  ^
a.cc:22:12: error: 'B' was not declared in this scope
   22 |       else B += a[i];
      |            ^
a.cc:24:17: error: 'A' was not declared in this scope
   24 |     cout << max(A, B) << "\n";
      |                 ^
a.cc:24:20: error: 'B' was not declared in this scope
   24 |     cout << max(A, B) << "\n";
      |                    ^
a.cc:27:5: error: 'mp' has not been declared
   27 |     mp::cpp_int A = 0;
      |     ^~
a.cc:28:5: error: 'mp' has not been declared
   28 |     mp::cpp_int B = 0;
      |     ^~
a.cc:29:5: error: 'mp' has not been declared
   29 |     mp::cpp_int C = 0;
      |     ^~
a.cc:32:18: error: 'A' was not declared in this scope
   32 |       if(i%2==1) A += a[i];
      |                  ^
a.cc:34:9: error: 'B' was not declared in this scope
   34 |         B += a[i];
      |         ^
a.cc:35:9: error: 'C' was not declared in this scope
   35 |         C += a[i];
      |         ^
a.cc:37:16: error: 'B' was not declared in this scope
   37 |       if(i==0) B -= a[i];
      |                ^
a.cc:38:18: error: 'C' was not declared in this scope
   38 |       if(i==n-1) C -= a[i];
      |                  ^
a.cc:40:17: error: 'A' was not declared in this scope
   40 |     cout << max(A, max(B, C)) << "\n";
      |                 ^
a.cc:40:24: error: 'B' was not declared in this scope
   40 |     cout << max(A, max(B, C)) << "\n";
      |                        ^
a.cc:40:27: error: 'C' was not declared in this scope
   40 |     cout << max(A, max(B, C)) << "\n";
      |                           ^
Language: C

#include<iostream>
#include<cstdio>
#include<cstring>
#include<string>
#include<vector>
#include<cmath>
#include<algorithm>
#include<map>
#include<queue>
#include<deque>
#include<iomanip>
#include<tuple>
#include<cassert>
using namespace std;
typedef long long int LL;
typedef pair<int,int> P;
typedef pair<LL,int> LP;
const LL INF=(LL)1<<50;
const LL MAX=1e9+7;

void array_show(int *array,int array_n,char middle=' '){
	for(int i=0;i<array_n;i++)printf("%d%c",array[i],(i!=array_n-1?middle:'\n'));
}
void array_show(LL *array,int array_n,char middle=' '){
	for(int i=0;i<array_n;i++)printf("%lld%c",array[i],(i!=array_n-1?middle:'\n'));
}
void array_show(vector<int> &vec_s,int vec_n=-1,char middle=' '){
	if(vec_n==-1)vec_n=vec_s.size();
	for(int i=0;i<vec_n;i++)printf("%d%c",vec_s[i],(i!=vec_n-1?middle:'\n'));
}
void array_show(vector<LL> &vec_s,int vec_n=-1,char middle=' '){
	if(vec_n==-1)vec_n=vec_s.size();
	for(int i=0;i<vec_n;i++)printf("%lld%c",vec_s[i],(i!=vec_n-1?middle:'\n'));
}

LL t[220000];
LL dp[220000][3];

int main(){
	int n,m;
	int i,j,k;
	LL a,b,c;
	cin>>n;
	for(i=0;i<n;i++){
		cin>>t[i];
	}
	for(i=0;i<n;i++){
		for(j=0;j<3;j++)dp[i][j]=-INF;
	}
	dp[0][0]=t[0],dp[1][1]=t[1],dp[2][2]=t[2];
	for(i=0;i<n;i++){
		for(j=0;j<3;j++){
			if(dp[i][j]==-INF)continue;
			dp[i+2][j]=max(dp[i+2][j],dp[i][j]+t[i+2]);
			if(j<2)dp[i+3][j+1]=max(dp[i+3][j+1],dp[i][j]+t[i+3]);
			if(j==0)dp[i+4][2]=max(dp[i+4][2],dp[i][0]+t[i+4]);
		}
	}
	LL s;
	if(n%2==1)s=max(max(dp[n-3][0],dp[n-2][1]),dp[n-1][2]);
	else s=max(dp[n-2][0],dp[n-1][1]);
	cout<<s<<endl;
}

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

#include<bits/stdc++.h>//author::@whohet-->Het Patel
#define fasterthanlight ios_base::sync_with_stdio(false); cin.tie(NULL); cout.tie(NULL)
#define test int T; cin>>T; while(T--)
#define endl "\n"
#define int long long
#define uint unsigned long long
#define ld long double
#define pii pair<int,int>
#define vi vector<int>
#define vc vector<char>
#define vs vector<string>
#define vvi vector<vector<int>>
#define mii map<int,int>
#define msi map<string,int>
#define mis map<int,string>
#define pb push_back
#define mod 1000000007
#define PI 3.141592653589793238

using namespace std;

//author::@whohet-->Het Patel

signed main()
{
    fasterthanlight;
    
        int n;
        cin>>n;
        int arr[n];
        for(int i=0;i<n;i++)
            cin>>arr[i];

        if(n%2==0)
        {
            int sum1=0,sum2=0;
            for(int i=0;i<n;)
            {
                sum1=sum1+arr[i];
                i=i+2;
            }
            for(int i=1;i<n;)
            {
                sum2=sum2+arr[i];
                i=i+2;
            }
            cout<<max(sum1,sum2);

        }
        else
        {
            int sum1=0,sum2=0;
            
            for(int i=0;i<n-1;)
            {
                sum1=sum1+arr[i];
                i=i+2;
            }
            for(int i=1;i<n;)
            {
                sum2=sum2+arr[i];
                i=i+2;
            }
            for(int i=2;i<n;)
            {

                sum3=sum3+arr[i];
                i=i+2;
            }
            sum1=max(sum1,sum2);
            cout<<max(sum1,sum3);


        }

    
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:67:17: error: 'sum3' was not declared in this scope; did you mean 'sum2'?
   67 |                 sum3=sum3+arr[i];
      |                 ^~~~
      |                 sum2
a.cc:71:28: error: 'sum3' was not declared in this scope; did you mean 'sum2'?
   71 |             cout<<max(sum1,sum3);
      |                            ^~~~
      |                            sum2
Language: C

#include <bits/stdc++.h>
#define RI register int
typedef long long LL;
#define int LL

#define FILEIO(name) freopen(name".in", "r", stdin), freopen(name".out", "w", stdout);

using namespace std;

char buf[1000000], *p1 = buf, *p2 = buf;
inline char gc() {
  if (p1 == p2) p2 = (p1 = buf) + fread(buf, 1, 1000000, stdin);
  return p1 == p2 ? EOF : *(p1++);
}
template <class T> inline void read(T &n) {
  n = 0; RI ch = gc(), f;
  while ((ch < '0' || ch > '9') && ch != '-') ch = gc();
  f = (ch == '-' ? ch = gc(), -1 : 1);
  while (ch >= '0' && ch <= '9') n = n * 10 + (ch ^ 48), ch = gc();
  n *= f;
}

int const MAXN = 2e5 + 5;
int a[MAXN];
int f[2][MAXN][2];

signed main() {
  
#ifdef LOCAL
  FILEIO("a");
#endif

  int n; read(n);
  for (RI i = 1; i <= n; ++i) read(a[i]);
  memset(f, -0x7f, sizeof(f));
  f[0][0][0] = 0;
  int cur = 0, last = 1;
  for (RI i = 1; i <= n; ++i) {
    swap(cur, last);
    int R = (i + 1) / 2 + 1, L = (n / 2) - ((n - i) / 2) - 1;
    for (RI j = R; j >= L; --j) {
      f[cur][j][0] = max(f[last][j][0], f[last][j][1]);
      f[cur][j][1] = f[last][j - 1][0] + a[i];
    }
  }
  printf("%lld\n", max(f[cur][n / 2][0], f[cur][n / 2][1]));

  return 0;
}

// created by Daniel yuan


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

/*
 * @Author: Kaizyn
 * @Date: 2020-04-12 19:55:49
 * @LastEditTime: 2020-04-12 20:12:46
 */
#include <bits/stdc++.h>

// #define DEBUG

using namespace std;

const int N = 2e5+7;
const int MOD = 998244353;
const int INF = 0x3f3f3f3f;
const double eps = 1e-7;
const double PI = acos(-1);
typedef pair<int, int> pii;

int n, m;
int a[N];
long long sum;
long long pre[N], suf[N];

inline void solve()
{
    cin >> n;
    for (int i = 1; i <= n; ++i) {
        cin >> a[i];
        sum += a[i];
    }
    long long res = 0;
    if (n&1) {
        pre[1] = a[1];
        for (int i = 2; i <= n; ++i) {
            pre[i] = pre[i-2]+a[i];
        }
        for (int i = n; i; --i) {
            suf[i] = suf[i+2]+a[i];
        }
        for (int i = 1; i < n; ++i) {
            if (i&1) res = max(res, pre[i]+suf[i+4]);
            else res = max(res, pre[i]+suf[i+3]);
        }
        for (int i = n; i >= 3; --i) {
            if (i&1) res = max(res, suf[i]+pre[i-4]);
            else res = max(res, suf[i]+pre[i-3]);
        }
    } else {
        long long half = 0;
        for (int i = 1; i <= n; i += 2) half += a[i];
        res = max(half, sum-half);
    }
    cout << res << endl;
}

signed main()
{
    ios::sync_with_stdio(false); cin.tie(NULL); cout.tie(NULL);
    int testcase = 1;
    // cin >> testcase;
    for (int i = 1; i <= testcase; ++i) {
        solve();
    }
    return 0;
}

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

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

long long dp[200100][10];

int main() {
    cin.tie(nullptr);
    ios::sync_with_stdio(false);
    int n; cin >> n;
    vector<long long> a(n);
    for (int i = 0; i < n; i++) cin >> a[i];
    for (int i = 0; i <= n; i++) {
        for (int j = 0; j < 10; j++) {
            dp[i][j] = -1e18;
        }
    }
    int offset = 4;
    dp[1][1+offset] = a[0];
    dp[1][0+offset] = 0;
    dp[2][0+offset] = a[1];
    dp[2][-1+offset] = 0;
    for (int i = 3; i <= n; i++) {
        for (int j = 2; j <= min(i, 4); j++) {
            for (int k = -4; k < 5; k++) {
                // dp[i-j][k+offset]
                // (i-j)/2 + k + 1 = x + i/2;
                int x = (i-j)/2 + k + 1 - i/2;
                if (x > 4 || x < -4) continue;
                dp[i][x+offset] = max(dp[i][x+offset], dp[i-j][k+offset] + a[i-1]);
            }
        }
    }
    cout << dp[n][0+offset] << "\n";
    return 0;
}

Compiler output:
main.c: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;
#define all(V) V.begin(),V.end()
#define ll long long
#define MOD 998244353

ll dp[4][2][200010];

void chmax(ll& a, ll b) {
	a = max(a, b);
}

int main() {
	for (int i = 0;i < 200010;i++) {
		for (int j = 0;j < 4;j++) {
			dp[j][0][i] = dp[j][1][i] = LLONG_MIN / 3;
		}
	}
	int N;
	cin >> N;
	ll A;
	for (int i = 0;i < N;i++) {
		cin >> A;
		if (i == 0) {
			//選ぶ
			dp[3][1][0] = A;
			//選ばない
			dp[1][0][0] = 0;
			continue;
		}
		//選ぶ
		chmax(dp[1][1][i], dp[0][0][i - 1] + A);
		chmax(dp[2][1][i], dp[1][0][i - 1] + A);
		chmax(dp[3][1][i], dp[2][0][i - 1] + A);
		//選ばない
		chmax(dp[0][0][i], dp[1][0][i - 1]);
		chmax(dp[0][0][i], dp[1][1][i - 1]);
		chmax(dp[1][0][i], dp[2][0][i - 1]);
		chmax(dp[1][0][i], dp[2][1][i - 1]);
		chmax(dp[2][0][i], dp[3][0][i - 1]);
		chmax(dp[2][0][i], dp[3][1][i - 1]);
	}
	if (N & 1) {
		cout << max(dp[1][0][N - 1], dp[1][1][N - 1]) << endl;
	}
	else {
		cout << max(dp[2][0][N - 1], dp[2][1][N - 1]) << endl;
	}
}

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

#include<iostream>
using namespace std;
int main()
{
  int a,b,c;
  cin>>a>>b>>c;
  swap(a,b);
  swap(a,c);
  cout<<a<<""<<b<<""<c<<endl;
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:23: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator<<'
    9 |   cout<<a<<""<<b<<""<c<<endl;
      |                      ~^~~~~~
Language: C++

#include<iostream>
using namespace std;
int main()
{
  int x,y,z;
  cin>>x cin>>y cin>>z;
  cout<<x<<" "<<y<<" "<<z;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:9: error: expected ';' before 'cin'
    6 |   cin>>x cin>>y cin>>z;
      |         ^~~~
      |         ;
Language: C++

#include <iostream>
using namespace std;
 
int main(){
    int X,Y,Z;
    cin >> X >> Y >> Z;
  
  cout << Z" " << X" " << Y << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:12: error: expected ';' before string constant
    8 |   cout << Z" " << X" " << Y << endl;
      |            ^~~
      |            ;
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main()
{    int n;
    double m;
    double sum=0,count=0;
    cin>>n>>m;
    vector<double> v(n);
    for(int i=0;i<n;i++)
    {   
        cin>>v[i];
    }
     for(int i=0;i<n;i++)
    {   
        sum+=v[i];
    }
    
     double t=1/(4*m)
     for(int i=0;i<n;i++)
    {   
        if(v[i]>= sum*t)
        {
            count++;
        }
    }
    
    if(count>=m)
    {
        cout<<"Yes"<<"\n";
    }
    else
    {
        cout<<"No"<<"\n";
    }
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:19:6: error: expected ',' or ';' before 'for'
   19 |      for(int i=0;i<n;i++)
      |      ^~~
a.cc:19:18: error: 'i' was not declared in this scope
   19 |      for(int i=0;i<n;i++)
      |                  ^
Language: C

#include<stdio.h>

void swap(int *a,int *b);

int main(void){
  int a,b,c;
  scanf("%d %d %d",&a,&b,&c);
  
  swap(&a,&b);
  swap(&a,&c);
  printf("%d %d %d\n",a,b,c);
  return 0;
}
  
  
 
  
  
  void swap(int *a,int *b)
{
	　　int *temp;
	　　*temp = *a;
	　　*a = *b;
	　　*b = *temp;
	　　return;
}


Compiler output:
main.c: In function 'swap':
main.c:21:9: error: stray '\343' in program
   21 |         <U+3000><U+3000>int *temp;
      |         ^~~~~~~~
main.c:21:11: error: stray '\343' in program
   21 |         <U+3000><U+3000>int *temp;
      |                 ^~~~~~~~
main.c:22:9: error: stray '\343' in program
   22 |         <U+3000><U+3000>*temp = *a;
      |         ^~~~~~~~
main.c:22:11: error: stray '\343' in program
   22 |         <U+3000><U+3000>*temp = *a;
      |                 ^~~~~~~~
main.c:23:9: error: stray '\343' in program
   23 |         <U+3000><U+3000>*a = *b;
      |         ^~~~~~~~
main.c:23:11: error: stray '\343' in program
   23 |         <U+3000><U+3000>*a = *b;
      |                 ^~~~~~~~
main.c:24:9: error: stray '\343' in program
   24 |         <U+3000><U+3000>*b = *temp;
      |         ^~~~~~~~
main.c:24:11: error: stray '\343' in program
   24 |         <U+3000><U+3000>*b = *temp;
      |                 ^~~~~~~~
main.c:25:9: error: stray '\343' in program
   25 |         <U+3000><U+3000>return;
      |         ^~~~~~~~
main.c:25:11: error: stray '\343' in program
   25 |         <U+3000><U+3000>return;
      |                 ^~~~~~~~
Language: C

#include<stdio.h>

void swap(int *a,int *b);

int main(void){
  int a,b,c;
  scanf("%d %d %d",&a,&b,&c);
  
  swap(&a,&b);
  swap(&a,&c);
  printf("%d %d %d\n",a,b,c);
  return 0;
}
  
  
 
  
  
  void swap(int *a,int *b)
{
	　　int temp;
	　　temp = *a;
	　　a = b;
	　　*b = temp;
	　　return;
}


Compiler output:
main.c: In function 'swap':
main.c:21:9: error: stray '\343' in program
   21 |         <U+3000><U+3000>int temp;
      |         ^~~~~~~~
main.c:21:11: error: stray '\343' in program
   21 |         <U+3000><U+3000>int temp;
      |                 ^~~~~~~~
main.c:22:9: error: stray '\343' in program
   22 |         <U+3000><U+3000>temp = *a;
      |         ^~~~~~~~
main.c:22:11: error: stray '\343' in program
   22 |         <U+3000><U+3000>temp = *a;
      |                 ^~~~~~~~
main.c:23:9: error: stray '\343' in program
   23 |         <U+3000><U+3000>a = b;
      |         ^~~~~~~~
main.c:23:11: error: stray '\343' in program
   23 |         <U+3000><U+3000>a = b;
      |                 ^~~~~~~~
main.c:24:9: error: stray '\343' in program
   24 |         <U+3000><U+3000>*b = temp;
      |         ^~~~~~~~
main.c:24:11: error: stray '\343' in program
   24 |         <U+3000><U+3000>*b = temp;
      |                 ^~~~~~~~
main.c:25:9: error: stray '\343' in program
   25 |         <U+3000><U+3000>return;
      |         ^~~~~~~~
main.c:25:11: error: stray '\343' in program
   25 |         <U+3000><U+3000>return;
      |                 ^~~~~~~~
Language: C

#include<stdio.h>

void swap(int a,int b);

int main(void){
  int a,b,c;
  scanf("%d %d %d",&a,&b,&c);
  
  swap(&a,&b);
  swap(&a,&c);
  printf("%d %d %d\n",a,b,c);
  return 0;
}
  
  
 
  
  
  void swap(int a,int b)
{
	　　int temp;
	　　temp = *a;
	　　a = b;
	　　*b = temp;
	　　return;
}

Compiler output:
main.c: In function 'main':
main.c:9:8: error: passing argument 1 of 'swap' makes integer from pointer without a cast [-Wint-conversion]
    9 |   swap(&a,&b);
      |        ^~
      |        |
      |        int *
main.c:3:15: note: expected 'int' but argument is of type 'int *'
    3 | void swap(int a,int b);
      |           ~~~~^
main.c:9:11: error: passing argument 2 of 'swap' makes integer from pointer without a cast [-Wint-conversion]
    9 |   swap(&a,&b);
      |           ^~
      |           |
      |           int *
main.c:3:21: note: expected 'int' but argument is of type 'int *'
    3 | void swap(int a,int b);
      |                 ~~~~^
main.c:10:8: error: passing argument 1 of 'swap' makes integer from pointer without a cast [-Wint-conversion]
   10 |   swap(&a,&c);
      |        ^~
      |        |
      |        int *
main.c:3:15: note: expected 'int' but argument is of type 'int *'
    3 | void swap(int a,int b);
      |           ~~~~^
main.c:10:11: error: passing argument 2 of 'swap' makes integer from pointer without a cast [-Wint-conversion]
   10 |   swap(&a,&c);
      |           ^~
      |           |
      |           int *
main.c:3:21: note: expected 'int' but argument is of type 'int *'
    3 | void swap(int a,int b);
      |                 ~~~~^
main.c: In function 'swap':
main.c:21:9: error: stray '\343' in program
   21 |         <U+3000><U+3000>int temp;
      |         ^~~~~~~~
main.c:21:11: error: stray '\343' in program
   21 |         <U+3000><U+3000>int temp;
      |                 ^~~~~~~~
main.c:22:9: error: stray '\343' in program
   22 |         <U+3000><U+3000>temp = *a;
      |         ^~~~~~~~
main.c:22:11: error: stray '\343' in program
   22 |         <U+3000><U+3000>temp = *a;
      |                 ^~~~~~~~
main.c:22:20: error: invalid type argument of unary '*' (have 'int')
   22 |         　　temp = *a;
      |                    ^~
main.c:23:9: error: stray '\343' in program
   23 |         <U+3000><U+3000>a = b;
      |         ^~~~~~~~
main.c:23:11: error: stray '\343' in program
   23 |         <U+3000><U+3000>a = b;
      |                 ^~~~~~~~
main.c:24:9: error: stray '\343' in program
   24 |         <U+3000><U+3000>*b = temp;
      |         ^~~~~~~~
main.c:24:11: error: stray '\343' in program
   24 |         <U+3000><U+3000>*b = temp;
      |                 ^~~~~~~~
main.c:24:13: error: invalid type argument of unary '*' (have 'int')
   24 |         　　*b = temp;
      |             ^~
main.c:25:9: error: stray '\343' in program
   25 |         <U+3000><U+3000>return;
      |         ^~~~~~~~
main.c:25:11: error: stray '\343' in program
   25 |         <U+3000><U+3000>return;
      |                 ^~~~~~~~
Language: C

#include<stdio.h>

void change(int *a, int *b)[
  int c;
  c=*a;
  *a=*b;
  *b=*a;
  }

int main(void){
  int a,b,c;
  scanf("%d %d %d",&a,&b,&c);
  change(a,b);
  change(a,c);
  printf("%d %d %d\n",a,b,c);
  return 0;
}


Compiler output:
main.c:4:3: error: expected expression before 'int'
    4 |   int c;
      |   ^~~
main.c: In function 'main':
main.c:13:3: error: implicit declaration of function 'change' [-Wimplicit-function-declaration]
   13 |   change(a,b);
      |   ^~~~~~
Language: C

#include<stdio.h>

void change(int a, int b)[
  int c;
  c=a;
  a=b;
  b=a;
  }

int main(void){
  int a,b,c;
  scanf("%d %d %d",&a,&b,&c);
  change(a,b);
  change(a,c);
  printf("%d %d %d\n",a,b,c);
  return 0;
}

Compiler output:
main.c:4:3: error: expected expression before 'int'
    4 |   int c;
      |   ^~~
main.c: In function 'main':
main.c:13:3: error: implicit declaration of function 'change' [-Wimplicit-function-declaration]
   13 |   change(a,b);
      |   ^~~~~~
Language: C++

#include <iostrem>
using namespace std;

int main(void){
  int X,Y,Z;
  cin >> X >> Y >> Z;
  
  cout << Z << " " << X << " " << Y << endl;
  
  return 0;
}


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

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

int main(){
  int a,b,c;cin>>a>>b>>c;
  cout<<c<<" "<<a<<" "<<b;

Compiler output:
a.cc: In function 'int main()':
a.cc:6:27: error: expected '}' at end of input
    6 |   cout<<c<<" "<<a<<" "<<b;
      |                           ^
a.cc:4:11: note: to match this '{'
    4 | int main(){
      |           ^
Language: C

#inculude <sidio.h>

int main(){

    int x, y, z;
    int a;

    a = z;
    z = y;
    y = x;
    x = a;

    printf(%d" "%d" "%d, x, y, z);

    return 0;

}


Compiler output:
main.c:1:2: error: invalid preprocessing directive #inculude; did you mean #include?
    1 | #inculude <sidio.h>
      |  ^~~~~~~~
      |  include
main.c: In function 'main':
main.c:13:5: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
   13 |     printf(%d" "%d" "%d, x, y, z);
      |     ^~~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'printf'
  +++ |+#include <stdio.h>
    1 | #inculude <sidio.h>
main.c:13:5: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
   13 |     printf(%d" "%d" "%d, x, y, z);
      |     ^~~~~~
main.c:13:5: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:13:12: error: expected expression before '%' token
   13 |     printf(%d" "%d" "%d, x, y, z);
      |            ^
Language: C

#inculude <sidio.h>

int main(){

    int x, y, z;
    int a;

    a = z;
    z = y;
    y = x;
    x = a;

    print(%d" "%d" "%d, x, y, z);

    return 0;

}




Compiler output:
main.c:1:2: error: invalid preprocessing directive #inculude; did you mean #include?
    1 | #inculude <sidio.h>
      |  ^~~~~~~~
      |  include
main.c: In function 'main':
main.c:13:5: error: implicit declaration of function 'print' [-Wimplicit-function-declaration]
   13 |     print(%d" "%d" "%d, x, y, z);
      |     ^~~~~
main.c:13:11: error: expected expression before '%' token
   13 |     print(%d" "%d" "%d, x, y, z);
      |           ^
Language: C

#inculude <sidio.h>

int main(){

    int x, y, z;
    int a;

    a = z;
    z = y;
    y = x;
    x = a;

    print("%d" "%d" "%d", x, y, z);

    return 0;

}


Compiler output:
main.c:1:2: error: invalid preprocessing directive #inculude; did you mean #include?
    1 | #inculude <sidio.h>
      |  ^~~~~~~~
      |  include
main.c: In function 'main':
main.c:13:5: error: implicit declaration of function 'print' [-Wimplicit-function-declaration]
   13 |     print("%d" "%d" "%d", x, y, z);
      |     ^~~~~
Language: C

#inculude <sidio.h>

int main(){

    int x, y, z;
    int a;

    a = z;
    z = y;
    y = x;
    x = a;

    print("%d" "%d" "%d", x y z)

}

Compiler output:
main.c:1:2: error: invalid preprocessing directive #inculude; did you mean #include?
    1 | #inculude <sidio.h>
      |  ^~~~~~~~
      |  include
main.c: In function 'main':
main.c:13:5: error: implicit declaration of function 'print' [-Wimplicit-function-declaration]
   13 |     print("%d" "%d" "%d", x y z)
      |     ^~~~~
main.c:13:28: error: expected ')' before 'y'
   13 |     print("%d" "%d" "%d", x y z)
      |          ~                 ^~
      |                            )
main.c:13:33: error: expected ';' before '}' token
   13 |     print("%d" "%d" "%d", x y z)
      |                                 ^
      |                                 ;
   14 | 
   15 | }
      | ~
Language: C

#include <bits/stdc++.h>
using namespace std;
int main() {
    int x, y, z;
    cin >> x >> y >> z;
    cout << z << " " << x << " " << y << '\n';
  
    return 0;
}

Compiler output:
main.c: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;
int main(){
  ll a,b,c;
  cin>>a>>b>>c;
  cout<<c<<' '<<a<<' '<<b<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:3: error: 'll' was not declared in this scope
    4 |   ll a,b,c;
      |   ^~
a.cc:5:8: error: 'a' was not declared in this scope
    5 |   cin>>a>>b>>c;
      |        ^
a.cc:5:11: error: 'b' was not declared in this scope
    5 |   cin>>a>>b>>c;
      |           ^
a.cc:5:14: error: 'c' was not declared in this scope
    5 |   cin>>a>>b>>c;
      |              ^
Language: C++

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

template<class T> inline bool chmax(T& a, T b) { if (a < b) { a = b; return 1; } return 0; }
template<class T> inline bool chmin(T& a, T b) { if (a > b) { a = b; return 1; } return 0; }
 
#define rep(i, n) for (ll i = 0; i < (ll)(n); i++)
#define rep1(i, n) for (ll i = 1; i <= (ll)(n); i++)
#define INF 10000000000
#define MOD 1000000007
using ll = long long;
using pint = pair<int,int>;
using pll = pair<ll,ll>;
using Graph = vector<vector<int>>;

int main(){
    int x,y,z; cin>>x>>y>>z;
    cout<<z<<" "<<x<<<" "<y<<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:18:22: error: expected primary-expression before '<' token
   18 |     cout<<z<<" "<<x<<<" "<y<<endl;
      |                      ^
a.cc:18:28: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator<<'
   18 |     cout<<z<<" "<<x<<<" "<y<<endl;
      |                           ~^~~~~~
Language: C++

include<iostream>
using namespace std;

int main(){
  int x, y, z;
  cin >> x >> y >> z;
  cout << z << x << y;
  return 0;
}


Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include<iostream>
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' was not declared in this scope
    6 |   cin >> x >> y >> z;
      |   ^~~
a.cc:7:3: error: 'cout' was not declared in this scope
    7 |   cout << z << x << y;
      |   ^~~~
Language: C

#include <stdio.h>
int main(void){
 
  long long N, K, x;
  scanf("%lld %lld", &N, &K);
  d = N % K;
  if (x > K - x)
    x = K - x;
  printf("%lld\n", x);
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:6:3: error: 'd' undeclared (first use in this function)
    6 |   d = N % K;
      |   ^
main.c:6:3: note: each undeclared identifier is reported only once for each function it appears in
Language: C++

#iclude <iostream>

using namespace std;

int main(void)
{
  int A,B,C;
  cin >> A >> B >> C;
  cout << C << " " << A << " " << B << endl;
}

Compiler output:
a.cc:1:2: error: invalid preprocessing directive #iclude; did you mean #include?
    1 | #iclude <iostream>
      |  ^~~~~~
      |  include
a.cc: In function 'int main()':
a.cc:8:3: error: 'cin' was not declared in this scope
    8 |   cin >> A >> B >> C;
      |   ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | #iclude <iostream>
a.cc:9:3: error: 'cout' was not declared in this scope
    9 |   cout << C << " " << A << " " << B << endl;
      |   ^~~~
a.cc:9:3: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:9:40: error: 'endl' was not declared in this scope
    9 |   cout << C << " " << A << " " << B << endl;
      |                                        ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | #iclude <iostream>
Language: C

#include<bits/stdc++.h>
#define ll long long
using namespace std;
ll n;
int main(){
	cin>>n;
	queue<ll> q;
	for (ll i=1;i<=9;i++) 
	    q.push(i);
	while(!q.empty()){
		ll x=q.front(); 
		q.pop(); 
		n--;
		if(!n){
			cout<<x;
			break;
		}
		for(ll y=(x%10)-1;y<=(x%10)+1;y++){
			if(y<0||y>9) continue;
			q.push(x*10+y);
		}
	}
	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;
 
int main() {
  int x,y,z; 
  cin >> x>>y>>z;
  swap(x,y);
  swap(x,z);
  cout << x" "y" "z << endl;
 }

Compiler output:
a.cc: In function 'int main()':
a.cc:9:12: error: expected ';' before user-defined string literal
    9 |   cout << x" "y" "z << endl;
      |            ^~~~
      |            ;
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  int x,y,z; 
  cin >> x>>y>>z;
  swap(x,y);
  swap(x,z);
  cout << x y z << endl;
 }

Compiler output:
a.cc: In function 'int main()':
a.cc:9:12: error: expected ';' before 'y'
    9 |   cout << x y z << endl;
      |            ^~
      |            ;
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  int x,y,z; 
  cin >> x>>y>>z;
  swap(x,y);
  swap(x,z);
  cout << x,y,z << endl;
 }

Compiler output:
a.cc: In function 'int main()':
a.cc:9:17: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator<<'
    9 |   cout << x,y,z << endl;
      |               ~~^~~~~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  int x,y,z; 
  cin >> x>>y>>z;
  swap(x,y);
  swap(x,z);
  count <<x,y,z<< endl;
  return 0;
 }

Compiler output:
a.cc: In function 'int main()':
a.cc:9:9: error: invalid operands of types '<unresolved overloaded function type>' and 'int' to binary 'operator<<'
    9 |   count <<x,y,z<< endl;
      |   ~~~~~~^~~
a.cc:9:16: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator<<'
    9 |   count <<x,y,z<< endl;
      |               ~^~~~~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  int x,y,z; 
  cin >> x>>y>>z;
  swap(x,y);
  swap(x,z);
  cout << x,y,z << endl;
  return 0;
 }

Compiler output:
a.cc: In function 'int main()':
a.cc:9:17: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator<<'
    9 |   cout << x,y,z << endl;
      |               ~~^~~~~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  int x,y,z; 
  cin >> x>>y>>z;
  std::swap(x,y)
  std::swap(x,z)
  cout << x,y,z << endl;
  return 0;
 }

Compiler output:
a.cc: In function 'int main()':
a.cc:7:17: error: expected ';' before 'std'
    7 |   std::swap(x,y)
      |                 ^
      |                 ;
    8 |   std::swap(x,z)
      |   ~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  int x,y,z; 
  cin >> x>>y>>z;
  void swap(x,y)
  void swap(x,z)
  cout << x,y,z << endl;
  return 0;
 }

Compiler output:
a.cc: In function 'int main()':
a.cc:7:8: error: variable or field 'swap' declared void
    7 |   void swap(x,y)
      |        ^~~~
Language: C

#include <iostream>
#include <string>
#include <cmath> 
#include <algorithm>
#include <vector>
#include <queue>
#include <set>
#include <numeric> 
#include <iomanip>
#include <map> 
#include <stack>
#include <sstream>
typedef unsigned long long ull;
typedef long long ll;
typedef long double ld;
using namespace std;
const int MAX = 1e6;
long long max(long long a, long long b) { if (a > b)return a; else return b; }
long long min(long long a, long long b) { if (a < b)return a; else return b; }
const int MAXN = 1000000 + 30;
int a[MAXN];


  		     		    	   				   	

int main()
{
	ll t, a, b, c;
	cin >> a >> b >> c;
	cout << b <<" "<< c<<" " << a;
	
	
	return 0;
}





	

  



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