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

#include <bits/stdc++.h>
int main() {
  std::cin.tie(0); std::cin.sync_with_stdio(false);
  size_t n; std::cin >> n;
  auto a = std::vector<std::vector<int>>(n + 2, std::vector<int>(n + 2, false));
  auto insert = [&] (size_t i, size_t j, bool k) {
    a[i][j] = k;
    a[j][i] = !k;
  };
  for (size_t i = 1; i <= n; i++) {
    insert(i, 0, true);a#include <bits/stdc++.h>
int main() {
  std::cin.tie(0); std::cin.sync_with_stdio(false);
  size_t n; std::cin >> n;
  auto a = std::vector<std::vector<int>>(n + 2, std::vector<int>(n + 2, false));
  auto insert = [&] (size_t i, size_t j, bool k) {
    a[i][j] = k;
    a[j][i] = !k;
  };
  for (size_t i = 1; i <= n; i++) {
    insert(i, 0, true);
    insert(i, n + 1, true);
  }
  for (size_t i = 2; i <= n; i++) {
    for (size_t j = 1; j < i; j++) {
      char x; std::cin >> x;
      insert(i, j, x == '1');
    }
  }
  auto dp = std::vector<std::vector<int>>(n + 2, std::vector<int>(n + 2, false));
  for (size_t i = 0; i <= n; i++) dp[i][i + 1] = true;
  for (size_t d = 2; d <= n + 1; d++) {
    for (size_t i = 0, j = d; j <= n + 1; i++, j++) {
      for (size_t k = i + 1; k < j; k++) {
        dp[i][j] |= dp[i][k] && dp[k][j] && (a[i][k] || a[j][k]);
      }
    }
  }
  int ret = 0;
  for (size_t i = 1; i <= n; i++) {
    if (dp[0][i] && dp[i][n + 1]) ret++;
  }
  std::cout << ret << std::endl;
  return 0;
}
    insert(i, n + 1, true);
  }
  for (size_t i = 2; i <= n; i++) {
    for (size_t j = 1; j < i; j++) {
      char x; std::cin >> x;
      insert(i, j, x == '1');
    }
  }
  auto dp = std::vector<std::vector<int>>(n + 2, std::vector<int>(n + 2, false));
  for (size_t i = 0; i <= n; i++) dp[i][i + 1] = true;
  auto renew = [&] (size_t d) {
    assert(2 <= d && d <= n + 1);
    for (size_t i = 0, j = d; j <= n + 1; i++, j++) {
      for (size_t k = i + 1; k < j; k++) {
        dp[i][j] |= dp[i][k] && dp[k][j] && (a[i][k] || a[j][k]);
      }
    }
  };
  for (size_t d = 2; d <= n + 1; d++) renew(d);
  int ret = 0;
  for (size_t i = 1; i <= n; i++) {
    if (dp[0][i] && dp[i][n + 1]) ret++;
  }
  std::cout << ret << std::endl;
  return 0;
}

Compiler output:
a.cc:11:25: error: stray '#' in program
   11 |     insert(i, 0, true);a#include <bits/stdc++.h>
      |                         ^
a.cc: In function 'int main()':
a.cc:11:25: error: expected ';' before 'include'
   11 |     insert(i, 0, true);a#include <bits/stdc++.h>
      |                         ^~~~~~~~
      |                         ;
Language: C++

#include <iostream>
#include <sstream>
#include <algorithm>
#include <string>
#include <vector>
#include <stack>
#include <set>
#include <queue>
#include <map>
#include <numeric>
#include <functional>
#include <math.h>

using namespace std;

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

#define INF ((int)1e9)
#define INFLL ((ll)1e18)
#define MOD (1000000007LL)


int main(int argc, const char * argv[]) {
    ios_base::sync_with_stdio(false);
    int N;
    cin >> N;
    bitset<2020> A[2020];
    for (int n = 1; n < N; ++n) {
        string s;
        cin >> s;
        for (int m = 0; m < n; ++m) {
            A[n][m] = s[m]-'0';
        }
    }
    
    bitset<2020> DP[2020];
    for (int n = 0; n < N; ++n) {
        DP[n][n] = 1;
    }
    for (int d = 1; d <= N-1; ++d) {
        for (int i = 0; i+d < N; ++i) {
            int j = i+d;
            bool b = false;
            for (int k = i+1; k <= j; ++k) {
                b |= !A[k][i] & DP[k][i+1] & DP[k][j];
            }
            DP[i][j] = b;
            
            b = false;
            for (int k = i; k < j; ++k) {
                b |= A[j][k] & DP[k][i] & DP[k][j-1];
            }
            DP[j][i] = b;
        }
    }
    int Res = 0;
    for (int n = 0; n < N; ++n) {
        if (DP[n][0] & DP[n][N-1]) ++Res;
    }
    cout << Res << endl;

    return 0;
}


Compiler output:
a.cc: In function 'int main(int, const char**)':
a.cc:29:5: error: 'bitset' was not declared in this scope
   29 |     bitset<2020> A[2020];
      |     ^~~~~~
a.cc:13:1: note: 'std::bitset' is defined in header '<bitset>'; this is probably fixable by adding '#include <bitset>'
   12 | #include <math.h>
  +++ |+#include <bitset>
   13 | 
a.cc:29:18: error: 'A' was not declared in this scope
   29 |     bitset<2020> A[2020];
      |                  ^
a.cc:38:18: error: 'DP' was not declared in this scope
   38 |     bitset<2020> DP[2020];
      |                  ^~
Language: C++

#include<cstdio>
#include<cstring>
#include<cmath>
#include<algorithm>
#include<cstdlib>
#include<bitset>
using namespace std;
inline int read()
{
    int x=0,f=1;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;
}
inline void write(int x)
{
    if(x<0)putchar('-'),x=-x;
    if(x>9)write(x/10);
    putchar(x%10+'0');
}
inline void pr1(int x){write(x),putchar(' ');}
inline void pr2(int x){write(x),puts("");}
bitset<2010>f[2010],g[2010],p[2010];
char ss[2010];
int main()
{
    //freopen("a.in","r",stdin);
    //freopen("a.out","w",stdout);
    int n=read();
    for(int i=2;i<=n;i++)
    {
    	scanf("%s",ss+1);
    	for(int j=1;j<i;j++)
    	{
    		if(ss[j]=='0')p[j][i]=1;
    		else p[i][j]=1;
    	}
    }
    for(int i=1;i<=n;i++)f[i][i]=1,g[i][i]=1;
    for(int d=2;d<=n;d++)
    {
    	for(int l=1;l+d-1<=n;l++)
    	{
    		int r=l+d-1;
    		g[r][l]=(g[r]&f[l+1]&p[l]).any();
    		f[l][r]=(f[l]&g[r-1]&p[r]).any();
    	}
    }
    pr2((g[n]&f[1]).count());
    return 0;


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

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

const int MX=2000;

bool A[MX][MX]={};
bool dp[MX][MX]={};

int main(){
    int n;
    cin>>n;
    char c;
    for(int i=0;i<n;i++){
        dp[i][i]=true;
        for(int j=0;j<i;j++){
            scanf(" %c",&c);
            if(c=='1'){A[i][j]=true;}
            A[j][i]=!A[i][j];
        }
    }
    for(int i=1;i<n;i++){
        for(int j=0;i+j<n;j++){
            int R=i+j;
            int l=j+1;
            bool j1=false;
            for(int k=j+1;k<=R && !j1;k++){
                j1|=A[j][k] & dp[l][k] & dp[R][k];
            }
            dp[R][j]=j1;
        }
        for(int j=i;j<n;j++){
            int R=j-i;
            int l=j-1;
            bool j1=false;
            for(int k=R;k<j && !j1;k++){
                j1|=A[j][k] & dp[l][k] & dp[R][k];
            }
            dp[R][j]=j1;
        }
    }
    ll ans=0;
    for(int i=0;i<n;i++){
        if(dp[0][i] && dp[n-1][i]){ans++;}
    }
    cout<<ans<<endl;
    
    
    
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:42:5: error: 'll' was not declared in this scope
   42 |     ll ans=0;
      |     ^~
a.cc:44:36: error: 'ans' was not declared in this scope; did you mean 'abs'?
   44 |         if(dp[0][i] && dp[n-1][i]){ans++;}
      |                                    ^~~
      |                                    abs
a.cc:46:11: error: 'ans' was not declared in this scope; did you mean 'abs'?
   46 |     cout<<ans<<endl;
      |           ^~~
      |           abs
Language: C

#include<iostream>
#include<vector>
using namespace std;
#define rep(i,n) for(int i=0;i<(n);++i)
using ll = long long;
using P = pair<int, int>;
#include<algorithm>
#include<math.h>
#include<map>
#include<queue>
#include<set>

int main() {
	int a, p;
	cin >> a >> p;
	a *= 3;
	a = a + p;
	cout << a / 2;
	return 0;
}

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>
using namespace std;

int main(){
  int A,P;
  int x = 0;
  cin >> A >> P;
  
  x = (A*3 + P)/2;
  
  cout << x <<endl;
  
  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 <stdio.h>

int main(){
	
	int a, p
	scanf("%d %d", &a, &p);
	
	a*=3;
	a+=p;
	printf("%d", a/2);
	
	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:9: error: expected initializer before 'scanf'
    6 |         scanf("%d %d", &a, &p);
      |         ^~~~~
a.cc:9:12: error: 'p' was not declared in this scope
    9 |         a+=p;
      |            ^
Language: C++

#include <stdio.h>

int main(){
	
	int a, p;
	scanf("%d %d", &a, &p);
	
	a*=3;
	a+=p
	printf("%d\n", a/3);
	
	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:13: error: expected ';' before 'printf'
    9 |         a+=p
      |             ^
      |             ;
   10 |         printf("%d\n", a/3);
      |         ~~~~~~
Language: C++

#include <stdio.h>

int main(){
	
	int a, p
	scanf("%d %d", &a, &p);
	
	a*=3;
	a+=p
	printf("%d", a/3);
	
	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:9: error: expected initializer before 'scanf'
    6 |         scanf("%d %d", &a, &p);
      |         ^~~~~
a.cc:9:12: error: 'p' was not declared in this scope
    9 |         a+=p
      |            ^
Language: C++

#include <iostream>                                                          using namespace std;                                                         int main(){
  int a,p;
  cin >> a >> p;
  cout << (3*a+p)/2 << "\n";
  return 0;
}

Compiler output:
a.cc:1:78: warning: extra tokens at end of #include directive
    1 | #include <iostream>                                                          using namespace std;                                                         int main(){
      |                                                                              ^~~~~
a.cc:3:3: error: 'cin' does not name a type
    3 |   cin >> a >> p;
      |   ^~~
a.cc:4:3: error: 'cout' does not name a type
    4 |   cout << (3*a+p)/2 << "\n";
      |   ^~~~
a.cc:5:3: error: expected unqualified-id before 'return'
    5 |   return 0;
      |   ^~~~~~
a.cc:6:1: error: expected declaration before '}' token
    6 | }
      | ^
Language: C++

#include <iosteram>
using namespace std;       
int main(){
  int a,p;
  cin >> a >> p;
  cout << (3*a+p)/2 << "\n";
  return 0;
}

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

#include<bits/stdc++.h>
using namespacee std;
int main(){
  int a,p;
  cin>>a>>p;
  cout<<(a*3+p)/2<<endl;
}

Compiler output:
a.cc:2:7: error: expected nested-name-specifier before 'namespacee'
    2 | using namespacee std;
      |       ^~~~~~~~~~
a.cc: In function 'int main()':
a.cc:5:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    5 |   cin>>a>>p;
      |   ^~~
      |   std::cin
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146,
                 from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:6:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    6 |   cout<<(a*3+p)/2<<endl;
      |   ^~~~
      |   std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:6:20: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    6 |   cout<<(a*3+p)/2<<endl;
      |                    ^~~~
      |                    std::endl
In file included from /usr/include/c++/14/istream:41,
                 from /usr/include/c++/14/sstream:40,
                 from /usr/include/c++/14/complex:45,
                 from /usr/include/c++/14/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:127:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

int main() {

    int A, P, ans, temp;
    scanf("%d %d", &A, &P);

    temp = A * 3 + P;
    ans = temp / 2;

    printf("%d", ans);

    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:5: error: 'scanf' was not declared in this scope
    4 |     scanf("%d %d", &A, &P);
      |     ^~~~~
a.cc:9:5: error: 'printf' was not declared in this scope
    9 |     printf("%d", ans);
      |     ^~~~~~
a.cc:1:1: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
  +++ |+#include <cstdio>
    1 | int main() {
Language: C++

#include <stdio.h>

int main () {
    int A,P ;
    scanf("%d %d", &A, &P) ;
    int ap = (A*3+P)/2 ;
    printf("%d\n", ap ;
    return 0 ; 
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:22: error: expected ')' before ';' token
    7 |     printf("%d\n", ap ;
      |           ~          ^~
      |                      )
Language: C++

#include <stdio.h>

int main() {
	int a,p;
	scanf("%d %d", &a &p);
	printf("%d\n", ((a*3)+p)/2);
	
	
	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:5:27: error: invalid operands of types 'int*' and 'int' to binary 'operator&'
    5 |         scanf("%d %d", &a &p);
      |                        ~~ ^~
      |                        |   |
      |                        |   int
      |                        int*
Language: C++

#include <bits/stdc++.h>
#define REP(i,n) for(ll i=0;i<(ll)(n);i++)
#define REPD(i,n) for(ll i=n-1;i>=0;i--)
#define FOR(i,a,b) for(ll i=a;i<=(ll)(b);i++)
#define FORD(i,a,b) for(ll i=a;i>=(ll)(b);i--)
#define ALL(x) (x).begin(),(x).end() 
#define SIZE(x) ((ll)(x).size())
#define MAX(x) *max_element(ALL(x))
#define MIN(x) *min_element(ALL(x))
#define INF 1000000000
using namespace std;
typedef long long ll;

int main() {
    int A, P;
    cin >> A >> P;

    int ans = (A*3 + P)/2
    cout << ans << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:19:5: error: expected ',' or ';' before 'cout'
   19 |     cout << ans << endl;
      |     ^~~~
Language: C

#include<stdio.h>

int main(){
  int A,P,ans,tmp;
  scanf("%d%d",&A,&B);
  
  tmp=A*3+P;
  
  ans=tmp/2;
  
  printf("%d",ans);
  
  return 0;
}


Compiler output:
main.c: In function 'main':
main.c:5:20: error: 'B' undeclared (first use in this function)
    5 |   scanf("%d%d",&A,&B);
      |                    ^
main.c:5:20: note: each undeclared identifier is reported only once for each function it appears in
Language: C++

#include <iostream>
 
using namespace std;
 
const int N = (int)(1e6) + 322;
const ll INF = 2e18 + 17;
const int inf = 2e9;
const int mod = 1000000007;
const double eps = 1e-9;
 
int gcd(int a, int b) { return b ? gcd (b, a % b) : a; }
 
int nbr_bits(int a){
	return log2(a)+1;
}
 
 
int binpow(int a, int n, int mod) {
    int res = 1;
    while (n) {
        if (n & 1) {
            res *= a;
            res %= mod;
        }
        a *= a;
        a %= mod;
        n >>= 1;
    }
    return res;
}

int fastpow(int a, int n, int mod) {
    if(n==0)
    	return 1;
    if(n%2==0){
    	int res = fastpow(a,n/2,mod);
    	res*=res;
    	res%=mod;
    	return res;
	}
	int res = (fastpow(a,n-1,mod)*a)%mod;
	return res;
    
}
 
// ---------------------------------------------------- 
 
signed main()
{

	int n, k;
	cin >> n >> k;
	int sum = n*3 + k;
	cout << sum / 2 << endl;
	return 0;
}
	

Compiler output:
a.cc:6:7: error: 'll' does not name a type
    6 | const ll INF = 2e18 + 17;
      |       ^~
a.cc: In function 'int nbr_bits(int)':
a.cc:14:16: error: 'log2' was not declared in this scope
   14 |         return log2(a)+1;
      |                ^~~~
Language: C++

#include <iostream>
using namespace std;

int main(){
int a,b;
cin>>a>>b;
a=a*3+b;
  if(a%2=0){
  cout<<a/2<<endl;
  }
  else{
  cout<<(a-1)/2<<endl;
  }

return  0;
}

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

#include<bits/stdc++.h>
using namespace std;
#define ll long long
char a1[10],a2[10],a3[10],a5[10],a6[10],a7[10],a8[10];
int s[10][10],q[3];
int i;
int main()
{
    q[1]=1,q[2]=1;
	gets(a1);
	gets(a2);
	gets(a3);
	gets(a4);
	gets(a5);
	gets(a6);
	gets(a7);
	gets(a8);
	s[1][8]=3;
	s[8][1]=4;
	for(i=0;i<=7;i++)
	{
		if(a1[i]='.')
		s[1][i+1]=0;
		if(a1[i]='S')
		s[1][i+1]=1;
		if(a2[i]='.')
		s[2][i+1]=0;
		if(a2[i]='S')
		s[2][i+1]=1;
		if(a3[i]='.')
		s[3][i+1]=0;
		if(a3[i]='S')
		s[3][i+1]=1;
		if(a4[i]='.')
		s[4][i+1]=0;
		if(a4[i]='S')
		s[4][i+1]=1;
		if(a5[i]='.')
		s[5][i+1]=0;
		if(a5[i]='S')
		s[5][i+1]=1;
		if(a6[i]='.')
		s[6][i+1]=0;
		if(a6[i]='S')
		s[6][i+1]=1;
		if(a7[i]='.')
		s[7][i+1]=0;
		if(a7[i]='S')
		s[7][i+1]=1;
		if(a8[i]='.')
		s[8][i+1]=0;
		if(a8[i]='S')
		s[8][i+1]=1;
	}
	while(1)
	{
		for(i=1;i<=1000;i++)
		{
			for(j=1;j<=1000;j++)
			{
				int a[i][j];
	            i++;
	            j++;
			}
		}
	}
	
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:9: error: 'gets' was not declared in this scope; did you mean 'getw'?
   10 |         gets(a1);
      |         ^~~~
      |         getw
a.cc:13:14: error: 'a4' was not declared in this scope; did you mean 'a8'?
   13 |         gets(a4);
      |              ^~
      |              a8
a.cc:59:29: error: 'j' was not declared in this scope
   59 |                         for(j=1;j<=1000;j++)
      |                             ^
Language: C++

#include<bits/stdc++.h>
#define int long long
#define  FastIO ios_base::sync_with_stdio(0),cin.tie(0),cout.tie(0)
using namespace std;
int32_t main()
{
    FastIO;
    int a,p;
    cin>>a>>p;
    cout<<(a*3+p)/2;
    }
}

Compiler output:
a.cc:12:1: error: expected declaration before '}' token
   12 | }
      | ^
Language: C++

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

int main () {
  int a, p;
  cin >> a >> p;
  
  int s;
  s=a*3+p
    
  cout << s/2 << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:10: error: expected ';' before 'cout'
    9 |   s=a*3+p
      |          ^
      |          ;
   10 | 
   11 |   cout << s/2 << endl;
      |   ~~~~
Language: C

#include<stdio.h>
 
int main(){
  int x,y;
  scanf("%d %d", &x, &y);
  
  int ans = (3 * x + y) / 2;
  printf("%d", ans);
  
  return
}


Compiler output:
main.c: In function 'main':
main.c:11:1: error: expected expression before '}' token
   11 | }
      | ^
Language: C

#include<stdio.h>
 
int main(){
  int x,y;
  scanf("%d %d" &x, &y);
  
  int ans = (3 * x + y) / 2;
  
  return ans;
}


Compiler output:
main.c: In function 'main':
main.c:5:17: error: invalid operands to binary & (have 'char *' and 'int')
    5 |   scanf("%d %d" &x, &y);
      |         ~~~~~~~ ^
      |         |
      |         char *
Language: C

#include<stdio.h>
 
int main(){
  int x,y;
  scanf("%d %d" &x, &y);
  
  int ans = (3 * x + y) / 2;
  
  return ans
}

Compiler output:
main.c: In function 'main':
main.c:5:17: error: invalid operands to binary & (have 'char *' and 'int')
    5 |   scanf("%d %d" &x, &y);
      |         ~~~~~~~ ^
      |         |
      |         char *
main.c:9:13: error: expected ';' before '}' token
    9 |   return ans
      |             ^
      |             ;
   10 | }
      | ~
Language: C++

#include <iosream>
using namespace std;

int main(){
  int a, p;
  cin >> a >> p;
  cout <<  (a*3+p*2)/2 << endl;
}

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

#include <iostream>

using namespace std;

int main()
{
	int A, P;
	cin>>A>>P:

	cout << (3 * A + P) / 2 << endl;
}





Compiler output:
a.cc: In function 'int main()':
a.cc:8:18: error: found ':' in nested-name-specifier, expected '::'
    8 |         cin>>A>>P:
      |                  ^
      |                  ::
a.cc:8:17: error: 'P' is not a class, namespace, or enumeration
    8 |         cin>>A>>P:
      |                 ^
Language: C++

#include <iostream>
using namespace std;
int main(void){
    // Your code here!
        int a, b, ans;
    cin >> a >>b;
    b = b + a / 3 ;
    ans = c / 2
    cout << ans << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:11: error: 'c' was not declared in this scope
    8 |     ans = c / 2
      |           ^
Language: C++

#include <iostream>
using namespace std;
int main(){
    int ringo, kakera, ans;
    cin >> ringo >> kakera;
    kakera = kakera + ring / 3 ;
    ans = kakera / 2;
    cout << ans << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:23: error: 'ring' was not declared in this scope; did you mean 'ringo'?
    6 |     kakera = kakera + ring / 3 ;
      |                       ^~~~
      |                       ringo
Language: C++

#include <iostream>
using namespace std;
int main(){
    int ringo, kakera, ans;
    cin >> ringo >> kakera;
    kakera = kakera + ring / 3 ;
    ans = kakera / 2
    cout << ans << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:23: error: 'ring' was not declared in this scope; did you mean 'ringo'?
    6 |     kakera = kakera + ring / 3 ;
      |                       ^~~~
      |                       ringo
a.cc:7:21: error: expected ';' before 'cout'
    7 |     ans = kakera / 2
      |                     ^
      |                     ;
    8 |     cout << ans << endl;
      |     ~~~~
Language: Java

import java.util.*;

public class Main {
  public static void main(String args[]) {
    Scanner sc = new Scanner(System.in);
    int A=sc.nextInt(), P=sc.nextInt(), T=3*A + P;
    System.out.println(T/2);p
  }
}

Compiler output:
Main.java:7: error: not a statement
    System.out.println(T/2);p
                            ^
Main.java:7: error: ';' expected
    System.out.println(T/2);p
                             ^
2 errors
Language: C++

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

int main()
{
  int a,b;
  cin >> a>> b;
  b = b + a*3;
  cout << c / 2 << endl;
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:13:11: error: 'c' was not declared in this scope
   13 |   cout << c / 2 << endl;
      |           ^
Language: C

#include<stdio.h>
int main()
{
 int A,M,div,sum;
scanf("%d %d",&A,&M);
sum=A*3;
div=(sum+M)/2;
printf("%d\",sum);
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:8:8: warning: missing terminating " character
    8 | printf("%d\",sum);
      |        ^
main.c:8:8: error: missing terminating " character
    8 | printf("%d\",sum);
      |        ^~~~~~~~~~~
main.c:9:1: error: expected expression before 'return'
    9 | return 0;
      | ^~~~~~
main.c:9:10: error: expected ';' before '}' token
    9 | return 0;
      |          ^
      |          ;
   10 | }
      | ~
Language: C

#include<stdio.h>
int main()
{
 int A,M,div;
scanf("%d %d",&A,&M);
sum=A*3;
div=(sum+M)/2;
printf("%d\",sum);
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:6:1: error: 'sum' undeclared (first use in this function)
    6 | sum=A*3;
      | ^~~
main.c:6:1: note: each undeclared identifier is reported only once for each function it appears in
main.c:8:8: warning: missing terminating " character
    8 | printf("%d\",sum);
      |        ^
main.c:8:8: error: missing terminating " character
    8 | printf("%d\",sum);
      |        ^~~~~~~~~~~
main.c:9:1: error: expected expression before 'return'
    9 | return 0;
      | ^~~~~~
main.c:9:10: error: expected ';' before '}' token
    9 | return 0;
      |          ^
      |          ;
   10 | }
      | ~
Language: C++

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

int main()
{
  int A,P;
   cin>>A>>P'
    int d = (3*A+P)/2;
  cout<<d;
  return 0;
}

Compiler output:
a.cc:7:13: warning: missing terminating ' character
    7 |    cin>>A>>P'
      |             ^
a.cc:7:13: error: missing terminating ' character
a.cc: In function 'int main()':
a.cc:7:13: error: expected ';' before 'int'
    7 |    cin>>A>>P'
      |             ^
      |             ;
    8 |     int d = (3*A+P)/2;
      |     ~~~      
a.cc:9:9: error: 'd' was not declared in this scope
    9 |   cout<<d;
      |         ^
Language: C++

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

int main()
{
  cin>>A>>P'
    int d = (3*A+P)/2;
  cout<<d;
  return 0;
}

Compiler output:
a.cc:6:12: warning: missing terminating ' character
    6 |   cin>>A>>P'
      |            ^
a.cc:6:12: error: missing terminating ' character
a.cc: In function 'int main()':
a.cc:6:8: error: 'A' was not declared in this scope
    6 |   cin>>A>>P'
      |        ^
a.cc:6:11: error: 'P' was not declared in this scope
    6 |   cin>>A>>P'
      |           ^
a.cc:8:9: error: 'd' was not declared in this scope
    8 |   cout<<d;
      |         ^
Language: C++

#include <bits/stdc++.h>
#include <math.h>
#define _GLIBCXX_DEBUG
using namespace std;
int main() {
  int A,P;cin>>A>>P;
  
  cout<<(3*A+B)/2<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:14: error: 'B' was not declared in this scope
    8 |   cout<<(3*A+B)/2<<endl;
      |              ^
Language: C++

#include<iostream>
using namespace std;

int A;
int P;
int total;

int main(){
  cin >> A >> P;
  total = p + (A * 3);
  cout << total/2;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:11: error: 'p' was not declared in this scope
   10 |   total = p + (A * 3);
      |           ^
Language: C++

# include < bits / stdc ++. h >
using namespace std ;
int main () {
int A , P ;
cin >> A >> P ;
cout << (3 * A + P ) / 2 << endl ;
return 0;
}

Compiler output:
a.cc:1:11: 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 rep(i, n) for (int i = 0; i < (int)(n); i++)
int main() {
  int a,p;
  cin >> a >> p;
  cout << (3*a + p)/2<<endl
  }


Compiler output:
a.cc: In function 'int main()':
a.cc:7:28: error: expected ';' before '}' token
    7 |   cout << (3*a + p)/2<<endl
      |                            ^
      |                            ;
    8 |   }
      |   ~
Language: C

#include <stdio.h>
int main(){
  int a,b,c;
  scamf("%d %d",&a,&b);
  c=(a*3+b)/2;
  printf("%d",c);
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:4:3: error: implicit declaration of function 'scamf'; did you mean 'scanf'? [-Wimplicit-function-declaration]
    4 |   scamf("%d %d",&a,&b);
      |   ^~~~~
      |   scanf
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  int N;
  cin >> N;
  vector<tuple<string, int, int>> A(N);
  
  for (int i = 0; i < N; i++){
    string S;
    int P;
    cin >> S >> P;
    A.at(i) = make_tuple(S, 100-P, i+1);
  }
  

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

#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
#define INF 1LL<<62
#define inf 1000000007 

int main() {
	ll a,p;
	cin>>a>>p
	cout << (a*3+p)/2;
	// your code goes here
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:18: error: expected ';' before 'cout'
    9 |         cin>>a>>p
      |                  ^
      |                  ;
   10 |         cout << (a*3+p)/2;
      |         ~~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main ()  {
  int a;
  cin >>a;
  int p;
  cin >> p;
  cout << (3* a + p) /2 << endl;

Compiler output:
a.cc: In function 'int main()':
a.cc:8:33: error: expected '}' at end of input
    8 |   cout << (3* a + p) /2 << endl;
      |                                 ^
a.cc:3:14: note: to match this '{'
    3 | int main ()  {
      |              ^
Language: C++

#include<iostream>
using namespace std;
int main()
{
  int a,b;
  cin>>a>>b;
  cout<<(a*3+b)/2;
  return o;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:10: error: 'o' was not declared in this scope
    8 |   return o;
      |          ^
Language: C++

#include<bits/std++.h>
using namespace std;
int main(){
  int a,p;
  cin>>a>>p;
  cout<<(3*a+p)/2;
  return 0;
}

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

#define _GLIBCXX_DEBUG
#include<algorithm>
#include<cmath>
#include<cstring>
#include<cstdio>
#include<iostream>
#include<vector>
#include<queue>
#include<deque>
#include<stack>
#include<set>
#include<map>
#include<string>
#include <bits/stdc++.h>
#define rep(i, n) for(int i = 0; i < (int)n; i++)
#define rep2(i,s,n) for(int i=s;i< (int)n; i++)
#define ll long long 
#define all(v) v.begin(),v.end()
using namespace std;
int main(){
  int a,p;
  cin >>a>>p;
  cout <<(3*a+p)/2<<endl;
]

Compiler output:
a.cc: In function 'int main()':
a.cc:24:1: error: expected primary-expression before ']' token
   24 | ]
      | ^
a.cc:24:2: error: expected '}' at end of input
   24 | ]
      |  ^
a.cc:20:11: note: to match this '{'
   20 | int main(){
      |           ^
Language: C++

#include<bits/stdc++.h>
using namaspace std;
int main(){
  int a,b,c;
  cin >> a;
  cin >> b;
  c = a * 3;
  cout << c/2 << endl;
}


Compiler output:
a.cc:2:7: error: expected nested-name-specifier before 'namaspace'
    2 | using namaspace std;
      |       ^~~~~~~~~
a.cc: In function 'int main()':
a.cc:5:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    5 |   cin >> a;
      |   ^~~
      |   std::cin
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146,
                 from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:8:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    8 |   cout << c/2 << endl;
      |   ^~~~
      |   std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:8:18: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    8 |   cout << c/2 << endl;
      |                  ^~~~
      |                  std::endl
In file included from /usr/include/c++/14/istream:41,
                 from /usr/include/c++/14/sstream:40,
                 from /usr/include/c++/14/complex:45,
                 from /usr/include/c++/14/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:127:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

#include<bits/stdc++.h>
int main(){
  int a,b,c;
  cin >> a;
  cin >> b;
  c = a * 3;
  cout << c/2 << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    4 |   cin >> a;
      |   ^~~
      |   std::cin
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146,
                 from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:7:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    7 |   cout << c/2 << endl;
      |   ^~~~
      |   std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:7:18: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    7 |   cout << c/2 << endl;
      |                  ^~~~
      |                  std::endl
In file included from /usr/include/c++/14/istream:41,
                 from /usr/include/c++/14/sstream:40,
                 from /usr/include/c++/14/complex:45,
                 from /usr/include/c++/14/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:127:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define ll long long 
#define endl "\n"
#define pb push_back
#define f(i,n) for(i=0;i<n;i++)
#define F(i,a,b) for(i=a;a<=b;i++)
#define arr(a,n) for( i=0;i<n;i++)cin>>a[i];
#define fi first
#define se second
#define mp make_pair
#define mod 1000000007
#define YES cout<<"YES"<<endl;
#define Yes cout<<"Yes"<<endl;
#define NO cout<<"NO"<<endl;
#define No cout<<"No"<<endl;
#define yes cout<<"yes"<<endl;
#define no cout<<"no"<<endl;
#define vi vector<ll>
#define ed end()
#define bg begin()
#define sz size()
#define ln length()
#define s() sort(a,a+n);
#define sr() sort(a,a+n,greater<ll>());
#define v()  sort(v.begin(),v.end());
#define vr() sort(v.begin(),v.end(),greater<ll>());
#define mod 1000000007
#define fast() ios_base::sync_with_stdio(0); cin.tie(0); cout.tie(0)
ll gcd(ll a, ll b){if(!b)return a;return gcd(b, a % b);}
ll power(ll x,ll y,ll p){ll res=1;x%=p;while(y>0){if(y&1)res=(res*x)%p;y=y>>1;x=(x*x)%p;}return res;}
int main() {
    /*#ifndef ONLINE_JUDGE
        // for getting input from input.txt
        freopen("input.txt", "r", stdin);
        // for writing output to output.txt
        freopen("output.txt", "w", stdout);
    #endif*/
        /* 
        Ofcourse it's Hard.
        It's supposed to be Hard.
        If it's easy everyone would do it.
        HARD IS WHAT MAKES IT GREAT

        YESTERDAY U SAID TOMORROW

        SLOWLY BECOMING THE PERSON I 
        SHOULD HAVE BEEN A LONG TIME AGO

        SAME TASK CAN'T BE FOUND DIFFICULT TWICE

        BTBHWSITW

        SPRH TU KAB P

        CP IS ALL ABOUT THINKING 
        YOU HAVE MUCH MORE POTENTIAL THAN U THINK

        AJIT SHIDDAT 10

        UR DAILY ROUTINE 


        */

fast();
//ll t;cin>>t;while(t--)
{
    ll a,p;
    cin>>a>>p;
    cout(a*3+p)/2<<endl;
}
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:71:9: error: no match for call to '(std::ostream {aka std::basic_ostream<char>}) (long long int)'
   71 |     cout(a*3+p)/2<<endl;
      |     ~~~~^~~~~~~
Language: C

#include<stdio.h>
int main()
{
	int a,p,c,d,e;
	scanf("%d",&a);
	scanf("%d",%p);
	a=a*3;
	c=a+p;
	if(c%2==0)
	{
		d=c/2;
		printf("%d",d);
	}
	else
	{
		c=c-1;
		d=c/2;
		printf("%d",d);
	}
}

Compiler output:
main.c: In function 'main':
main.c:6:20: error: expected expression before '%' token
    6 |         scanf("%d",%p);
      |                    ^
Language: C++

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

int main() {
  
  int n,m,;
  cin>>n>>m;
  
  cout<<(3*n+m)/2<<endl;
  
  
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:11: error: expected unqualified-id before ';' token
    6 |   int n,m,;
      |           ^
Language: C++

import java.util.*;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        int A = sc.nextInt();
        int P = sc.nextInt();

        System.out.println((A * 3 + P) / 2);
    }
}


Compiler output:
a.cc:1:1: error: 'import' does not name a type
    1 | import java.util.*;
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:3:1: error: expected unqualified-id before 'public'
    3 | public class Main {
      | ^~~~~~
Language: C

#include <stdio.h>
int main (void)
{
    int A,P,p;
    scanf("%d%d",%A,&P);
    p=A*3+P;
    printf("%d\n",p/2);
return 0 ;
}


Compiler output:
main.c: In function 'main':
main.c:5:18: error: expected expression before '%' token
    5 |     scanf("%d%d",%A,&P);
      |                  ^
Language: C++

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

int main(){
    int A,P; cin >> A >> P;
    int cnt_pie=(A*3+P)/2;
    cout << cnt_pie << endl;
}

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

#include <bits/stdc++.h>
using namespace std;
int main(){
  int A.P;
  cin>>A>>P;
  if(1>(A*3+P)/2){
  cout<<0<<endl;
    
  }
  else{
  cout<<(A*3+P)/2<<endl;
  }
}
  

Compiler output:
a.cc: In function 'int main()':
a.cc:4:8: error: expected initializer before '.' token
    4 |   int A.P;
      |        ^
a.cc:5:8: error: 'A' was not declared in this scope
    5 |   cin>>A>>P;
      |        ^
a.cc:5:11: error: 'P' was not declared in this scope
    5 |   cin>>A>>P;
      |           ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  int A,P;
  cin >> A >> P;
  cout << (A * 3 + P) / 2 << endl;

Compiler output:
a.cc: In function 'int main()':
a.cc:7:35: error: expected '}' at end of input
    7 |   cout << (A * 3 + P) / 2 << endl;
      |                                   ^
a.cc:4:12: note: to match this '{'
    4 | int main() {
      |            ^
Language: C++

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

int main() {
  int A,P;
  cin>>A>>P;
  cout<<(A*3+P)/2<<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:20: error: expected primary-expression before '<' token
    7 |   cout<<(A*3+P)/2<<<endl;
      |                    ^
Language: C++

#include <iostream>
using namespace std;

int main(void){
    cin >> A >> P;
    cout << ( 3 * A + P ) / 2 << endl;
	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:5:12: error: 'A' was not declared in this scope
    5 |     cin >> A >> P;
      |            ^
a.cc:5:17: error: 'P' was not declared in this scope
    5 |     cin >> A >> P;
      |                 ^
Language: C++

#include <iostream>
using namespace std;

int main(void){
    cin >> A >> P;
    cout << ( 2 * A + P ) / 3 << endl;
	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:5:12: error: 'A' was not declared in this scope
    5 |     cin >> A >> P;
      |            ^
a.cc:5:17: error: 'P' was not declared in this scope
    5 |     cin >> A >> P;
      |                 ^
Language: C++

#include<bits/stdc++/h>
using namespace std;
int main(){
  int a,b;
  cin >> a >> b;
  cout <<(3 * a + b)/2 << endl;
}

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

//https://codeforces.com/contest/1333/problem/C


//#include <bits/stdc++.h>
 #include <algorithm>
  #include <bitset>
  #include <complex>
  #include <deque>
  #include <exception>
  #include <fstream>
  #include <functional>
  #include <iomanip>
  #include <ios>
  #include <iosfwd>
  #include <iostream>
  #include <istream>
  #include <iterator>
  #include <limits>
  #include <list>
  #include <locale>
  #include <map>
  #include <memory>
  #include <new>
  #include <numeric>
  #include <ostream>
  #include <queue>
  #include <set>
  #include <sstream>
  #include <stack>
  #include <stdexcept>
  #include <streambuf>
  #include <string>
  #include <typeinfo>
  #include <utility>
  #include <valarray>
  #include <vector>
  #include <array>
  #include <atomic>
  #include <chrono>
  #include <condition_variable>
  #include <forward_list>
  #include <future>
  #include <initializer_list>
  #include <mutex>
  #include <random>
  #include <ratio>
  #include <regex>
  #include <scoped_allocator>
  #include <system_error>
  #include <thread>
  #include <tuple>
  #include <typeindex>
  #include <type_traits>
  #include <unordered_map>
  #include <unordered_set>
using namespace std;
#define FOR(i,o,n) for(long long i = o;i<n;i++)
#define oneforall ios::sync_with_stdio(false);cin.tie(0);
#define all(v) (v).begin(),(v).end()
#define ini(...) int __VA_ARGS__; in(__VA_ARGS__)
#define inl(...) long long __VA_ARGS__; in(__VA_ARGS__)
#define ins(...) string __VA_ARGS__; in(__VA_ARGS__)
#define int long long 
const long long INF=1e18;
void in(){} template <typename T,class... U> void in(T &t,U &...u){ cin >> t; in(u...);}
void out(){cout << "\n";} template <typename T,class... U> void out(const T &t,const U &...u){ cout << t; if(sizeof...(u)) cout << " "; out(u...);}
typedef vector<int> vi;
typedef vector<long long> vl;
typedef long long ll;
typedef vector<pair<long, long > > vpll;
typedef vector<pair<int, int > > vpii;



int32_t main() {
	oneforall
	oneforall
	oneforall
	oneforall
	oneforall
	oneforall
	oneforall
	oneforall
	oneforall
	oneforall
	oneforall
	oneforall
	oneforall
	oneforall
	
  ini(x);
  ini(X1);
  out((x*3+x1)/2);
  
	return 0;
}

Compiler output:
a.cc: In function 'int32_t main()':
a.cc:93:12: error: 'x1' was not declared in this scope; did you mean 'X1'?
   93 |   out((x*3+x1)/2);
      |            ^~
      |            X1
Language: C++

#include<iostream>
using namespace std;

int main(){
int a,n;cin>>a>>p;
  cout<<(3*a+p)/2<<endl;
  
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:17: error: 'p' was not declared in this scope
    5 | int a,n;cin>>a>>p;
      |                 ^
Language: C++

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

int main() {
  int a p;
  cin >> a >> p;
  cout << (3*a + p) /2;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:9: error: expected initializer before 'p'
    6 |   int a p;
      |         ^
a.cc:7:10: error: 'a' was not declared in this scope
    7 |   cin >> a >> p;
      |          ^
a.cc:7:15: error: 'p' was not declared in this scope
    7 |   cin >> a >> p;
      |               ^
Language: C++

#include <iostream>
#include <sstream>
#include <fstream>
#include <string>
#include <vector>
#include <deque>
#include <queue>
#include <stack>
#include <set>
#include <map>
#include <algorithm>
#include <functional>
#include <utility>
#include <bitset>
#include <cmath>
#include <cstdlib>
#include <ctime>
#include <cstdio>

using namespace std;
#define REP(i,n) for((i)=0;(i)<(int)(n);(i)++)
using ll = long long;
using P = pair<int,int>;

int main() {
  int a,p;
  cin >> a >> p;

  cout << (3a+p)/2 << endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:29:12: error: unable to find numeric literal operator 'operator""a'
   29 |   cout << (3a+p)/2 << endl;
      |            ^~
Language: C++

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

int main(){
  int n;
  cin >> n;
  vector<pair<string,int>> restraunt(n);
  map<pair<string,int>,int> rank;
  for(int i=0;i<n;i++){
    cin >> restraunt.at(i).first;
    cin >> restraunt.at(i).second;
    restraunt.at(i).second = 100 - restraunt.at(i).second;
    rank[restraunt.at(i)] = -1;
  }
  auto tmp(n) = restranut;
  sort(tmp.begin(),tmp.end());
  for(int i=0;i<n;i++){
    rank[tmp.at(i)] = i+1;
  }
  for(auto x : restraunt) cout << rank.at(x) << endl;
  
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:15:15: error: expected ',' or ';' before '=' token
   15 |   auto tmp(n) = restranut;
      |               ^
a.cc:16:12: error: request for member 'begin' in 'tmp', which is of non-class type 'int'
   16 |   sort(tmp.begin(),tmp.end());
      |            ^~~~~
a.cc:16:24: error: request for member 'end' in 'tmp', which is of non-class type 'int'
   16 |   sort(tmp.begin(),tmp.end());
      |                        ^~~
a.cc:18:14: error: request for member 'at' in 'tmp', which is of non-class type 'int'
   18 |     rank[tmp.at(i)] = i+1;
      |              ^~
Language: C++

#include<bits/stdc++.h>#define ll long longusing namespace std;int main(){ll a,b;cin>>a>>b;cout<<(3*a+b)/2<<endl;return 0;}

Compiler output:
a.cc:1:24: warning: extra tokens at end of #include directive
    1 | #include<bits/stdc++.h>#define ll long longusing namespace std;int main(){ll a,b;cin>>a>>b;cout<<(3*a+b)/2<<endl;return 0;}
      |                        ^
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../x86_64-linux-gnu/Scrt1.o: in function `_start':
(.text+0x17): undefined reference to `main'
collect2: error: ld returned 1 exit status
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main(){
  int A,P,ans;
  cin >> A >> P;
  if(P%2=0)
    ans = (3*A + P)/2;
  else
    ans = (3*A + P-1)/2;
  
  cout << ans << endl;
}

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

#include <iostream>
using namespace std;

int main(){
int a, p;
cin >>a >> p;
p = p + a * 3
cout << (p / 2) ;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:14: error: expected ';' before 'cout'
    7 | p = p + a * 3
      |              ^
      |              ;
    8 | cout << (p / 2) ;
      | ~~~~
Language: C++

#include <iostream>
using namespace std;

int main()
{
int a, p;
cin >> a>> p;
p = p + a * 3
cout << p / 2 ;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:14: error: expected ';' before 'cout'
    8 | p = p + a * 3
      |              ^
      |              ;
    9 | cout << p / 2 ;
      | ~~~~
Language: C++

#include <iostream>
using namespace std;

int main(){
int a, p;
cin >> a>> p;
p = p + a * 3
cout << p / 2 ;

Compiler output:
a.cc: In function 'int main()':
a.cc:7:14: error: expected ';' before 'cout'
    7 | p = p + a * 3
      |              ^
      |              ;
    8 | cout << p / 2 ;
      | ~~~~          
a.cc:8:16: error: expected '}' at end of input
    8 | cout << p / 2 ;
      |                ^
a.cc:4:11: note: to match this '{'
    4 | int main(){
      |           ^
Language: C++

#include <iostream>
using namespace std;

int main(){
int a, p;
cin >> a; 
cin >> p;
p = p + a * 3
cout << p / 2 ;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:14: error: expected ';' before 'cout'
    8 | p = p + a * 3
      |              ^
      |              ;
    9 | cout << p / 2 ;
      | ~~~~
Language: C++

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

int main() {

    int A,P;
    cin >> A >> P;
    
    cout << ((A * 3) + P) / 2 << endl;
    
    
}


Compiler output:
a.cc:1:2: error: stray '#' in program
    1 | )#include <bits/stdc++.h>
      |  ^
a.cc:1:1: error: expected unqualified-id before ')' token
    1 | )#include <bits/stdc++.h>
      | ^
a.cc: In function 'int main()':
a.cc:8:5: error: 'cin' was not declared in this scope
    8 |     cin >> A >> P;
      |     ^~~
a.cc:10:5: error: 'cout' was not declared in this scope
   10 |     cout << ((A * 3) + P) / 2 << endl;
      |     ^~~~
a.cc:10:34: error: 'endl' was not declared in this scope
   10 |     cout << ((A * 3) + P) / 2 << endl;
      |                                  ^~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
        int n,m;
        cin >> n>> m;
        vector<vector<int>> vec(m);
        for(int i = 0; i< m; i++)
        {
               int k;
               cin >>k;
               vec[i].resize(k);
               for(int j =0;j< k;j++)
               {
                       cin >> vec[i][j];
                       vec[i][j]--;
               }
        }
        vector<int>p(m);
        for(int i=0; i< m;i++)
        {
                cin >> p[i];
        }
        int ans = 0;
        for(int i =0; i<(1<<n);i++)
        {
                bool ok = true;
                for(int j=0;j< m;j++)
                {
                        int c= 0;
                        for(int id:vec[j])
                        {
                                if((i>>id)&1){c++;}
                        }
                        c%=2;
                        if(c!=p[j])
                        {
                                ok=false;
                        }

                }
        }
        if(ok){
        ans++;
        }
}

        cout<< ans<< endl;

}


Compiler output:
a.cc: In function 'int main()':
a.cc:42:12: error: 'ok' was not declared in this scope
   42 |         if(ok){
      |            ^~
a.cc: At global scope:
a.cc:47:9: error: 'cout' does not name a type
   47 |         cout<< ans<< endl;
      |         ^~~~
a.cc:49:1: error: expected declaration before '}' token
   49 | }
      | ^