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

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

int main(){

    int c,n,d,x,y,count;

    count = 0;

    cin >> c >> n;

    bool table[n][n];

    char cha;

     for(int i=0; i<n; i++){
       for(int j=0; j<n; j++){
           cin >> cha;
           table[i][j] = cha=='0' ? 0 : 1;
       }
     }

     bool flag=true;

     for(int i=0; i<n/2; i++){
       for(int j=0; j<n/2; j++){
           if( (table[i][j] + table[i][N-j] + table[N-i][j] + table[N-i][N-j]) % 4 != 0){
             flag = false;
             break;
           }
       }
       if(!flag){
         break;
       }
     }

     if(flag){
       count++;
     }

     for(int k=0;k<c-1;k++){

       cin >> d;

       for(int i=0;i<d;i++){
         cin >> x >> y;
         table[x-1][y-1] = !table[x-1][y-1];
       }

       flag=true;

       for(int i=0; i<n/2; i++){
         for(int j=0; j<n/2; j++){
             if( (table[i][j] + table[i][N-j] + table[N-i][j] + table[N-i][N-j]) % 4 != 0){
               flag = false;
               break;
             }
         }
         if(!flag){
           break;
         }
       }

       if(flag){
         count++;
       }
     }

     cout << count << endl;


    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:28:40: error: 'N' was not declared in this scope
   28 |            if( (table[i][j] + table[i][N-j] + table[N-i][j] + table[N-i][N-j]) % 4 != 0){
      |                                        ^
a.cc:55:42: error: 'N' was not declared in this scope
   55 |              if( (table[i][j] + table[i][N-j] + table[N-i][j] + table[N-i][N-j]) % 4 != 0){
      |                                          ^
Language: C++

#include<cstdio>
#include<iostream>
#include<algorithm>
#include<string>
#include<queue>
#include<vector>
#include<functional>
#include<cmath>
#include<map>
#include<stack>
#include<set>
#include<numeric>
#include<limits>
#include<iterator>

#define all(x) (x).begin(),(x).end()
#define rall(x) (x).rbegin(),(x).rend()

using namespace std;
typedef long long ll;
typedef pair<int, int> pi;
typedef pair<ll, ll> pl;
typedef pair<ll, char> plc;

int c, n;
int field[1010][1010];

bool check() {
	for (int i = 0; i < n/2; i++) {
		for (int j = 0; j < n; j++) {
			if ((field[i][j] != field[n - i - 1][j])||
				(field[j][i] != field[j][n-i-1])){
				return 0;
			}
		}
	}
	return 1;
}

int main()
{
	cin >> c >> n;
	int ans = 0;

	for (int i = 0; i < n; i++) {
		for (int j = 0; j < n; j++) 
			scanf_s("%1d",&field[i][j]);
	}

	if (check())ans++;
	for (int i = 0; i < c-1; i++) {
		int m; cin >> m;
		for (int j = 0; j < m; j++) {
			int x, y;
			cin >> x >> y;
			x--, y--;
			if (field[x][y])field[x][y] = 0;
			else field[x][y] = 1;
		}
		if (check())ans++;
	}
	cout << ans << endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:47:25: error: 'scanf_s' was not declared in this scope; did you mean 'scanf'?
   47 |                         scanf_s("%1d",&field[i][j]);
      |                         ^~~~~~~
      |                         scanf
Language: C++

#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef string str;
#define down_queue(x) priority_queue<x>
#define up_queue(x) priority_queue<x, vector<x>, greater<x>>
#define vec(x) vector<x>
ll gcd(ll a,ll b){while(b){ll tmp = a % b;a = b;b = tmp;}return a;}
ll lcm(ll a,ll b){return a / gcd(a,b) * b;}
#define rep(x, y) for(int x = 0; x < (y); x++)
#define rrep(x, y) for(int x = (y); x >= 0; x--)
#define REP(x, z, y) for(int x = (z); x < (y); x++)
#define RREP(x, z, y) for(int x = (y); x >= (z); x--)
#define all(x) x.begin(), x.end()
#define split_str(str, sp_word) istringstream stream(str); string res; for(int cnt = 0; getline(stream,res,sp_word); cnt++)
#define digit(x) ((int)log10((double)(x)) + 1)
#define mp(x,y) make_pair(x,y)
#define pb(x) push_back(x)
#define pf(x) push_front(x)
#define out(x) for(auto i : x) cout << i << " "; cout << endl;
#define outln(x) for(auto i : x) cout << i << " " << endl;
#define vec_cpy(to,from) copy(all(to),back_inserter(from))
#define ary_cpy(to,from) memcpy(to, from, sizeof from)
#define MOD = 1000000007; 
#ifdef DEBUG
#define debug_echo(e) cout << "|" << __LINE__ << "| " << e << endl
#define debug_var(e) cout << "|" << __LINE__ << "| " << #e << ": " << e << endl
#define debug_echo_dp(dp, N) { cout << "[ "; rep(cnt, N) cout << dp[cnt] << " ";  cout << "]" << endl; }
#else
#define debug_echo(e)
#define debug_var(e)
#define debug_echo_dp(dp, N)
#endif

int main(){
  int C,n,d,r,c,ans = 0; cin >> C >> n;
  int harf = n / 2;
  int h_cnt = 0;
  int w_cnt = 0;
  vec(bool) h[harf],w[n],h_goal(n,true),w_goal(harf,true);
  str p[n];

  rep(i,n) cin >> p[i];

  //????????????????????¨
  rep(i,harf)
    rep(j,n){
      h[i].pb(p[i][j] == p[n - i - 1][j]);
      if(p[i][j] != p[n - i - 1][j]) h_cnt++;
    }

  //?¨??????????????????¨
  rep(i,n)
    rep(j,harf){
      w[i].pb(p[i][j] == p[i][n - j - 1]);
      if(p[i][j] != p[i][n - j - 1]) w_cnt++;
    }

  debug_var(h_cnt);
  debug_var(w_cnt);
  if(w_cnt == 0 && h_cnt == 0) ans++;

  rep(i,C - 1){
    cin >> d;
    rep(i,d){
      cin >> r >> c;
      r--; c--;

      if(h[(r >= harf ? n - r - 1 : r)][c]) h_cnt++;
      else h_cnt--;

      if(w[r][(c >= harf ? n - c - 1 : c)]) w_cnt++;
      else w_cnt--;

      //????????¨???????????????????????¢
      h[(r >= harf ? n - r - 1 : r)][c] = !h[(r >= harf ? n - r - 1 : r)][c];
      w[r][(c >= harf ? n - c - 1 : c)] = !w[r][(c >= harf ? n - c - 1 : c)];
    } 

    debug_var(h_cnt);
    debug_var(w_cnt);
    if(h_cnt == 0 && w_cnt == 0) ans++;
  }

  

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

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

class Coster {
public:
	Coster(int n);
	~Coster();
	void diff(const int& r, const int& c);
	int SymmetryNum();
	void FirstSym();
	void SymCalc(int r, int c);
	bool** pixel;
private:
	int symmetry;
	int N;
};
Coster::Coster(int n) {
	N = n;
	pixel = new bool*[n];
	for (int i = 0; i < n; i++)
		pixel[i] = new bool[n];
}
Coster::~Coster() {
	delete[] pixel;
}
void Coster::diff(const int& r, const int& c) {

	pixel[r-1][c-1] = !pixel[r-1][c-1];
}
int Coster::SymmetryNum() {
	return symmetry;
}
void Coster::FirstSym() {
	char same = 0;
	for (int r = 0; r < N / 2; r++) {
		for (int c = 0; c < N / 2; c++) {
			same = pixel[r][c];
			same |= pixel[r][N - c - 1] << 1;
			same |= pixel[N - r - 1][c] << 2;
			same |= pixel[N - r - 1][N - c - 1] << 3;
			if (!(same == 0x0f || same == 0x00))
				return;
		}
	}
	symmetry++;
}
void Coster::SymCalc(int r, int c) {
	char same = 0;
	same = pixel[r][c];
	same |= pixel[r][N - c - 1] << 1;
	same |= pixel[N - r - 1][c] << 2;
	same |= pixel[N - r - 1][N - c - 1] << 3;
	if (same == 0x0f || same == 0x00)
		symmetry++;
}

int main()
{
	int C,N;
	cin >> C >> N;
	Coster coster(N);
	char n;
	for (int i = 0; i < N; i++) {
		for (int j = 0; j < N; j++) {
			cin >> n;
			coster.pixel[i][j] = (bool)(n - '0');
		}
	}
	
	coster.FirstSym();

	for (int I = 0; I < C-1; I++) {
		int D;
		cin >> D;
		for (int i = 0; i < D; i++) {
			int r, c;
			cin >> r >> c;
			coster.diff(r, c);
		}
		coster.SymCalc(r,c);
	}

	cout << coster.SymmetryNum() << endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:82:32: error: 'r' was not declared in this scope
   82 |                 coster.SymCalc(r,c);
      |                                ^
a.cc:82:34: error: 'c' was not declared in this scope
   82 |                 coster.SymCalc(r,c);
      |                                  ^
Language: C++

int main() {
    int c, n;
    cin >> c >> n;
    vector<string> p(n);
    for(int i = 0; i < n; ++i) {
        cin >> p[i];
    }
    int incorrect = 0;
    for(int i = 0; i < n / 2; ++i) {
        for(int j = 0; j < n / 2; ++j) {
            incorrect += p[i][j] != p[i][n - j - 1] || p[i][j] != p[n - i - 1][j];
        }
    }

    int ans = incorrect == 0;
    for(int i = 0; i < c - 1; ++i) {
        int d; cin >> d;
        for(int j = 0; j < d; ++j) {
            int r, c; cin >> r >> c;
            r--; c--;
            if(p[n - r - 1][c] == p[r][c] && p[r][c] == p[r][n - c - 1]) incorrect += 1;
            p[r][c] = (p[r][c] == '0') ? '1' : '0';
            if(p[n - r - 1][c] == p[r][c] && p[r][c] == p[r][n - c - 1]) incorrect -= 1;
        }
        ans += incorrect == 0;
    }

    cout << ans << endl;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:3:5: error: 'cin' was not declared in this scope
    3 |     cin >> c >> n;
      |     ^~~
a.cc:4:5: error: 'vector' was not declared in this scope
    4 |     vector<string> p(n);
      |     ^~~~~~
a.cc:4:12: error: 'string' was not declared in this scope
    4 |     vector<string> p(n);
      |            ^~~~~~
a.cc:4:20: error: 'p' was not declared in this scope
    4 |     vector<string> p(n);
      |                    ^
a.cc:28:5: error: 'cout' was not declared in this scope
   28 |     cout << ans << endl;
      |     ^~~~
a.cc:28:20: error: 'endl' was not declared in this scope
   28 |     cout << ans << endl;
      |                    ^~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
int n,m,k;
vector<int> club;
struct uf{
    vector<int> par,ran;
    uf(int N){
        init(N);
    }
    void init(int a){
        par.resize(a);
        ran.resize(a,0);
        for(int i=0;i<a;i++){
            par[i]=i;
        }
    }
    int find(int x){
        return x==par[x]?x:par[x]=find(par[x]);
    }
    bool same(int x,int y){
        return find(x)==find(y);
    }
    void unite(int x,int y){
        x=find(x);y=find(y);
        if(x!=y){
            if(ran[x]<ran[y]){
                par[x]=y;
            }else{
                par[y]=x;
                if(ran[x]==ran[y]){
                    ran[x]++;
                }
            }
        }
    }
    bool setclub(int nm,int cl){
        if(club[nm]!=-1&&club[nm]!=cl){
            return false;
        }else if(par[nm]==nm){
            club[nm]=cl;
            return true;
        }else{
            club[nm]=cl;
            if(setclub(par[nm],cl)){
                return true;
            }else{
                return false;
            }
        }
    }
};

int main(){
    cin>>n>>m>>k;
    club.resize(n,-1);
    uf u(n);
    int c=1;
    while(k--){
        int q,x,y;
        cin>>q>>x>>y;
        if(q==0){
            if(club[x]!=club[y]){
                cout<<c<<endl;
                return 0;
            }
            u.unite(x,y);
            if(club[x]==-1&&club[y]==-1){
                continue;
            }else if(club[y]==-1){
                if(!u.setclub(y,club[x])){
                    cout<<c<<endl;
                    return 0;
                }
            }else if(club[x]==—1){
                if(!u.setclub(x,club[y])){
                    cout<<c<<endl;
                    return 0;
                }
            }
        }else{
            if(club[x]!=-1&&club[x]!=y){
                cout<<c<<endl;
                return 0;
            }else if(club[x]==-1){
                if(!u.setclub(x,y)){
                    cout<<c<<endl;
                    return 0;
                }
            }
        }
        c++;
    }
    cout<<0<<endl;
    return 0;
}


Compiler output:
a.cc:74:31: error: extended character — is not valid in an identifier
   74 |             }else if(club[x]==—1){
      |                               ^
a.cc: In function 'int main()':
a.cc:74:31: error: '\U000020141' was not declared in this scope
   74 |             }else if(club[x]==—1){
      |                               ^~
Language: C++


#include<cstdio>
#include<iostream>
#include<algorithm>
#include<string>
#include<queue>
#include<vector>
#include<functional>
#include<cmath>
#include<map>
#include<stack>
#include<set>
#include<numeric>
#include<limits>
#include<iterator>

#define all(x) (x).begin(),(x).end()
#define rall(x) (x).rbegin(),(x).rend()

using namespace std;
typedef long long ll;
typedef pair<int, int> pi;
typedef pair<ll, ll> pl;
typedef pair<ll, char> plc;

int par[100010], rk[100010],club[100010];

void init(int n) {
	for (int i = 1; i <= n; i++) {
		par[i] = i;
		rk[i] = 0;
	}
}

int find(int x) {
	if (par[x] == x)return x;
	else
		return par[x] = find(par[x]);
}

void unite(int x, int y) {
	x = find(x);
	y = find(y);
	if (x == y)return;

	if (rk[x] < rk[y])
		par[x] = y;
	else {
		par[y] = x;
		if (rk[x] == rk[y])rk[x]++;
	}
}

bool same(int x, int y) {
	return find(x) == find(y);
}

int main()
{
	int n, m, k,ans=0;
	bool flag = true;
	cin >> n >> m >> k;

	for (int i = 0; i < n; i++)
		club[i] = -1;

	init(n);
	for (int i = 0; i < k; i++) {
		int a, b, c;
		cin >> a >> b >> c;
		if (!flag)continue;
		if (a == 1) {
			b = find(b);
			c = find(c);
			if ((club[b] != -1 && club[c] != -1) && club[b] != club[c]) {
				ans = i + 1;
				flag = false;
			}
		}
		else if (a == 2) {
			b = find(b);
			if (club[b] != -1 && club[b] != c) {
				ans = i + 1;
				flag = false;
			club[b] = c;
		}
	}
	cout << ans << endl;
	return	0; 
}

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

#include <iostream>
#include <vector>
#include <set>
#include <string>
#include <algorithm>
#include <map>
 
using namespace std;
 
struct Node
{
    int N1 = 0;
    int N2 = 0;
    Node *C[26] = {};

};
 
void add(Node *node, string str, int p)
{
    node->N2++;
    if (p < str.length())
    {
        if (node->C.count(str[p]-'a') == 0)
            node->C[str[p]-'a'] = new Node;
        add(node->C[str[p]-'a'], str, p+1);
    }
    else
    {
        node->N1++;
    }
}
 
string rev(string str)
{
    reverse(str.begin(), str.end());
    return str;
}
 
int count(Node *node, string str, int p)
{
    if (str[p] == '*')
        return node->N2;
    else if (p>=str.length())
        return node->N1;
    else if (str[p] == '?')
    {
        int ans = 0;
        for (int i=0; i<26; i++)
            if (node->C.count(i) > 0)
                ans += count(node->C[i], str, p+1);
        return ans;
    }
    else
    {
        if (node->C.count(str[p]-'a'))
            return count(node->C[str[p]-'a'], str, p+1);
        else
            return 0;
    }
}
 
int main()
{
    int N, M;
    cin>>N>>M;
    Node NL, NR;
    for (int i=0; i<N; i++)
    {
        string str;
        cin>>str;
        add(&NL, str, 0);
        add(&NR, rev(str), 0);
    }
 
    for (int i=0; i<M; i++)
    {
        string str;
        cin>>str;
 
        if (str[0]=='*')
            cout<<count(&NR, rev(str), 0)<<endl;
        else
            cout<<count(&NL, str, 0)<<endl;
    }
}

Compiler output:
a.cc: In function 'void add(Node*, std::string, int)':
a.cc:23:21: error: request for member 'count' in 'node->Node::C', which is of non-class type 'Node* [26]'
   23 |         if (node->C.count(str[p]-'a') == 0)
      |                     ^~~~~
a.cc: In function 'int count(Node*, std::string, int)':
a.cc:49:25: error: request for member 'count' in 'node->Node::C', which is of non-class type 'Node* [26]'
   49 |             if (node->C.count(i) > 0)
      |                         ^~~~~
a.cc:55:21: error: request for member 'count' in 'node->Node::C', which is of non-class type 'Node* [26]'
   55 |         if (node->C.count(str[p]-'a'))
      |                     ^~~~~
a.cc:60:1: warning: control reaches end of non-void function [-Wreturn-type]
   60 | }
      | ^
Language: C++

#include<cstdio>
#include<algorithm>
#include<vector>
#include<deque>
#include<stack>
#include<queue>
#include<string>
#include<iostream>
#include<tuple>
#include<utility>
#include<set>
#include<queue>
#include<iomanip>
#include<iterator>
//#include<chrono>
#include<random>
using namespace std;
typedef long long int llint;
const int big=1e9+100000;
const int mod=1e9+7;
const long double pai=3.141592653589793238462643;
#define mt make_tuple
#define mp make_pair
#define fir first
#define sec second
#define pub push_back
#define puf push_front
#define pob pop_back
#define pof pop_front
#define res resize
#define ins insert
#define era erase
template <class T,class U>void mineq(T& a,U b){if(a>b){a=b;}}
template <class T,class U>void maxeq(T& a,U b){if(a<b){a=b;}}
int main(void){
	int i,n,m;
	cin>>n>>m;
	vector<string>word(n);
	vector<string>drow(n);
	for(i=0;i<n;i++){cin>>word[i];drow[i]=word[i];reverse(drow[i].begin(),drow[i].end());}
	sort(word.begin(),word.end());
	sort(drow.begin(),drow.end());
	for(i=0;i<m;i++){
		string sla;cin>>sla;
		int ans=0,bas=-1,rec=0,kak=0;
		if(sla[0]=='*'){reverse(sla.begin(),sla.end());rec=1;}
		if(sla.back()=='*'){kak++;sla.pob();}
		for(int j=0;j<sla.size();j++){
			if(sla[j]=='?'){bas=j;break;}
		}
		string slap=sla;
		for(char c='a';c<='z';c++){
			if(bas!=-1){sla[bas]=c;slap[bas]=c;}
			slap.back()++;
			if(kak==1){
				if(rec==0){ans+=lower_bound(word.begin(),word.end(),slap)-lower_bound(word.begin(),word.end(),sla);}
				else{ans+=lower_bound(drow.begin(),drow.end(),slap)-lower_bound(drow.begin(),drow.end(),sla);}
			}else{
				auto it=lower_bound(word.begin(),word.end(),sla)
				if(it!=word.end()&&(*it)==sla){ans++;}
			}
			slap.back()--;
		}
		if(bas==-1){ans/=26;}
		cout<<ans<<endl;
	}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:60:33: error: expected ',' or ';' before 'if'
   60 |                                 if(it!=word.end()&&(*it)==sla){ans++;}
      |                                 ^~
Language: C++

#include<bits/stdc++.h>
using namespace std;
#define MAX_N 100001
int n;
double X[MAX_N],R[MAX_N];
 
bool check(double y){
  double l=-1e9;
  double r=1e9;
  for(int i=0;i<n;i++){
    double a=X[i]- sqrt(R[i]*R[i]-y*y);
    l=max(l,a);
    double b=X[i]+ sqrt(R[i]*R[i]-y*y);
    r=min(r,b);
  }
  return (l<r);
}
 
int main(){
  double left=0,right=1e9,mid;
   
  cin>>n;
  for(int i=0;i<n;i++){
    int x,r;
    cin>>x>>r;
    X[i]=x;
    R[i]=r;
 
    right=min(right,R[i]);
  }
 
  for(int i=0;i<100;i++){
    mid=(left+right)*0.5;
    if(check(mid))left=mid;
    else right=mid;
  }
 
  printf("%.10f\n",left);
   

Compiler output:
a.cc: In function 'int main()':
a.cc:38:26: error: expected '}' at end of input
   38 |   printf("%.10f\n",left);
      |                          ^
a.cc:19:11: note: to match this '{'
   19 | int main(){
      |           ^
Language: C++

using namespace std;
int main(){
  int a2,a4,a6,b2,b4,b6,c,q,i,j,z=0,k=1,m[1000][1000]={0};
  int a[1000]={0},b[1000]={0},w[1000]={0},e[5][2]={0};
  for(a2=a4=a6=b2=b4=b6=i=0;i<6;i++){
    cin>>q>>c;
    w[q]++;
    w[c]++;
    if(q>c)m[q][c]++;
    else m[c][q]++;
  }
  for(i=0;i<1000;i++){
      for(j=0;j<1000;j++){
        if(m[i][j]){a[j]+=m[i][j];b[i]+=m[i][j];
	  if(m[i][j]==4){ e[z][0]=i;e[z++][1]=j;e[z][0]=i;e[z++][1]=j;}
	  else if(m[i][j]==6){ e[z][0]=i;e[z++][1]=j;e[z][0]=i;e[z++][1]=j;e[z][0]=i;e[z++][1]=j;}
	  else{ e[z][0]=i;e[z++][1]=j;}
	}
       }
    }
  if(e[0][0]!=e[2][1]||e[1][0]!=e[2][0]||e[0][1]!=e[1][1])k=0;
  for(i=0;i<1000;i++){
    if(w[i]%4)k=0;
    if(a[i]==4)a4++;
    if(a[i]==2)a2++;
    if(a[i]==6)a6++;
    if(b[i]==4)b4++;
    if(b[i]==2)b2++;
    if(b[i]==6)b6++;
  }
  if(a4&&a2&&b4&&b2&&k||a6&&b4&&b2&&k||b6&&a4&&a2&&k||b6&&a6&&k)cout<<"yes"<<endl;
  else cout<<"no"<<endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:5: error: 'cin' was not declared in this scope
    6 |     cin>>q>>c;
      |     ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | using namespace std;
a.cc:31:65: error: 'cout' was not declared in this scope
   31 |   if(a4&&a2&&b4&&b2&&k||a6&&b4&&b2&&k||b6&&a4&&a2&&k||b6&&a6&&k)cout<<"yes"<<endl;
      |                                                                 ^~~~
a.cc:31:65: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:31:78: error: 'endl' was not declared in this scope
   31 |   if(a4&&a2&&b4&&b2&&k||a6&&b4&&b2&&k||b6&&a4&&a2&&k||b6&&a6&&k)cout<<"yes"<<endl;
      |                                                                              ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | using namespace std;
a.cc:32:8: error: 'cout' was not declared in this scope
   32 |   else cout<<"no"<<endl;
      |        ^~~~
a.cc:32:8: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:32:20: error: 'endl' was not declared in this scope
   32 |   else cout<<"no"<<endl;
      |                    ^~~~
a.cc:32:20: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main(){
  int c,b,i,j,z=0,k=1,m[1001][1001]={0},e[6][2]={0};
  for(i=0;i<6;i++){
    cin>>b>>c;
    if(b>c)m[b][c]++;
    else m[c][b]++;
  }
  for(i=0;i<1001;i++)for(j=0;j<1001;j++){
	  if(m[i][j]==6){e[z][0]=i;e[z++][1]=j;e[z][0]=i;e[z++][1]=j;e[z][0]=i;e[z++][1]=j;}
	  else if(m[i][j]==4){e[z][0]=i;e[z++][1]=j;e[z][0]=i;e[z++][1]=j;}
	  else{e[z][0]=i;e[z++][1]=j;}
	}
    }
  if(e[0][0]!=e[2][1]||e[1][0]!=e[2][0]||e[0][1]!=e[1][1]||o>3)k=0;
  if(k)cout<<"yes"<<endl;
  else cout<<"no"<<endl;
}

Compiler output:
a.cc:16:3: error: expected unqualified-id before 'if'
   16 |   if(e[0][0]!=e[2][1]||e[1][0]!=e[2][0]||e[0][1]!=e[1][1]||o>3)k=0;
      |   ^~
a.cc:17:3: error: expected unqualified-id before 'if'
   17 |   if(k)cout<<"yes"<<endl;
      |   ^~
a.cc:18:3: error: expected unqualified-id before 'else'
   18 |   else cout<<"no"<<endl;
      |   ^~~~
a.cc:19:1: error: expected declaration before '}' token
   19 | }
      | ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main(){
int c,q,i,j,z=0,k=1,o=0,m[1001][1001]={0};
int a[1001]={0},b[1001]={0},w[1001]={0},e[6][2]={0};
for(i=0;i<6;i++){
cin>>q>>c;
w[q]++;
w[c]++;
if(q>c)m[q][c]++;
else m[c][q]++;
}
for(i=0;i<1001;i++){
if(w[i])o++;
for(j=0;j<1001;j++){
if(m[i][j])for(o=0;o<m[i][j]/2){e[z][0]=i;e[z++][1]=j;}
}
}
if(e[0][0]!=e[2][1]||e[1][0]!=e[2][0]||e[0][1]!=e[1][1])k=0;
if(k)cout<<"yes"<<endl;
else cout<<"no"<<endl;
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:16:31: error: expected ';' before ')' token
   16 | if(m[i][j])for(o=0;o<m[i][j]/2){e[z][0]=i;e[z++][1]=j;}
      |                               ^
      |                               ;
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main(){
  int c,q,i,j,z=0,k=1,m[1001][1001]={0},e[6][2]={0};
  for(i=0;i<6;i++){
    cin>>q>>c;
    if(q>c)m[q][c]++;
    else m[c][q]++;
  }
  for(i=0;i<1001;i++)for(j=0;j<1001;j++){
    if(m[i][j]&&m[i][j]%2==0)for(c=0;c<m[i][j]/2;c++){e[z][0]=i;e[z++][1]=j;}
    }
  }
  if(e[0][0]!=e[2][1]||e[1][0]!=e[2][0]||e[0][1]!=e[1][1])k=0;
  if(k)cout<<"yes"<<endl;
  else cout<<"no"<<endl;
}

Compiler output:
a.cc:14:3: error: expected unqualified-id before 'if'
   14 |   if(e[0][0]!=e[2][1]||e[1][0]!=e[2][0]||e[0][1]!=e[1][1])k=0;
      |   ^~
a.cc:15:3: error: expected unqualified-id before 'if'
   15 |   if(k)cout<<"yes"<<endl;
      |   ^~
a.cc:16:3: error: expected unqualified-id before 'else'
   16 |   else cout<<"no"<<endl;
      |   ^~~~
a.cc:17:1: error: expected declaration before '}' token
   17 | }
      | ^
Language: C++

#include <vector>
#include <algorithm>
#include <functional>
using namespace std;
int main(){
	int n,i;
	vector<pair<int,int> >v(6);
	for(i=0;i<6;i++){
		scanf("%d%d",&v[i].first,&v[i].second);
		if(v[i].first>v[i].second)swap(v[i].first,v[i].second);
	}
	sort(v.begin(),v.end());
	puts(v[0]==v[1] && v[2]==v[3] && v[4]==v[5] ? "yes" : "no");
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:17: error: 'scanf' was not declared in this scope
    9 |                 scanf("%d%d",&v[i].first,&v[i].second);
      |                 ^~~~~
a.cc:13:9: error: 'puts' was not declared in this scope
   13 |         puts(v[0]==v[1] && v[2]==v[3] && v[4]==v[5] ? "yes" : "no");
      |         ^~~~
Language: C++

#include "stdafx.h"
#include<iostream>
#include<map>
#include<vector>
#include<algorithm>
using namespace std;
typedef pair<int, int> P;

int main() {
	vector<P>v;
	for (int i = 0;i < 6;i++) {
		int a, b;
		cin >> a >> b;
		v.push_back(make_pair(max(a, b), min(a, b)));
	}
	sort(v.begin(), v.end());

	if (v[0] == v[1] && v[2] == v[3] && v[4] == v[5]) {
		vector<int>num;
		for (int i = 0;i < 3;i++) {
			num.push_back(v[i * 2].first);
			num.push_back(v[i * 2].second);
		}
		sort(num.begin(), num.end());
		if (num[0] == num[1] && num[2] == num[3] && num[4] == num[5])cout << "yes" << endl;
		else cout << "no" << endl;
	}
	else cout << "no" << endl;
	return 0;
}

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

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

int main(void){
	std::map<pair<int,int>,bool > m;
	int a,b;
	for(int i=0;i<6;i++){
		cin>>a>>b;
		if(s[make_pair(a,b)]){
			cout<<"no"<<endl;
			return 0;
		}
		s[make_pair(a,b)]=true;
	}
	if(m.size()==3)cout<<"yes"<<endl;
	else cout<<"no"<<endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:20: error: 's' was not declared in this scope
   11 |                 if(s[make_pair(a,b)]){
      |                    ^
a.cc:15:17: error: 's' was not declared in this scope
   15 |                 s[make_pair(a,b)]=true;
      |                 ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main() {
	pair<int,int> a[6];for(int i=0;i<6;i++){
		cin>>a[i].first>>a[i].second;
		if(a[i].first>a[i].second){
			int tmp=a[i].first;
			a[i].first=a[i].second;
			a[i].second=tmp;
		}
	}
	sort(a,a+6);
	set<int>s;
	if(a[0]==a[1]){
		s.insert(a[0].sirst);
		s.insert(a[1].second);
		if(a[2]==a[3]){
			s.insert(a[2].sirst);
			s.insert(a[3].second);
			if(a[4]==a[5]){
				s.insert(a[4].sirst);
				s.insert(a[5].second);
				if(s.size()<=3)out<<"yes\n";
				else cout<<"no\n";
			}cout<<"no\n";
		}cout<<"no\n";
	}cout<<"no\n";
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:15:31: error: 'struct std::pair<int, int>' has no member named 'sirst'; did you mean 'first'?
   15 |                 s.insert(a[0].sirst);
      |                               ^~~~~
      |                               first
a.cc:18:39: error: 'struct std::pair<int, int>' has no member named 'sirst'; did you mean 'first'?
   18 |                         s.insert(a[2].sirst);
      |                                       ^~~~~
      |                                       first
a.cc:21:47: error: 'struct std::pair<int, int>' has no member named 'sirst'; did you mean 'first'?
   21 |                                 s.insert(a[4].sirst);
      |                                               ^~~~~
      |                                               first
a.cc:23:48: error: 'out' was not declared in this scope
   23 |                                 if(s.size()<=3)out<<"yes\n";
      |                                                ^~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main() {
	pair<int,int> a[6];for(int i=0;i<6;i++){
		cin>>a[i].first>>a[i].second;
		if(a[i].first>a[i].second){
			int tmp=a[i].first;
			a[i].first=a[i].second;
			a[i].second=tmp;
		}
	}
	sort(a,a+6);
	set<int>s;
	if(a[0]==a[1]){
		s.insert(a[0].first);
		s.insert(a[1].second);
		if(a[2]==a[3]){
			s.insert(a[2].first);
			s.insert(a[3].second);
			if(a[4]==a[5]){
				s.insert(a[4].first);
				s.insert(a[5].second);
				if(s.size()<=3)out<<"yes\n";
				else cout<<"no\n";
			}cout<<"no\n";
		}cout<<"no\n";
	}cout<<"no\n";
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:23:48: error: 'out' was not declared in this scope
   23 |                                 if(s.size()<=3)out<<"yes\n";
      |                                                ^~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main() {
	pair<int,int> a[6];for(int i=0;i<6;i++){
		cin>>a[i].first>>a[i].second;
		if(a[i].first>a[i].second){
			int tmp=a[i].first;
			a[i].first=a[i].second;
			a[i].second=tmp;
		}
	}
	sort(a,a+6);
	set<int>s;
	if(a[0]==a[1]){
		s.insert(a[0].first);
		s.insert(a[1].second);
		if(a[2]==a[3]){
			s.insert(a[2].first);
			s.insert(a[3].second);
			if(a[4]==a[5]){
				s.insert(a[4].first);
				s.insert(a[5].second);
				if(s.size()==1)cout<<"yes\n";
				else if(s.size()==2){
					if(s[0]==s[2]&&s[2]==s[4])cout<<"no\n";
					else cout<<"yes\n";
				}
				else if(s.size()==3){
					for(int i=0;i<6;i++){
						if(s[i].first==s[i].second){
							cout<<"no\n";
							return 0;
						}
					}
					cout<<"yes\n";
				}
				else cout<<"no\n";
			}else cout<<"no\n";
		}else cout<<"no\n";
	}else cout<<"no\n";
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:25:45: error: no match for 'operator[]' (operand types are 'std::set<int>' and 'int')
   25 |                                         if(s[0]==s[2]&&s[2]==s[4])cout<<"no\n";
      |                                             ^
a.cc:25:51: error: no match for 'operator[]' (operand types are 'std::set<int>' and 'int')
   25 |                                         if(s[0]==s[2]&&s[2]==s[4])cout<<"no\n";
      |                                                   ^
a.cc:25:57: error: no match for 'operator[]' (operand types are 'std::set<int>' and 'int')
   25 |                                         if(s[0]==s[2]&&s[2]==s[4])cout<<"no\n";
      |                                                         ^
a.cc:25:63: error: no match for 'operator[]' (operand types are 'std::set<int>' and 'int')
   25 |                                         if(s[0]==s[2]&&s[2]==s[4])cout<<"no\n";
      |                                                               ^
a.cc:30:53: error: no match for 'operator[]' (operand types are 'std::set<int>' and 'int')
   30 |                                                 if(s[i].first==s[i].second){
      |                                                     ^
a.cc:30:65: error: no match for 'operator[]' (operand types are 'std::set<int>' and 'int')
   30 |                                                 if(s[i].first==s[i].second){
      |                                                                 ^
Language: C++

#include<iostream>
#include<algorithm>
#include<vector>
using namespace std;
class plane{
public:
	int w,h;
};

bool operator==(plane &a,plane &b){
	if(a.h>a.w){
		swap(a.h,a.w);
	}
	if(b.h>b.w){
		swap(b.h,b.w);
	}
	return a.h==b.h&&a.w==b.w;
}

bool func(vector<plane> &);
int main(){
	vector<plane> line(6);
	for(int i=0;i<6;++i){
		cin>>line[i].h>>line[i].w;
	}
	cout<<(func(line)?"yes":"no")<<endl;
	return 0;
}

bool func(vector<plane> &line){
	int pair=-1;
	for(int i=1;i<6;++i){
		if(line[i]==line[0]){
			pair=i;
			breka;
		}
	}
	if(pair==-1){
		return false;
	}
	swap(line[1],line[pair]);
	for(int i=3;i<6;++i){
		swap(line[i],line[3]);
		if(line[2]==line[3]&&line[4]==line[5]){
			return true;
		}
		swap(line[i],line[3]);
	}
	return false;
}

Compiler output:
a.cc: In function 'bool func(std::vector<plane>&)':
a.cc:35:25: error: 'breka' was not declared in this scope
   35 |                         breka;
      |                         ^~~~~
Language: C++

#include <stdio.h>
#include <vector>
using namespace std;
#define PB push_back
struct b{
    int h;
    int w;
    bool operator ==(const b &a){return (h==a.h&&w==a.w)||(h==a.w&&w==a.h);}
    void in(){
        scanf("%d%d",&h,&w);
        return ;
    }
    void reset(){
        h=w=0;
        return ;
    }
    bool check(){return h!=0&&w!=0;}
    void operator =(const b &a){
        h=a.h;
        w=a.w;
        return ;
    }
};
void swap(const b &a,const b &r){
    b temp=a;
    a=r;
    r=temp;
    return ;
}
int main(){
    vector<b> v;
    b a[6];
    bool f;
    for(int i=0;i<6;i++)a[i].in();
    for(int i=0;i<6;i++)if(a[i].check()){
        f=false;
        for(int j=i+1;j<6;j++)if(a[j]==a[i]){
            f=true;
            v.PB(a[i]);
            a[i].reset();
            a[j].reset();
            break;
        }
        if(!f){
            printf("no\n");
            return 0;
        }
    }
    for(int i=0;i<2;i++){
    if(v[0].h==v[1].h&&v[1].w==v[2].h&&v[2].w==v[0].w){
        printf("yes\n");
        return 0;
    }
    else if(v[0].h==v[1].h&&v[1].w==v[2].w&&v[2].h==v[0].w){
        printf("yes\n");
        return 0;
    }
    else if(v[0].h==v[1].w&&v[1].h==v[2].h&&v[2].w==v[0].w){
        printf("yes\n");
        return 0;
    }
    else if(v[0].h==v[1].w&&v[1].h==v[2].w&&v[2].h==v[0].w){
        printf("yes\n");
        return 0;
    }
        swap(v[1],v[2]);
    }
    printf("no\n");
}


Compiler output:
a.cc: In function 'void swap(const b&, const b&)':
a.cc:26:7: error: passing 'const b' as 'this' argument discards qualifiers [-fpermissive]
   26 |     a=r;
      |       ^
a.cc:18:10: note:   in call to 'void b::operator=(const b&)'
   18 |     void operator =(const b &a){
      |          ^~~~~~~~
a.cc:27:7: error: passing 'const b' as 'this' argument discards qualifiers [-fpermissive]
   27 |     r=temp;
      |       ^~~~
a.cc:18:10: note:   in call to 'void b::operator=(const b&)'
   18 |     void operator =(const b &a){
      |          ^~~~~~~~
Language: C++


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

typedef long long ll;
typedef pair<int, int> P;

#define pb push_back
#define rep(i, a, n) for(int i = (a); i < (n); i++)
#define dep(i, a, n) for(int i = (a); i >= (n); i--)
#define mod 1e9+7

__attribute__((constructor))
void initial() {
  cin.tie(0);
  ios::sync_with_stdio(false);
}

int main() {
  int n;
  cin >> n;
  int a[200005] = {};
  rep(i, 0, n) {
    int b, c;
    cin >> b >> c;
    a[b + c]++;
  }
  rep(i, 0, 200005) {
    if(a[b + c] > 2) {
      a[b + c + 1] += a[b + c] / 2;
      a[b + c] = 1;
    }
  }
  rep(i, 0, 200005) {
    if(a[i]) cout << i << " " << 0 << endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:29:10: error: 'b' was not declared in this scope
   29 |     if(a[b + c] > 2) {
      |          ^
a.cc:29:14: error: 'c' was not declared in this scope
   29 |     if(a[b + c] > 2) {
      |              ^
Language: C++

#include <iostream>
#include <cmath>
#include <vector>

using namespace std;

int main() {
    int n, a, b;
    vector<int> v, t;
    
    cin >> n;
    for (int i = 0; i < n; ++i) {
        cin >> a >> b;
        v.push_back(a + b);
    }
    
    sort(v.begin(), v.end());
    while (1) {
        int cnt = 1;
        bool check = true;
        for (int i = 0; i < v.size(); ++i) {
            if (i != v.size() - 1 && v[i] == v[i + 1]) {
                cnt++;
            }
            else {
                if (cnt >= 2)
                    check = false;
                
                for (int j = 0; j < cnt / 2; ++j) {
                    t.push_back(v[i] + 1);
                }
                if (cnt % 2 == 1)
                    t.push_back(v[i]);
                
                cnt = 1;
            }
        }
        
        if (check)
            break;
        
        v = t;
    }
    
    for (auto elem: v) {
        cout << elem << " " << 0 << endl;
    }
    
    return 0;
}

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

#include <bits/stdc++.h>
using namespace std;
int main(){
  long long n,i,j,c,k,m,l;
  cin>>n;
  long long a[n];
  for(i=l=0;i<n;i++)cin>>a[i];
  for(i=0;i<n;i++){
    for(j=i,c=m=k=0;j<n;j++){
      c+=a[j];
      if(c==0)k=j-i+1;
      m=max(k,m);
    }
    l=max(m,l);
  }
  for(i=n-1;i>=0;i--){
    for(j=i,c=m=k=0;j>=0;j--){
      c+=a[j];
      if(c==0)k=i-j;
      m=max(k,m);
    }
    l=max(m,l);
  }
  else cout<<l<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:24:3: error: 'else' without a previous 'if'
   24 |   else cout<<l<<endl;
      |   ^~~~
Language: C++

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

typedef long long ll;
typedef pair<int, int> P;

#define pb push_back
#define rep(i, a, n) for(int i = (a); i < (n); i++)
#define dep(i, a, n) for(int i = (a); i >= (n); i--)
#define mod 1e9+7

__attribute__((constructor))
void initial() {
  cin.tie(0);
  ios::sync_with_stdio(false);
}

int main() {
  int n, a[100], b, f[100] = {};
  cin >> n;
  if(n == 1) {
    cout << "no" << endl;
    return 0;
  }
  rep(i, 0, n) cin >> a[i];
  stack<int> s;
  stack<int> li;
  map<int, int> mp;
  s.push(a[0]);
  int r = false;
  rep(i, 1, n) {
    if(s.size() > 0 && s.top() == a[i]) mp[a[i]] = i, r = true;
    else {
      if(r) {
        s.pop, r = false, i--;
        continue;
      }
      if(!mp[a[i]]) s.push(a[i]);
      else if(s.size() == 0) continue;
      else s.push(a[i]);
    }
  }
  if(r) s.pop();
  if(s.size() > 0) cout << "no" << endl;
  else cout << "yes" << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:35:11: error: invalid use of non-static member function 'void std::stack<_Tp, _Sequence>::pop() [with _Tp = int; _Sequence = std::deque<int, std::allocator<int> >]'
   35 |         s.pop, r = false, i--;
      |         ~~^~~
In file included from /usr/include/c++/14/stack:63,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:160,
                 from a.cc:1:
/usr/include/c++/14/bits/stl_stack.h:291:7: note: declared here
  291 |       pop()
      |       ^~~
Language: Java

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.UncheckedIOException;
import java.util.StringTokenizer;

public class D58 {
	public static void main(String[] args) {
		SC sc=new SC(System.in);
		int a=sc.nextInt();
		pl(a*32);
	}
	static class SC {
		private BufferedReader reader = null;
		private StringTokenizer tokenizer = null;
		public SC(InputStream in) {
			reader = new BufferedReader(new InputStreamReader(in));
		}
		public String next() {
			if (tokenizer == null || !tokenizer.hasMoreTokens()) {
				try {
					tokenizer = new StringTokenizer(reader.readLine());
				} catch (IOException e) {
					throw new UncheckedIOException(e);
				}
			}
			return tokenizer.nextToken();
		}
		public int nextInt() {
			return Integer.parseInt(next());
		}
		public long nextLong() {
			return Long.parseLong(next());
		}
		public double nextDouble() {
			return Double.parseDouble(next());
		}
		public String nextLine() {
			try {
				return reader.readLine();
			} catch (IOException e) {
				throw new UncheckedIOException(e);
			}
		}
	}
	public static void pl(Object o) {
		System.out.println(o);
	}
	public static void pl() {
		System.out.println();
	}
	public static void p(Object o) {
		System.out.print(o);
	}
}



Compiler output:
Main.java:8: error: class D58 is public, should be declared in a file named D58.java
public class D58 {
       ^
1 error
Language: Java

import java.*;

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

  int W=sc.nextInt();

  System.out.println(W*4);
 }
}

Compiler output:
Main.java:1: error: package java does not exist
import java.*;
^
Main.java:5: error: cannot find symbol
  Scanner sc = new Scanner(System.in);
  ^
  symbol:   class Scanner
  location: class Main
Main.java:5: error: cannot find symbol
  Scanner sc = new Scanner(System.in);
                   ^
  symbol:   class Scanner
  location: class Main
3 errors
Language: Java

\import java.util.*;

public class Main {

	public static void main(String[] args) {
		Scanner in=new Scanner(System.in);
		System.out.println(32*in.nextInt());
	}

}



Compiler output:
Main.java:1: error: illegal character: '\'
\import java.util.*;
^
Main.java:1: error: class, interface, enum, or record expected
\import java.util.*;
        ^
2 errors
Language: Java

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

int x = stdIn.nextInt();

system.out.println(x*32);

}
}


Compiler output:
Main.java:1: error: class ArithInt is public, should be declared in a file named ArithInt.java
public class ArithInt {
       ^
Main.java:4: error: cannot find symbol
		Scanner stdIn = new Scanner(System.in);
		^
  symbol:   class Scanner
  location: class ArithInt
Main.java:4: error: cannot find symbol
		Scanner stdIn = new Scanner(System.in);
		                    ^
  symbol:   class Scanner
  location: class ArithInt
Main.java:8: error: package system does not exist
system.out.println(x*32);
      ^
4 errors
Language: Java

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

int x = stdIn.nextInt();

system.out.println(+ x*32);

}
}


Compiler output:
Main.java:1: error: class ArithInt is public, should be declared in a file named ArithInt.java
public class ArithInt {
       ^
Main.java:4: error: cannot find symbol
		Scanner stdIn = new Scanner(System.in);
		^
  symbol:   class Scanner
  location: class ArithInt
Main.java:4: error: cannot find symbol
		Scanner stdIn = new Scanner(System.in);
		                    ^
  symbol:   class Scanner
  location: class ArithInt
Main.java:8: error: package system does not exist
system.out.println(+ x*32);
      ^
4 errors
Language: Java

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

int x = stdIn.nextInt();

system.out.println(+ (x*32));

}
}


Compiler output:
Main.java:1: error: class ArithInt is public, should be declared in a file named ArithInt.java
public class ArithInt {
       ^
Main.java:4: error: cannot find symbol
		Scanner stdIn = new Scanner(System.in);
		^
  symbol:   class Scanner
  location: class ArithInt
Main.java:4: error: cannot find symbol
		Scanner stdIn = new Scanner(System.in);
		                    ^
  symbol:   class Scanner
  location: class ArithInt
Main.java:8: error: package system does not exist
system.out.println(+ (x*32));
      ^
4 errors
Language: Java

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

int x = stdIn.nextInt();

System.out.println(x*32);

}
}


Compiler output:
Main.java:1: error: class ArithInt is public, should be declared in a file named ArithInt.java
public class ArithInt {
       ^
Main.java:4: error: cannot find symbol
		Scanner stdIn = new Scanner(System.in);
		^
  symbol:   class Scanner
  location: class ArithInt
Main.java:4: error: cannot find symbol
		Scanner stdIn = new Scanner(System.in);
		                    ^
  symbol:   class Scanner
  location: class ArithInt
3 errors
Language: Java

import java.util.Scanner;

public class ArithInt {
	
	public static void main(String [] args) {
		Scanner stdIn = new Scanner(System.in);
		
				
				int x = stdIn.nextInt();    
				
				
				System.out.println(x*32);
	}

}


Compiler output:
Main.java:3: error: class ArithInt is public, should be declared in a file named ArithInt.java
public class ArithInt {
       ^
1 error
Language: Java

import java.util.Scanner;

public class Main{

public static void main(String[] args){

Scanner stdIn = new Scanner(System.in);

int a = stdIn.nextInt();

int x = stdIn * 32;

System.out.println(x);

}
}


Compiler output:
Main.java:11: error: bad operand types for binary operator '*'
int x = stdIn * 32;
              ^
  first type:  Scanner
  second type: int
1 error
Language: C

#include <stdio.h>
int main(void)
{
	int W;
	scanf("%d",&W);
	printf("%d\n",&W*32);
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:6:25: error: invalid operands to binary * (have 'int *' and 'int')
    6 |         printf("%d\n",&W*32);
      |                       ~~^
      |                       |
      |                       int *
Language: C

#include<algorithm>
#include <iostream>
#include <math.h>
#include <cstdio>
#include <string.h>
using namespace std;
int main(void){
	int w;
	cin>>w;
	cout<<w*32<<endl;
	return 0;
}



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

#include<iostream>
using namespace std;

int main(){
  int W; cin >> W; cout << W*32 << endl;
  return 0
}





Compiler output:
a.cc: In function 'int main()':
a.cc:6:11: error: expected ';' before '}' token
    6 |   return 0
      |           ^
      |           ;
    7 | }
      | ~
Language: C++

#include  <iostream>
using namespace std;
int main(){
int w;
cin>>w
cout<<w*4<<endl:

}




Compiler output:
a.cc: In function 'int main()':
a.cc:5:7: error: expected ';' before 'cout'
    5 | cin>>w
      |       ^
      |       ;
    6 | cout<<w*4<<endl:
      | ~~~~
Language: C++

#include  <iostream>
using namespace std;
int main(){
int w;
cin>>w:
cout<<w*4<<endl:

}




Compiler output:
a.cc: In function 'int main()':
a.cc:5:7: error: found ':' in nested-name-specifier, expected '::'
    5 | cin>>w:
      |       ^
      |       ::
a.cc:5:6: error: 'w' is not a class, namespace, or enumeration
    5 | cin>>w:
      |      ^
Language: C++

#include<bits/stdc++>
using namespace std;
int main(){
  int w;
  cin >> w;
  cout << w*4;
  return 0;

}



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

#include <bits/stdc++.h>

using space std;

int main(){
    int W;
    cin>>W;
    
    int x = W / 32;
    
    cout<<x<<endl;
    return 0;
}


Compiler output:
a.cc:3:7: error: expected nested-name-specifier before 'space'
    3 | using space std;
      |       ^~~~~
a.cc: In function 'int main()':
a.cc:7:5: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    7 |     cin>>W;
      |     ^~~
      |     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:11:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   11 |     cout<<x<<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:11:14: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   11 |     cout<<x<<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 <bit/stdc++.h>

using namespace std;

int main(){

int W;
cin>>W;

int x = W * 32;

cout<<x<<endl;

return 0;
}


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

#include <bit/stdc++.h>

using namespace std;

int main(){

int W;
cin>>W;

cout<<x = W * 32<<endl;

return 0;
}


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

#include <bit/stdc++.h>

using namespace std;

int main(){

int W;
cin>>W;

cout<<W * 32<<endl;

return 0;
}


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