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

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

typedef long long ll;



int main(){
    int a,b,n;
    ;
    cin>>n;
    cout<<'\n';
    cin>>a;
    cout<<'\n';
    cin>>b;
    cout<<'\n';
    
    if(n<a||n<b)cout<<"error";
    if(a>b)cout<<"error";
   
   if(n==1)ver=2;
   if(n==2&&a==1)ver=4;
   if(n==2&&a==2&&b==2)ver=2;
   if(n==3&&a==1)ver=8;
   if(n==3&&a==2)ver=4;
   if(n==3&&a==3&&b==3)ver=2;
   
　std::string (int)str[n];
　for(int i=0;i<n;i++){
　    str[i]=0;
　}
　
　
 
   
return 0;
}

Compiler output:
a.cc:31:1: error: extended character 　 is not valid in an identifier
   31 | 　std::string (int)str[n];
      | ^
a.cc:32:1: error: extended character 　 is not valid in an identifier
   32 | 　for(int i=0;i<n;i++){
      | ^
a.cc:33:1: error: extended character 　 is not valid in an identifier
   33 | 　    str[i]=0;
      | ^
a.cc:34:1: error: extended character 　 is not valid in an identifier
   34 | 　}
      | ^
a.cc:35:1: error: extended character 　 is not valid in an identifier
   35 | 　
      | ^
a.cc:36:1: error: extended character 　 is not valid in an identifier
   36 | 　
      | ^
a.cc: In function 'int main()':
a.cc:24:12: error: 'ver' was not declared in this scope
   24 |    if(n==1)ver=2;
      |            ^~~
a.cc:25:18: error: 'ver' was not declared in this scope
   25 |    if(n==2&&a==1)ver=4;
      |                  ^~~
a.cc:26:24: error: 'ver' was not declared in this scope
   26 |    if(n==2&&a==2&&b==2)ver=2;
      |                        ^~~
a.cc:27:18: error: 'ver' was not declared in this scope
   27 |    if(n==3&&a==1)ver=8;
      |                  ^~~
a.cc:28:18: error: 'ver' was not declared in this scope
   28 |    if(n==3&&a==2)ver=4;
      |                  ^~~
a.cc:29:24: error: 'ver' was not declared in this scope
   29 |    if(n==3&&a==3&&b==3)ver=2;
      |                        ^~~
a.cc:31:1: error: '\U00003000std' has not been declared
   31 | 　std::string (int)str[n];
      | ^~~~~
a.cc:31:16: error: expected primary-expression before 'int'
   31 | 　std::string (int)str[n];
      |                ^~~
a.cc:32:7: error: expected primary-expression before 'int'
   32 | 　for(int i=0;i<n;i++){
      |       ^~~
a.cc:32:15: error: 'i' was not declared in this scope
   32 | 　for(int i=0;i<n;i++){
      |               ^
a.cc:35:1: error: '\U00003000' was not declared in this scope
   35 | 　
      | ^~
Language: C++

#include<bits/stdc++.h>
#define ll long long
#define ljc 1000000007
using namespace std;
#define gc getchar
inline ll read(){
    register ll x=0,f=1;char ch=gc();
    while (!isdigit(ch)){if (ch=='-') f=-1;ch=gc();}
    while (isdigit(ch)){x=(x<<3)+(x<<1)+ch-'0';ch=gc();}
    return (f==1)?x:-x;
}
ll n,A,fac[10000001],inv[10000001],_inv[10000001];
inline ll getC(ll n,ll m){
    if (n<m) return 0;
    return fac[n]*_inv[m]%ljc*_inv[n-m]%ljc;
}
inline ll query(ll i1,ll i2){
	if (i1<=0||i2<=0||i1>i2) return 0;
	return fac[i2]*_inv[i1-1]%ljc;
}
inline solve(ll i1,ll i2){
	if (n-A<i1) return 0; 
	return query(n-A-i1+1,n-A)*query(i1+i2,i2-n-A+1)%ljc*query(n-A+i1+i2+2,n)%ljc;
}
ll dp[5001][5001],sum[5001][5001];
inline void add(ll &a,ll b){a+=b;a%=ljc;}
signed main(){
    fac[0]=inv[0]=inv[1]=_inv[0]=1;
    for (ll i=1;i<=10000000;i++) fac[i]=fac[i-1]*i%ljc;
    for (ll i=2;i<=10000000;i++) inv[i]=(ljc-inv[ljc%i]*(ljc/i)%ljc)%ljc;
    for (ll i=1;i<=10000000;i++) _inv[i]=_inv[i-1]*inv[i]%ljc;
    n=read(),A=read(); 
//    for (int i1=0;i1<=A;i1++){
//    	for (int i2=0;i2+i1<=A;i2++){
//    		if (i1==0&&i2==0){
//    			dp[0][0]=1;continue;
//			}
//    		if (i2) add(dp[i1][i2],dp[i1][i2-1]);
//    		for (int j=1;j<i1;j++) add(dp[i1][i2],dp[i1-j-1][i2]*getC(i1+i2-1,j)%ljc);
//		}
//	}
//	ll _=0;
//	for (int i=2;i<=A+1;i++){
//		for (int i1=0;i1<i;i1++){
//			_=(_+solve(i1,i-1-i1)*dp[i1][i-1-i1]%ljc)%ljc;				
//		}
//	}
	ll _=0;
	for (int T=2;T<=A+1;T++) {
		int x=T-1,y=max(A-T,0ll),z=n-A;
		for (int i=0;i<T;i++){
			if (i&1) add(_,ljc-getC(x,i)*(x-i)%ljc*inv[x-i+z]%ljc*fac[x-i+y+z]%ljc);
			else add(_,getC(x,i)*(ll)(x-i)%ljc*inv[x-i+z]%ljc*fac[x-i+y+z]%ljc);
		} 
	}
	cout<<_;
}

Compiler output:
a.cc: In function 'long long int read()':
a.cc:7:17: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister]
    7 |     register ll x=0,f=1;char ch=gc();
      |                 ^
a.cc:7:21: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister]
    7 |     register ll x=0,f=1;char ch=gc();
      |                     ^
a.cc: At global scope:
a.cc:21:8: error: ISO C++ forbids declaration of 'solve' with no type [-fpermissive]
   21 | inline solve(ll i1,ll i2){
      |        ^~~~~
Language: C++

#include <cstdio>
#include <iostream>
#include <vector>
#define debug(...) fprintf(stderr,__VA_ARGS__)
using namespace std;
inline char gc() {
//	return getchar();
	static char buf[100000],*l=buf,*r=buf;
	return l==r&&(r=(l=buf)+fread(buf,1,100000,stdin),l==r)?EOF:*l++;
}
template<class T> void rd(T &x) {
	x=0; int f=1,ch=gc();
	while(ch<'0'||ch>'9'){if(ch=='-')f=-1;ch=gc();}
	while(ch>='0'&&ch<='9'){x=x*10-'0'+ch;ch=gc();}
	x*=f;
}
template<class T> inline bool Cmax(T &x,T y) {return x<y?x=y,1:0;} 
typedef long long ll;
int T,A,X,B,Y,C,D;
int gcd(int a,int b) {return b==0?a:gcd(b,a%b);}
int exgcd(int a,int b,int &x,int &y) {
	if(b==0) {x=1,y=0; return a;}
	else exgcd(b,a%b,y,x),y-=a/b*x;
}
inline int inver(int a,int mod) {
	int x,y,exgcd(a,mod,x,y);
	if(x<0) x+=mod;
	return x;
}
inline ll lowdiv(ll a,ll b) {return a/b-(a%b&&(a^b)<0);}
inline int gety(int x) {return x==0?C:(C-(ll)x*D%C)%C;}
int main() {
	rd(T);
	for(int kase=1;kase<=T;++kase) {
		rd(A),rd(X),rd(B),rd(Y),rd(C);
		{
			int d=gcd(A,B);
			A/=d,B/=d,C/=gcd(d,C);
			for(int _=0;_<2;++_) {
				d=gcd(A,C);
				C/=d,A/=d;
				int t=gcd(B,d);
				B/=t,Y/=d/t;
				swap(A,B),swap(X,Y);
			}
		}
		if(C==1) {printf("%d\n",X+Y); continue;}
		D=(ll)A*inver(B,C)%C;
		vector<int> pos,cnt;
		{
			int W=C,H=D,now=0,r=inver(D,C);
			while(W) {
				int d=W/H;
				pos.push_back((ll)now*r%C),cnt.push_back(d); 
				now+=d*H;
				W%=H; if(W==0) break;
				H%=W; if(H==0) H=W;
			}
			pos.push_back(C);
		} 
		int an=0;
		for(int i=0;i<cnt.size();++i) {
			int xl=pos[i],xr=pos[i+1],yl=gety(xl),yr=gety(xr);
			int dx=(xr-xl)/cnt[i],dy=(yl-yr)/cnt[i];
			int l=0,r=X+Y,re=-1;
			while(l<=r) {
				int mid=(l+r)>>1;
				ll p=lowdiv(X-(ll)xl*mid,dx),q=lowdiv(Y-(ll)yr*mid,dy);
				if(p>=0&&q>=0&&p+q>=(ll)cnt[i]*mid) re=mid,l=mid+1;
				else r=mid-1;
			}
			Cmax(an,re);
		}
		printf("%d\n",an);
	}
	return 0;
} 

Compiler output:
a.cc: In function 'int inver(int, int)':
a.cc:26:32: error: expression list treated as compound expression in initializer [-fpermissive]
   26 |         int x,y,exgcd(a,mod,x,y);
      |                                ^
a.cc: In function 'int exgcd(int, int, int&, int&)':
a.cc:23:32: warning: control reaches end of non-void function [-Wreturn-type]
   23 |         else exgcd(b,a%b,y,x),y-=a/b*x;
      |                               ~^~~~~~~
Language: C++

#include <cstdio>
#include <iostream>
#include <vector>
#define debug(...) fprintf(stderr,__VA_ARGS__)
using namespace std;
#define int ll
inline char gc() {
//	return getchar();
	static char buf[100000],*l=buf,*r=buf;
	return l==r&&(r=(l=buf)+fread(buf,1,100000,stdin),l==r)?EOF:*l++;
}
template<class T> void rd(T &x) {
	x=0; int f=1,ch=gc();
	while(ch<'0'||ch>'9'){if(ch=='-')f=-1;ch=gc();}
	while(ch>='0'&&ch<='9'){x=x*10-'0'+ch;ch=gc();}
	x*=f;
}
template<class T> inline bool Cmax(T &x,T y) {return x<y?x=y,1:0;} 
typedef long long ll;
int T,A,X,B,Y,C,D;
vector<int> pos,cnt;
int gcd(int a,int b) {return b==0?a:gcd(b,a%b);}
int exgcd(int a,int b,int &x,int &y) {
	if(b==0) {x=1,y=0; return a;}
	int d=exgcd(b,a%b,y,x);
	y-=a/b*x;
	return d;
}
inline int inver(int a,int mod) {
	int x,y,d=exgcd(a,mod,x,y);
	if(x<0) x+=mod;
	return x;
}
inline ll lowdiv(ll a,ll b) {return a/b-(a%b&&(a^b)<0);}
void init() {
	int d=gcd(A,B);
	A/=d,B/=d,C/=gcd(d,C);
	for(int _=0;_<2;++_) {
		d=gcd(A,C);
		C/=d,A/=d;
		int t=gcd(B,d);
		B/=t,Y/=d/t;
		swap(A,B),swap(X,Y);
	}
}
void getpos() {
	pos.clear(),cnt.clear();
	int W=C,H=D,now=0,r=inver(D,C);
	while(W) {
		int d=W/H;
		pos.push_back((ll)now*r%C),cnt.push_back(d); 
		now+=d*H;
		W%=H; if(W==0) break;
		H%=W; if(H==0) H=W;
	}
	pos.push_back(C);
}
inline int gety(int x) {return C-(ll)x*D%C;}
int main() {
	rd(T);
	for(int kase=1;kase<=T;++kase) {
		rd(A),rd(X),rd(B),rd(Y),rd(C);
		init();
		if(C==1) {printf("%d\n",X+Y); continue;}
		D=(ll)A*inver(B,C)%C;
		getpos();
		int an=0;
		for(int i=0;i<cnt.size();++i) {
			int xl=pos[i],xr=pos[i+1],yl=gety(xl),yr=gety(xr);
			int dx=(xr-xl)/cnt[i],dy=(yl-yr)/cnt[i];
			int l=0,r=X+Y,re=-1;
			while(l<=r) {
				int mid=(l+r)>>1;
				ll p=lowdiv(X-(ll)xl*mid,dx),q=lowdiv(Y-(ll)yr*mid,dy);
				if(p>=0&&q>=0&&p+q>=cnt[i]*mid) re=mid,l=mid+1;
				else r=mid-1;
			}
			Cmax(an,re);
		}
		printf("%d\n",an);
	}
	return 0;
} 

Compiler output:
a.cc: In function 'void rd(T&)':
a.cc:6:13: error: 'll' was not declared in this scope
    6 | #define int ll
      |             ^~
a.cc:13:14: note: in expansion of macro 'int'
   13 |         x=0; int f=1,ch=gc();
      |              ^~~
a.cc:14:15: error: 'ch' was not declared in this scope
   14 |         while(ch<'0'||ch>'9'){if(ch=='-')f=-1;ch=gc();}
      |               ^~
a.cc:14:42: error: 'f' was not declared in this scope
   14 |         while(ch<'0'||ch>'9'){if(ch=='-')f=-1;ch=gc();}
      |                                          ^
a.cc:15:15: error: 'ch' was not declared in this scope
   15 |         while(ch>='0'&&ch<='9'){x=x*10-'0'+ch;ch=gc();}
      |               ^~
a.cc:16:12: error: 'f' was not declared in this scope
   16 |         x*=f;
      |            ^
a.cc: At global scope:
a.cc:6:13: error: '::main' must return 'int'
    6 | #define int ll
      |             ^~
a.cc:59:1: note: in expansion of macro 'int'
   59 | int main() {
      | ^~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
typedef long long ll;
#define pb pushback
#define fr(i,n) for(int i=0;i<n;i++)
#define fro(i,j,n) for(int i=j;i<n;i++)
#define ifr(i,n) for(int i=n-1;i>=0;i--)

int main() {
    int t;
    int a,x,b,y,c
    int ans=0;
	cin >> t;
  	fr(i,t){
      cin >> a>>x>>b>>y>>c;
      a%=c;
      b%=c;
      int g=gcd(a,b);
      g=gcd(g,c);
      a/=g;
      b/=g;
      c/=g;
      if(b>a){
        int ko=a;
        a=b;
        b=lo;
      }
      ans+=x/c;
      ans+=y/c;
      x%=c;
      y%=c;
      int dp[c][c];
      fr(j,2*c-1){
        fr(k,c){
          dp[j][k-j]=j*x+(k-j)*y;
        }
      }
      cout << ans<< endl;
    }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:12:5: error: expected initializer before 'int'
   12 |     int ans=0;
      |     ^~~
a.cc:15:26: error: 'c' was not declared in this scope
   15 |       cin >> a>>x>>b>>y>>c;
      |                          ^
a.cc:26:11: error: 'lo' was not declared in this scope; did you mean 'ko'?
   26 |         b=lo;
      |           ^~
      |           ko
a.cc:28:7: error: 'ans' was not declared in this scope; did you mean 'abs'?
   28 |       ans+=x/c;
      |       ^~~
      |       abs
a.cc:35:11: error: 'dp' was not declared in this scope; did you mean 'dup'?
   35 |           dp[j][k-j]=j*x+(k-j)*y;
      |           ^~
      |           dup
Language: C++

#include<bits/stdc++.h>
using namespace std;
typedef long long ll;
#define pb pushback
#define fr(i,n) for(int i=0;i<n;i++)
#define fro(i,j,n) for(int i=j;i<n;i++)
#define ifr(i,n) for(int i=n-1;i>=0;i--)

int main() {
    int t;
    ll a,x,b,y,c
    int ans=0;
	cin >> t;
  	fr(i,t){
      cin >> a>>x>>b>>y>>c;
      a%=c;
      b%=c;
      int g=gcd(a,b);
      g=gcd(g,c);
      a/=g;
      b/=g;
      c/=g;
      if(b>a){
        int ko=a;
        a=b;
        b=lo;
      }
      ans+=x/c;
      ans+=y/c;
      x%=c;
      y%=c;
      cout << ans+rand()%((x*a+b*y)/c)<< endl;
    }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:5: error: expected initializer before 'int'
   12 |     int ans=0;
      |     ^~~
a.cc:15:26: error: 'c' was not declared in this scope
   15 |       cin >> a>>x>>b>>y>>c;
      |                          ^
a.cc:26:11: error: 'lo' was not declared in this scope; did you mean 'ko'?
   26 |         b=lo;
      |           ^~
      |           ko
a.cc:28:7: error: 'ans' was not declared in this scope; did you mean 'abs'?
   28 |       ans+=x/c;
      |       ^~~
      |       abs
Language: Java

import java.util.*;

public class Solution{
  public static void main(String [] args){
    Scanner sc = new Scanner(System.in);
    int t = sc.nextInt();
    for(int  j= 1;j <= t;j++){
     	int a = sc.nextInt();
    	int x = sc.nextInt();
    	int b = sc.nextInt();
    	int y = sc.nextInt();
    	int c = sc.nextInt();
    	Stack<Integer> sta = new Stack<>();
    	Stack<Integer> stb = new Stack<>();
    	for(int i = 0;i < x;i++){
      		sta.push(a);
    	}
    	for(int i = 0;i < y;i++){
      		stb.push(b);
    	}
    	int rem = 0,count = 0;
    	while(!sta.isEmpty() && !stb.isEmpty()){
      		rem = (rem+sta.pop())%c;
      		if(rem == 0) count++;
      		else {
        		if( (rem + stb.peek())%c < rem) {
        			rem = (rem + stb.pop())%c;
        			if(rem == 0)  count++;
        		}
      		}
    	}
    	while(!sta.isEmpty()) {
    		rem = (rem + sta.pop())%c;
    		if(rem == 0) count++;
    	}
    	while(!stb.isEmpty()) {
    		rem = (rem + stb.pop())%c;
    		if(rem == 0) count++;
    	}
    	System.out.println(count);
    }
  }
}


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

import java.util.*;

class Solution{
  public static void main(String [] args){
    Scanner sc = new Scanner(System.in);
    int t = sc.nextInt();
    for(int i = 1;i <= t;i++){
     	int a = sc.nextInt();
    	int x = sc.nextInt();
    	int b = sc.nextInt();
    	int y = sc.nextInt();
    	int c = sc.nextInt();
    	Stack<Integer> sta = new Stack<>();
    	Stack<Integer> stb = new Stack<>();
    	for(int i = 0;i < a;i++){
      		sta.push(x);
    	}
    	for(int i = 0;i < b;i++){
      		stb.push(y);
    	}
    	int rem = -1,count = 0;
    	while(!sta.isEmpty() && !stb.isEmpty()){
      		rem = (rem+sta.pop())%c;
      		if(rem == 0) count++;
      		else {
        		if( (rem + stb.peek())%c < rem)
        			rem = (rem + stb.pop())%c;
      		}
    	}
    System.out.println(count);
    }
  }
}


Compiler output:
Main.java:15: error: variable i is already defined in method main(String[])
    	for(int i = 0;i < a;i++){
    	        ^
Main.java:18: error: variable i is already defined in method main(String[])
    	for(int i = 0;i < b;i++){
    	        ^
2 errors
Language: C++

非常に難しい問題楽しみ〜

Compiler output:
a.cc:1:1: error: extended character 〜 is not valid in an identifier
    1 | 非常に難しい問題楽しみ〜
      | ^
a.cc:1:1: error: '\U0000975e\U00005e38\U0000306b\U000096e3\U00003057\U00003044\U0000554f\U0000984c\U0000697d\U00003057\U0000307f\U0000301c' does not name a type
    1 | 非常に難しい問題楽しみ〜
      | ^~~~~~~~~~~~~~~~~~~~~~~~
Language: Java

import java.util.Scanner;						  double(少数)
public class{								  string(文字)
	public static void main(String[] args) {
	    Scanner stdIn= new Scanner(System.in);
	    int x = stdIn.nextInt();
	    int y = stdIn.nextInt();
	    
	    System.out.println(x*y);
    }
}


Compiler output:
Main.java:1: error: class, interface, enum, or record expected
import java.util.Scanner;						  double(??)
                         						  ^
Main.java:2: error: <identifier> expected
public class{								  string(??)
            ^
Main.java:2: error: invalid method declaration; return type required
public class{								  string(??)
             								  ^
Main.java:2: error: <identifier> expected
public class{								  string(??)
             								           ^
Main.java:2: error: ';' expected
public class{								  string(??)
             								            ^
5 errors
Language: C++

#include<iostream>
#include<cmath>
#include<algorithm>
using namespace std;
int main()
{
  int N;
  cin>>N;
  int A[i];
  for (int i=0;i<N;i++)
    cin>>A[i];
  int ans=1;
  for(int i=0;i<=A[i];i++)
  {
    ans*=A[i];
  }
  if(ans>pow(10,18))
    cout<<"-1"<<endl;
  else 
    cout<<ans<<endl;
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:9: error: 'i' was not declared in this scope
    9 |   int A[i];
      |         ^
a.cc:11:10: error: 'A' was not declared in this scope
   11 |     cin>>A[i];
      |          ^
a.cc:13:18: error: 'A' was not declared in this scope
   13 |   for(int i=0;i<=A[i];i++)
      |                  ^
Language: C++

#include<iostream>
#include<cmath>
#include<algorithm>
using namespace std;
int main()
{
  int N;
  cin>>N;
  int A[i];
  cin>>A[i];
  for (int i=0;i<N;i++)
    cout<<A[i];
  int ans=1;
  for(int i=0;i<=A[i];i++)
  {
    ans*=A[i];
  }
  if(ans>pow(10,18))
    cout<<"-1"<<endl;
  else 
    cout<<ans<<endl;
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:9: error: 'i' was not declared in this scope
    9 |   int A[i];
      |         ^
a.cc:10:8: error: 'A' was not declared in this scope
   10 |   cin>>A[i];
      |        ^
Language: C++

#include<iostream>
#include<cmath>
using namespace std;
int main (){
int n;
  cin>>n;
  for(int i=0;i<=n;i++)
  {
    int a[n];
    cin>>a[n];
    int ans=1;
    ans*=a[n];
  }
  if(int ans>pow(10,8))
     {
       cout<<"-1"<<endl;
       else
         cout<<ans<<endl;
     }
     return 0;
     }


Compiler output:
a.cc: In function 'int main()':
a.cc:14:13: error: expected initializer before '>' token
   14 |   if(int ans>pow(10,8))
      |             ^
a.cc:14:13: error: expected ')' before '>' token
   14 |   if(int ans>pow(10,8))
      |     ~       ^
      |             )
a.cc:17:8: error: expected '}' before 'else'
   17 |        else
      |        ^~~~
a.cc:15:6: note: to match this '{'
   15 |      {
      |      ^
a.cc: At global scope:
a.cc:20:6: error: expected unqualified-id before 'return'
   20 |      return 0;
      |      ^~~~~~
a.cc:21:6: error: expected declaration before '}' token
   21 |      }
      |      ^
Language: C++

#include<iostream>
using namespace std;
int main (){
int n;
  cin>>n;
  for(int i=0;i<=n;i++)
  {
    int a[n];
    cin>>a[n];
    int ans=1;
    ans*=a[n];
  }
  if(ans>pow(10,8))
     {
       cout<<"-1"<<endl;
       else
         cout<<ans<<endl;
     }
     return 0;
     }


Compiler output:
a.cc: In function 'int main()':
a.cc:13:6: error: 'ans' was not declared in this scope; did you mean 'abs'?
   13 |   if(ans>pow(10,8))
      |      ^~~
      |      abs
a.cc:13:10: error: 'pow' was not declared in this scope
   13 |   if(ans>pow(10,8))
      |          ^~~
a.cc:16:8: error: expected '}' before 'else'
   16 |        else
      |        ^~~~
a.cc:14:6: note: to match this '{'
   14 |      {
      |      ^
a.cc: At global scope:
a.cc:19:6: error: expected unqualified-id before 'return'
   19 |      return 0;
      |      ^~~~~~
a.cc:20:6: error: expected declaration before '}' token
   20 |      }
      |      ^
Language: C++

#include<iostream>
using namespace std;
int main (){
int n;
  cin>>n;
  for(int i=0;i<=n;i++)
  {
    int a[n];
    cin>>a[n];
    int ans=1;
    ans*=a[n];
  }
  if(ans<pow(10,8)
     {
       cout<<"-1"<<endl;
       else
         cout<<ans<<endl;
     }
     return 0;
     }


Compiler output:
a.cc: In function 'int main()':
a.cc:13:6: error: 'ans' was not declared in this scope; did you mean 'abs'?
   13 |   if(ans<pow(10,8)
      |      ^~~
      |      abs
a.cc:13:10: error: 'pow' was not declared in this scope
   13 |   if(ans<pow(10,8)
      |          ^~~
a.cc:19:6: error: expected primary-expression before 'return'
   19 |      return 0;
      |      ^~~~~~
a.cc:18:7: error: expected ')' before 'return'
   18 |      }
      |       ^
      |       )
   19 |      return 0;
      |      ~~~~~~
a.cc:13:5: note: to match this '('
   13 |   if(ans<pow(10,8)
      |     ^
Language: C++

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

int main() {
　int a, b;
  cin >> a >> b;
  
  cout << a * b << endl;
}


Compiler output:
a.cc:5:1: error: extended character 　 is not valid in an identifier
    5 | 　int a, b;
      | ^
a.cc: In function 'int main()':
a.cc:5:1: error: '\U00003000int' was not declared in this scope
    5 | 　int a, b;
      | ^~~~~
a.cc:6:10: error: 'a' was not declared in this scope
    6 |   cin >> a >> b;
      |          ^
a.cc:6:15: error: 'b' was not declared in this scope
    6 |   cin >> a >> b;
      |               ^
Language: C++

#include <iostream>

using namespace std;

int main()
{
    int N;
    cin>>N;
    int A=N%10;
    if(A=2||A=4||A=5||A=7||A=9)
    {
        cout<<"hon";

    }
    else if(A=0||A=1||A=6||A=8)
    {
        cout<<"pon";

    }
    else

    {
    cout<<"bon";
    }
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:26: error: lvalue required as left operand of assignment
   10 |     if(A=2||A=4||A=5||A=7||A=9)
      |                         ~^~~
a.cc:15:26: error: lvalue required as left operand of assignment
   15 |     else if(A=0||A=1||A=6||A=8)
      |                         ~^~~
Language: C++

#include <iostream>

using namespace std;

int main()
{
    int N;
    cin>>N;
    int A=N%10;
    if(A=2|A=4|A=5|A=7|A=9)
    {
        cout<<"hon";

    }
    else if(A=0|A=1|A=6|A=8)
    {
        cout<<"pon";

    }
    else

    {
    cout<<"bon";
    }
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:23: error: lvalue required as left operand of assignment
   10 |     if(A=2|A=4|A=5|A=7|A=9)
      |                      ~^~
a.cc:15:24: error: lvalue required as left operand of assignment
   15 |     else if(A=0|A=1|A=6|A=8)
      |                       ~^~
Language: C++

#include <iostream>
#include <vector> 
#include <cmath>
using namespace std;

#define int long long

signed main() {
    int a. b;
    cin >> a >> b;

    cout << a * b << endl;
    return 0;
}

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

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

int main() { 
    int A, B;
    cin >> A >> B;
    cout << A * B << endl;
    return 0;
}


Compiler output:
a.cc:4:13: error: extended character   is not valid in an identifier
    4 | int main() { 
      |             ^
a.cc: In function 'int main()':
a.cc:4:13: error: '\U000000a0' was not declared in this scope
    4 | int main() { 
      |             ^
a.cc:6:12: error: 'A' was not declared in this scope
    6 |     cin >> A >> B;
      |            ^
a.cc:6:17: error: 'B' was not declared in this scope
    6 |     cin >> A >> B;
      |                 ^
Language: C++

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

#define     fast()              ios::sync_with_stdio(0); cin.tie(0); cout.tie(0); 
#define     ll                  long long int
#define     test()              ll t; cin>>t; while(t--) 
#define     lp0(i,begin,end)    for(ll i=begin;i<end;i++)
#define     lp1(i,begin,end)    for(ll i=begin;i<=end;i++)
#define     rlp(i,begin,end)    for(ll i=end;i>=begin;i--)
#define     prec(n)             fixed<<setprecision(n)
#define     initial(a,i)        memset(a,i,sizeof(a))
#define     pb                  push_back
#define     PI                  3.1415926535897932384626433832795
#define     MOD                 1000000007
#define     F                   first
#define     S                   second
#define     all(a)              (a).begin(),(a).end()
#define     BPC(x)              __builtin_popcountll(x)
#define     gcd(a,b)            __gcd(a,b)

ll gcd(ll a,ll b) {if (a==0) return b;return gcd(b%a,a);}

ll power(ll x,ll n)
{
    ll result = 1;
    while (n)
    {
        if (n & 1)
            result = result * x;
        n = n / 2;
        x = x * x;
    }
    return result;
}


// Solution Function
void solution(ll compte)
{
    // cout<<compte<<"\n";
    ll n;
    cin>>n;
    ll arr[n];
    for(ll i=0;i<n;i++)
        cin>>arr[i];
    if(arr[0]==0)
    {
		cout<<0<<endl;
		return 0;
	}
 
	ll ans=1;
	for(ll i=0;i<n;i++)
    {
		if(arr[i]>ll(1e18)/ans)
        {
			cout<<-1<<endl;
			return ;
		}
		ans *= arr[i];
	}
	cout<<ans<<endl;
}
    // Driver Function
int main()
{
    ll compte = 1;
    //test()
    //{
        solution(compte);
        compte++;
    //}
    return 0;
}


Compiler output:
a.cc: In function 'void solution(long long int)':
a.cc:50:24: error: return-statement with a value, in function returning 'void' [-fpermissive]
   50 |                 return 0;
      |                        ^
a.cc:6:33: error: expected primary-expression before 'long'
    6 | #define     ll                  long long int
      |                                 ^~~~
a.cc:56:27: note: in expansion of macro 'll'
   56 |                 if(arr[i]>ll(1e18)/ans)
      |                           ^~
a.cc:56:27: error: expected ')' before 'long'
   56 |                 if(arr[i]>ll(1e18)/ans)
      |                   ~       ^
      |                           )
Language: C++

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

#define     fast()              ios::sync_with_stdio(0); cin.tie(0); cout.tie(0); 
#define     ll                  long long int
#define     test()              ll t; cin>>t; while(t--) 
#define     lp0(i,begin,end)    for(ll i=begin;i<end;i++)
#define     lp1(i,begin,end)    for(ll i=begin;i<=end;i++)
#define     rlp(i,begin,end)    for(ll i=end;i>=begin;i--)
#define     prec(n)             fixed<<setprecision(n)
#define     initial(a,i)        memset(a,i,sizeof(a))
#define     pb                  push_back
#define     PI                  3.1415926535897932384626433832795
#define     MOD                 1000000007
#define     F                   first
#define     S                   second
#define     all(a)              (a).begin(),(a).end()
#define     BPC(x)              __builtin_popcountll(x)
#define     gcd(a,b)            __gcd(a,b)

ll gcd(ll a,ll b) {if (a==0) return b;return gcd(b%a,a);}

ll power(ll x,ll n)
{
    ll result = 1;
    while (n)
    {
        if (n & 1)
            result = result * x;
        n = n / 2;
        x = x * x;
    }
    return result;
}


// Solution Function
void solution(ll compte)
{
    // cout<<compte<<"\n";
    lla,b;
    cin>>a>>b;
    puts(a*b);

// Driver Function
int main()
{
    ll compte = 1;
    //test()
    //{
        solution(compte);
        compte++;
    //}
    return 0;
}


Compiler output:
a.cc: In function 'void solution(long long int)':
a.cc:42:5: error: 'lla' was not declared in this scope; did you mean 'll'?
   42 |     lla,b;
      |     ^~~
      |     ll
a.cc:42:9: error: 'b' was not declared in this scope; did you mean 'pb'?
   42 |     lla,b;
      |         ^
      |         pb
a.cc:43:10: error: 'a' was not declared in this scope
   43 |     cin>>a>>b;
      |          ^
a.cc:47:9: warning: empty parentheses were disambiguated as a function declaration [-Wvexing-parse]
   47 | int main()
      |         ^~
a.cc:47:9: note: remove parentheses to default-initialize a variable
   47 | int main()
      |         ^~
      |         --
a.cc:47:9: note: or replace parentheses with braces to value-initialize a variable
a.cc:48:1: error: a function-definition is not allowed here before '{' token
   48 | {
      | ^
a.cc:56:2: error: expected '}' at end of input
   56 | }
      |  ^
a.cc:40:1: note: to match this '{'
   40 | {
      | ^
Language: C++

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

int main() {
  int a, b;
  cin >> a >> b;
  cout << a * b << "\n";
  }

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

#include<stdio.h>

int main(){
  
 unsigned long long int n,i,ans;
  ans=1;

  (void) scanf("%llu",&n);
   unsigned long long int b[n];
  
 for (i=0;i<n;i++)
  {
  (void) scanf("%llu",&b[i]); 
  }
        
  for (i=0;i<n;i++)
  {
    if (b[i]==0){
      printf("0");
      return 0;
  }
    
  for (i=0;i<n;i++)
  {
   ans=ans*b[i];
   //printf("%llu %llu\n",b,ans);

    if (ans>=1000000000000000001)
    {
      printf("-1");
      return 0;
    }
  }
  
if(ans==0){
  printf("-1");
  return 0;
}  else{
   
 printf("%llu",ans);
}
 return 0; 
}

Compiler output:
main.c: In function 'main':
main.c:43:1: error: expected declaration or statement at end of input
   43 | }
      | ^
Language: C++

#include<iostream>
#include<cmath>
#include<algorithm>
using namespace std;
int main()
{
  int N;
  cin>>N;
  int A[i];
  for (int i=0;i<N;i++)
    cout<<A[i];
  int ans=1;
  for(int i=0;i<=A[i];i++)
  {
    ans*=A[i];
  }
  if(ans>pow(10,18))
    cout<<"-1"<<endl;
  else 
    cout<<ans<<endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:9: error: 'i' was not declared in this scope
    9 |   int A[i];
      |         ^
a.cc:11:11: error: 'A' was not declared in this scope
   11 |     cout<<A[i];
      |           ^
a.cc:13:18: error: 'A' was not declared in this scope
   13 |   for(int i=0;i<=A[i];i++)
      |                  ^
Language: C++

#include<iostream>
#include<cmath>
#include<algorithm>
int main()
{
  int N,i;
  cin>>N;
  int A[i];
  for (int i=0;i<N;i++)
    cout<<A[i];
  int ans=1;
  for(int i=0;i<=A[i];i++)
  {
    ans*=A[i];
  }
  if(ans>pow(10,18))
    cout<<"-1"<<endl;
  else 
    cout<<ans<<endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    7 |   cin>>N;
      |   ^~~
      |   std::cin
In file included 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:10:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   10 |     cout<<A[i];
      |     ^~~~
      |     std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:17:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   17 |     cout<<"-1"<<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:17:17: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   17 |     cout<<"-1"<<endl;
      |                 ^~~~
      |                 std::endl
In file included from /usr/include/c++/14/iostream:41:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:19:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   19 |     cout<<ans<<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:19:16: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   19 |     cout<<ans<<endl;
      |                ^~~~
      |                std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

#include<iostream>
#include<cmath>
#include<algorithm>
int main()
{
  int N i;
  cin>>N;
  int A[i];
  for (int i=0;i<N;i++)
    cout<<A[i];
  int ans=1;
  for(int i=0;i<=A[i];i++)
  {
    ans*=A[i];
  }
  if(ans>pow(10,18))
    cout<<"-1"<<endl;
  else 
    cout<<ans<<endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:9: error: expected initializer before 'i'
    6 |   int N i;
      |         ^
a.cc:7:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    7 |   cin>>N;
      |   ^~~
      |   std::cin
In file included 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:8: error: 'N' was not declared in this scope
    7 |   cin>>N;
      |        ^
a.cc:8:9: error: 'i' was not declared in this scope
    8 |   int A[i];
      |         ^
a.cc:10:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   10 |     cout<<A[i];
      |     ^~~~
      |     std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:10:11: error: 'A' was not declared in this scope
   10 |     cout<<A[i];
      |           ^
a.cc:12:18: error: 'A' was not declared in this scope
   12 |   for(int i=0;i<=A[i];i++)
      |                  ^
a.cc:17:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   17 |     cout<<"-1"<<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:17:17: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   17 |     cout<<"-1"<<endl;
      |                 ^~~~
      |                 std::endl
In file included from /usr/include/c++/14/iostream:41:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:19:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   19 |     cout<<ans<<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:19:16: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   19 |     cout<<ans<<endl;
      |                ^~~~
      |                std::endl
/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;

vector<pair<long long, long long>> prime_factorize(long long n) {
    vector<pair< long long, long long >> res;
     for (long long p = 2; p*p <= n; ++p) {
        if (n%p != 0) continue;
        int num = 0 ;
        while (n%p == 0 ) {++num; n /= p;}
        res.push_back(make_pair(p, num));
    }
    if (n != 1) res.push_back(make_pair (n, 1));
     return res;
}

int main () {
    long  long N;
    cin >> N;
    auto pf = prime_factorize (N);
    long  long res = 0 ;
    for (auto p : pf) {
        long  long e = p.second;
        long  long tmp = 0 , cur = 1 ;
        while (e> = cur) e-= cur ++, ++ tmp;
        res + = tmp;
    }
    cout << res << "\n";
}

Compiler output:
a.cc: In function 'int main()':
a.cc:24:19: error: expected primary-expression before '=' token
   24 |         while (e> = cur) e-= cur ++, ++ tmp;
      |                   ^
a.cc:25:15: error: expected primary-expression before '=' token
   25 |         res + = tmp;
      |               ^
Language: C++

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

int main(){
  int a, b;
  cin >> a >> b;
  ans = a * b;
  cout << ans << endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:3: error: 'ans' was not declared in this scope; did you mean 'abs'?
   12 |   ans = a * b;
      |   ^~~
      |   abs
Language: C++

#include <bits/stdc++.h>

using namespace std;

#define ll long long
#define ar array

cin a,b;


void solve(){

    cin >> a >> b;

    cout << a*b << endl;
}





int main(){

    ios::sync_with_stdio(false);
    cin.tie(0);

    solve();

}

Compiler output:
a.cc:8:1: error: 'cin' does not name a type
    8 | cin a,b;
      | ^~~
a.cc: In function 'void solve()':
a.cc:13:12: error: 'a' was not declared in this scope; did you mean 'ar'?
   13 |     cin >> a >> b;
      |            ^
      |            ar
a.cc:13:17: error: 'b' was not declared in this scope
   13 |     cin >> a >> b;
      |                 ^
Language: C++

# include <iostream>

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

  cout << A*B;
  
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    6 |   cin >> A >> B;
      |   ^~~
      |   std::cin
In file included 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 << A*B;
      |   ^~~~
      |   std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
Language: C++

#include<bits/stdc++.h>
int main(){
	int A,B;
  	cin >> A >>B;
  	cout << A*B << endl;
  	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:9: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    4 |         cin >> A >>B;
      |         ^~~
      |         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:5:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    5 |         cout << A*B << 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:5:24: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    5 |         cout << A*B << 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;

int main() {
  int a, b;
  cint >> a >> b;
  cout << a*b << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: error: 'cint' was not declared in this scope; did you mean 'uint'?
    6 |   cint >> a >> b;
      |   ^~~~
      |   uint
Language: C++

#include <bits/stdc++.h>

using namespace std;
using ll = long long;
using vl = vector<ll>;
using pll = pair<ll, ll>;

#define rep(i, n) for (ll i = 0, xxx_rep_end = (n); i < xxx_rep_end; ++i)
#define all(x) (x).begin(), (x).end()

template <class T1, class T2>
inline void chmax(T1 &a, const T2 &b) {
    if (a < b) {
        a = b;
        return true;
    }
    return false;
}
template <class T1, class T2>
inline void chmin(T1 &a, const T2 &b) {
    if (a > b) {
        a = b;
        return true;
    }
    return false;
}

constexpr ll INF = 0x3f3f3f3f3f3f3f3fLL;
constexpr ll mod = 1000000007;

int main() {
    ll a, b;
    cin >> a >> b;
    cout << a * b << endl;
}

Compiler output:
a.cc: In function 'void chmax(T1&, const T2&)':
a.cc:15:16: error: return-statement with a value, in function returning 'void' [-fpermissive]
   15 |         return true;
      |                ^~~~
a.cc:17:12: error: return-statement with a value, in function returning 'void' [-fpermissive]
   17 |     return false;
      |            ^~~~~
a.cc: In function 'void chmin(T1&, const T2&)':
a.cc:23:16: error: return-statement with a value, in function returning 'void' [-fpermissive]
   23 |         return true;
      |                ^~~~
a.cc:25:12: error: return-statement with a value, in function returning 'void' [-fpermissive]
   25 |     return false;
      |            ^~~~~
Language: C++

#include<cstdio>
int main(){int a,b;cin>>a>>b;cout<<a*b;}

Compiler output:
a.cc: In function 'int main()':
a.cc:2:20: error: 'cin' was not declared in this scope
    2 | int main(){int a,b;cin>>a>>b;cout<<a*b;}
      |                    ^~~
a.cc:2:30: error: 'cout' was not declared in this scope
    2 | int main(){int a,b;cin>>a>>b;cout<<a*b;}
      |                              ^~~~
Language: C++

#pragma warning (disable : 4996)
#define _GLIBCXX_DEBUG
#include <iostream>
#include <vector>
#include <string>
#include <algorithm>
#include <cmath>
#include <climits>
#include <utility>
using namespace std;
#define omajinai ios::sync_with_stdio(false);cin.tie(nullptr);

#pragma region typedef 
typedef unsigned int uint;
typedef long long ll;
typedef unsigned long long ull;
typedef long double ld;
typedef pair<int, int> P;
#pragma endregion

#pragma region define
#define endl '\n'
#define all(x) (x).begin(), (x).end()
#define rall(x) (x).rbegin(), (x).rend()
#define rep(i, n) for(int i = 0; (i) < (n); (i)++)
#define pb push_back
#define pf push_front
#pragma endregion

#pragma region const
const ld PI = 3.141592653589793;
const ll INF18 = 1e18;
#pragma endregion

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



int main() {
omajinai;

  int a, b c;
  cin >> a >> b;
  cout << a*b << endl;
return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:47:12: error: expected initializer before 'c'
   47 |   int a, b c;
      |            ^
a.cc:48:15: error: 'b' was not declared in this scope
   48 |   cin >> a >> b;
      |               ^
Language: C++

#include<iostream>
using namespace std;
int main() {
  cin>>a>>b;
  cout<<a*b<<endl;
}

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

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

Compiler output:
a.cc:2:20: error: expected ';' before 'int'
    2 | using namespace std
      |                    ^
      |                    ;
    3 | 
    4 | int main(){
      | ~~~
Language: C++

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

int main(){
  int a;
  cin >> a;
  
  if(a>='A')
    a='A'
  else
    a='a';
  
  cout<<a<<endl;
  
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:10: error: expected ';' before 'else'
    9 |     a='A'
      |          ^
      |          ;
   10 |   else
      |   ~~~~
Language: C++

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

int main(){
  int a,b;
  cin >> a >> b;
  cout << a*b << endl;
}


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

#include <bts/stdc**.h>
using namespace std;

int main(){
  int a,b;
  cin >> a >> b;
  cout << a*b << endl;
}

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

#include<iostream>
int main(){
  int a,b;
  cin>>a>>b;
  cout<<a*b;
}

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>>b;
      |   ^~~
      |   std::cin
In file included 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:5:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    5 |   cout<<a*b;
      |   ^~~~
      |   std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
Language: Java

public class Main {
  public static void main(String[] args) {
    int A = new java.util.Scanner(System.in).nextInt();
    int B = new java.util.Scanner(System.in).nextInt();
    if (A >= 1 && A <= 100 && B >= 1 && B <= 100) {
    int C = A * B;
    }
    System.out.println(C);
  }
}


Compiler output:
Main.java:8: error: cannot find symbol
    System.out.println(C);
                       ^
  symbol:   variable C
  location: class Main
1 error
Language: C++

#include <bits/stdc++.h>

int main(){
  int a, b;
  cin >> a >> b;
  cout << a*b << endl;
  return 0;
}

Compiler output:
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 >> b;
      |   ^~~
      |   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*b << 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:18: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    6 |   cout << a*b << 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 <iostream>
using namespace std;

char arr[2048 * 1024 * 1024];

int main() {

    int a, b;
    cin >> a >> b;
    cout << a * b << endl;
}

Compiler output:
a.cc:4:22: warning: integer overflow in expression of type 'int' results in '-2147483648' [-Woverflow]
    4 | char arr[2048 * 1024 * 1024];
      |          ~~~~~~~~~~~~^~~~~~
a.cc:4:22: error: size '-2147483648' of array 'arr' is negative
Language: C++

#include <iostream>
using namespace std;

char arr[3000 * 1024 * 1024];

int main() {

    int a, b;
    cin >> a >> b;
    cout << a * b << endl;
}

Compiler output:
a.cc:4:22: warning: integer overflow in expression of type 'int' results in '-1149239296' [-Woverflow]
    4 | char arr[3000 * 1024 * 1024];
      |          ~~~~~~~~~~~~^~~~~~
a.cc:4:22: error: size '-1149239296' of array 'arr' is negative
Language: Java

public class Main{
  public static void main(String[] args){
    int m = new java.util.Scanner(System.in)nextInt() * new java.util.Scanner(System.in)nextInt();
    System.out.println(m);
  }
}

Compiler output:
Main.java:3: error: ';' expected
    int m = new java.util.Scanner(System.in)nextInt() * new java.util.Scanner(System.in)nextInt();
                                            ^
Main.java:3: error: not a statement
    int m = new java.util.Scanner(System.in)nextInt() * new java.util.Scanner(System.in)nextInt();
                                                      ^
Main.java:3: error: ';' expected
    int m = new java.util.Scanner(System.in)nextInt() * new java.util.Scanner(System.in)nextInt();
                                                                                        ^
3 errors