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

#include <algorithm>
#include <bitset>
#include <climits>
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <ctime>
#include <functional>
#include <iostream>
#include <queue>
#include <set>
#include <map>
#include <unordered_map>
#include <stack>
#include <string>
#include <vector>
 
using namespace std;
typedef long long ll;
using gra = vector<vector<ll>>;
using gram = vector<unordered_map<ll,ll>>;
 
typedef unsigned long long ull;
 
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; }
 
template <class T> T gcd(T a, T b) { return b ? gcd(b, a % b) : a; }
template <class T> T lcm(T a, T b) { return a / gcd(a, b) * b; }
template <class T> T dup(T a, T b) { return (a + b - 1) / b; }
template <class T> T modpow(T x, T p, T m) { T a=1; while(p){ if(p%2)a =a*x%m; x = x+x%m; p/=2; } return a; }
// template <class T> void prim(T a) { for(ll i=0;i<a.size();++i) { cout << a[i]; } cout << "\n"; }
 
#define mod 1000000007LL
#define INF 10000000000000000LL
 
#define rep(i, n) for (ll i = 0; i < n; ++i)
#define rep1(i, n) for (int i = 1; i <= n; ++i)
#define rrep(i, n) for (int i = (n - 1); i >= 0; --i)
#define rrep1(i, n) for (int i = n; i > 0; --i)
 
#define pri(x) cout << (x) << "\n"
#define pri2(x, y) cout << (x) << " " << (y) << "\n"
#define pri3(x, y, z) cout << (x) << " " << (y) << " " << (z) << "\n"
//#define modpow(x, p, m) { ll a=1; while(p){ if(p%2)a =a*x%m; x = x+x%m; p/=2; } return a; }
 
#define m0(h) memset(h, 0, sizeof(h))
#define m1(h) memset(h, 1, sizeof(h))
#define m(h, n) memset(h, (n), sizeof(h))
#define all(n) (n).begin(),(n).end()
#define bit(n) (1LL << (n))
#define pb push_back
 
//#ifdef LOCAL
//
//#define dpri(...) fprintf(stderr, __VA_ARGS__)
//#define pria(g) rep(i,g.size()){ cout << i << "{"; rep(j,g[i].size()) cout << g[i][j] << " "; cout << "}" << "\n"; }
//#else
//#define dpri(...) 42
//#define pria(g) 42
//#endif
 
 
 
int main() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  // ---------------------
  // コーディング開始
  // ---------------------
  ll h,w,k;
  cin >> h >> w >> k;
  string s[h];

  rep(i,h){
    cin >> s[i];
  }

  ll gn = 1;
  string line = "";
  string lasttadasiiline = "";
  bool flag =false;
  ll fst = 1;
  rep(i,h){
    flag=false;
    rep(j,w){
      // # はイチゴである 
      // 一つでもあったか
      if(s[i][j]=='#'){
        //イチゴがのってるよ！
        if(flag){
          gn++;
        }else{
          // みつかったよ！
          flag=true;
        }
      }else{
      }
      line = line + to_string(gn);
    }
    // 一列終わり
    if(flag){
      rep(i,fst){
        pri(line);
      }
      fst=1;
      lasttadasiiline = line;
      gn++;
    }else{
      //いちごなかった？
      //じゃあ最後のラインと同じにしておくね。
      if(lasttadasiiline!=""){
        pri(lasttadasiiline);
      }else{
        //一回もみつかってないならスタックさせる
        fst++;
      }
    }
    line = "";
  }


  return 0;
}


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

int main(void){
    int X,Y;cin>>X>>Y;int ans=0;
    if(X==1&&Y==1){
        cout<<1000000<<endl;
        return 0;
    }

    if(X==1)ans+=300000;
    else if(X==2)ans+=200000;
    else if(X==3)ans+=100000;

    if(Y==1)ans+=300000;
    else if(Y==2)ans+=200000;
    else if(Y==3)ans+=100000;

    cout<<ans<<endl;
    
}

Compiler output:
a.cc: In function 'int main()':
a.cc:2:13: error: 'cin' was not declared in this scope
    2 |     int X,Y;cin>>X>>Y;int ans=0;
      |             ^~~
a.cc:4:9: error: 'cout' was not declared in this scope
    4 |         cout<<1000000<<endl;
      |         ^~~~
a.cc:4:24: error: 'endl' was not declared in this scope
    4 |         cout<<1000000<<endl;
      |                        ^~~~
a.cc:16:5: error: 'cout' was not declared in this scope
   16 |     cout<<ans<<endl;
      |     ^~~~
a.cc:16:16: error: 'endl' was not declared in this scope
   16 |     cout<<ans<<endl;
      |                ^~~~
Language: C++

a, b = input().split(" ")
x = int(a)
y = int(b)
amt = 0
if x == 3:
    amt += 100000
elif x == 2:
    amt += 200000
elif x == 1: 
    amt += 300000

if y == 3:
    amt += 100000
elif y == 2:
    amt += 200000
elif y == 1: 
    amt += 300000

if x == 1 and y == 1:
    amt += 400000

print (amt)

Compiler output:
a.cc:1:1: error: 'a' does not name a type
    1 | a, b = input().split(" ")
      | ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  int a,b,c;
  cin >> a >> b;
  
  if ( a = 1 && b = 1){
    c = 400000;
  }
  else{
    c =0;
  }
  if (a < 4){
    a = (4-a)*100000;
  }
  else{
    a = 0;
  }
  
  if (b < 4){
    b = (4-b)*100000;
  }
  else{
    b = 0;
  }
  cout <<  a + b + c << endl;
}

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

#include <iostream>
using name space std;

int main(){
  int X,Y,x,y;cin >> X >> Y;
  
  if(X == 1){
    x = 30000;
  }else if(X == 2){
    x = 20000;
  }else if(X == 3){
    x = 10000;
  }
   if(Y == 1){
    y = 30000;
  }else if(Y == 2){
    y = 20000;
  }else if(Y == 3){
    y = 10000;
  }
  if(X==1 && Y == 1){
    cout << 100000 << endl;
  }else{
    cout << x + y << endl;
  }
}

Compiler output:
a.cc:2:7: error: expected nested-name-specifier before 'name'
    2 | using name space std;
      |       ^~~~
a.cc: In function 'int main()':
a.cc:5:15: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    5 |   int X,Y,x,y;cin >> X >> Y;
      |               ^~~
      |               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:22:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   22 |     cout << 100000 << 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:22:23: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   22 |     cout << 100000 << 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:24:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   24 |     cout << x + y << 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:24:22: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   24 |     cout << x + y << 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>
using namespace std;
int main(void){
  int a,b;
  cin >> a >> b;
  if(a==1&&b==1){
    cout << 1000000 << endl;
  }
  else if(a=3&&b==3){
    cout << 200000 << endl;
  }
  else if(a=3&&b==2){
    cout << 300000 << endl;
  }
  else if(a=3&&b==1){
    cout << 400000 << endl;
  }
  else if(a=2&&b==3){
    cout << 300000 << endl;
  }
  else if(a=2&&b==2){
    cout << 400000 << endl;
  }
  else if(a=2&&b==1){
    cout << 500000 << endl;
  }
  else if(a=1&&b==3){
    cout << 400000 << endl;
  }
  else if(a=1&&b==2){
    cout << 500000 << endl;
  }
  else if(a=1||b==1){
    cout << 300000 << endl;
  }
  else if(a=2||b==2){
    cout << 200000 << endl;
  } 
  else if(a=3||b==3){
    cout << 100000 << endl;
  }
  else{
    cout << 0 << endl;
  }
  return 0;

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

#include<iostream>
#include<string>
#include<algorithm>
#include<cstdlib>
#include<cmath>
#include<vector>
#include<list>
#include<cstdint>
#include<bits/stdc++.h>
#include<queue>
#include<set>

#define rep(i, n) for(int i = 0; i < (int)(n); i++)
#define rep_r(i, n) for(int i = n-1; i >= 0; i--)
#define rep1(i, n) for(int i = 1; i <= (int)(n); i++)
#define REP(i,n) for(int i=0, i##_len=(n); i<i##_len; ++i)
#define all(x) (x).begin(),(x).end()
#define SZ(x) ((ll)(x).size())
#define bit(n) (1LL<<(n))
#define UNIQUE(v) v.erase( unique(v.begin(), v.end()), v.end() );

#define INF bit(60)
#define pb push_back
#define mod 1000000007

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

using namespace std;
using uif=uint_fast64_t;
using ll=long long int;

int qp(int a,ll b){int ans=1;do{if(b&1)ans=1ll*ans*a%mod;a=1ll*a*a%mod;}while(b>>=1);return ans;}
int qp(int a,ll b,int mo){int ans=1;do{if(b&1)ans=1ll*ans*a%mo;a=1ll*a*a%mo;}while(b>>=1);return ans;}

int gcd(int a,int b){return b?gcd(b,a%b):a;}
int dx[4]={1,0,-1,0};
int dy[4]={0,1,0,-1};


#define FACSIZE 2002

ll invfac[FACSIZE];
ll fac[FACSIZE];

ll mod_pow(ll ,ll );
ll mod_add(ll ,ll );
ll mod_mul(ll ,ll );
ll mod_div(ll ,ll );
void make_fact(ll );
void make_invfact(ll );



int main(void){

  ll mon={0,300000,200000,100000};
  ll x,y;
  cin>>x>>y;
  ll ans=0;
  if(x>3)x=0;
  if(y>3)y=0;
  if(x==1 && y==1) ans+=400000;
  ans+=mon[x]+mon[y];
  
  cout << ans << endl;

  return 0;

}

ll mod_pow(ll x,ll r){
  if(r==0) return 1;
  else if(r==1) return x%mod;
  else if(r%2==0){
    ll t=mod_pow(x,r/2)%mod;
    return t*t %mod;
  } 
  else{
    ll t=mod_pow(x,r/2)%mod;
    ll k= t*t %mod;
    return k*x%mod;
  } 
}
ll mod_add(ll a,ll b){
  return (a+b)%mod;
}

ll mod_mul(ll a,ll b){
  return (a*b)%mod;
}

ll mod_div(ll a,ll b){
  return mod_mul(a,mod_pow(b,mod-2));
}

void make_fact(ll n){
  fac[0]=1;
  rep(i,n){
    fac[i+1]=mod_mul(fac[i],i+1);
  }  
}

void make_invfact(ll n){
  invfac[n]= mod_pow( fac[n] ,mod-2);
  for(int i=n-1;i>=0;i--){
    invfac[i]=mod_mul(invfac[i+1],i+1);
  }

}

Compiler output:
a.cc: In function 'int main()':
a.cc:57:6: error: scalar object 'mon' requires one element in initializer
   57 |   ll mon={0,300000,200000,100000};
      |      ^~~
Language: C++

#include <stdio.h>
#include <stdlib.h>

int main(void){
 int n,num[200001];
 int s=0;
 int f=0;
  int mm=10000000000;
 scanf("%d", &n);
 for(int i=1;i<=n;++i ){
   scanf("%d", &num[i]);
 }
 for(int i=1;i<=n;++i){
     s=s+num[i];
     for(int j=i+1;j<=n;j++){
         f=f+num[j];
     }
   if(mm>abs(s-f)){
     mm <-abs(s-f);
   }
 }
 printf("%d",mm)
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:10: warning: overflow in conversion from 'long int' to 'int' changes value from '10000000000' to '1410065408' [-Woverflow]
    8 |   int mm=10000000000;
      |          ^~~~~~~~~~~
a.cc:22:17: error: expected ';' before 'return'
   22 |  printf("%d",mm)
      |                 ^
      |                 ;
   23 |   return 0;
      |   ~~~~~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:38: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator<<'
    7 |   cout << (4-a)*100000, (4-b)*100000 << endl;
      |                         ~~~~~~~~~~~~~^~~~~~~
Language: C++

x = int(input())
y = int(input())
price1 = 300000
price2 = 200000
price3 = 100000
additionalprice = 400000

while (1<=x<=205 and 1<=y<=2015):
    if(x==1 and y==1):
        print(price3 + price3 + additionalprice)
    elif (x==1 and y==2):
        print(price1 + price2)
    elif (x==2 and y==1):
        print(price2 + price1)
    elif (x==3 and y==1):
        print(price3 + price1)
    elif (x==2 and y==2):
        print(price2 + price2)
    elif(x==2 and y==3):
        print(price2 + price3)
    elif (x>3 and y>3):
        totalprice = 0
        print(totalprice)
exit()


Compiler output:
a.cc:1:1: error: 'x' does not name a type
    1 | x = int(input())
      | ^
Language: C++

#include <math.h>
using namespace std;
const int nmax = 200000;
int main(){
  int n;
  int a[nmax];
  int barlen = 0;
  int halflenl = 0;
  int halflenr = 0;
  int odd = 0;
  int j;
  cin >> n;
  for(int i=0; i<n; i++){
    cin >> a[i];
    barlen += a[i];
  }
  odd = barlen%2;
  for(j=0; j<n; j++){
    halflenl += a[j];
    if( halflenl+a[j+1] > barlen/2) break;
  }
  halflenr = halflenl + a[j+1];

  cout << min( (barlen/2-halflenl)*2, (halflenr-barlen/2-1)*2) + odd << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:3: error: 'cin' was not declared in this scope
   12 |   cin >> n;
      |   ^~~
a.cc:2:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    1 | #include <math.h>
  +++ |+#include <iostream>
    2 | using namespace std;
a.cc:24:3: error: 'cout' was not declared in this scope
   24 |   cout << min( (barlen/2-halflenl)*2, (halflenr-barlen/2-1)*2) + odd << endl;
      |   ^~~~
a.cc:24:3: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:24:73: error: 'endl' was not declared in this scope
   24 |   cout << min( (barlen/2-halflenl)*2, (halflenr-barlen/2-1)*2) + odd << endl;
      |                                                                         ^~~~
a.cc:2:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
    1 | #include <math.h>
  +++ |+#include <ostream>
    2 | using namespace std;
Language: C

#include<stdio.h>
main()
{
  int a,b,c,d,e,f,X,Y,sum1,sum2,sum;
  scanf("%d%d",&X,&Y);
  a=(X==3);
  b=(X==2);
  c=(X==1);
  sum1=100000*a+200000*b+300000*c;
  d=(Y==3);
  e=(Y==2);
  f=(Y==1);
  sum2=100000*d+200000*e+300000*f;
  sum=sum1+sum2
  if(sum==600000){
    sum=1000000;
  }
  printf("%d",sum);
}


Compiler output:
main.c:2:1: error: return type defaults to 'int' [-Wimplicit-int]
    2 | main()
      | ^~~~
main.c: In function 'main':
main.c:14:16: error: expected ';' before 'if'
   14 |   sum=sum1+sum2
      |                ^
      |                ;
   15 |   if(sum==600000){
      |   ~~
Language: C

#include<stdio.h>
main()
{
  int a,b,c,d,e,f,X,Y,sum1,sum2;
  scanf("%d%d",&X,&Y);
  a=(X==3);
  b=(X==2);
  c=(X==1);
  sum1=100000*a+200000*b+300000*c;
  d=(Y==3);
  e=(Y==2);
  f=(Y==1);
  sum2=100000*d+200000*e+300000*f;
  if(sum1+sum2==600000){
    sum1+sum2=1000000;
  }
  printf("%d",sum1+sum2);
}


Compiler output:
main.c:2:1: error: return type defaults to 'int' [-Wimplicit-int]
    2 | main()
      | ^~~~
main.c: In function 'main':
main.c:15:14: error: lvalue required as left operand of assignment
   15 |     sum1+sum2=1000000;
      |              ^
Language: C

#include<stdio.h>
main()
{
  int X,Y,sum1,sum2;
  scanf("%d%d",&X,&Y);
  a=(X==3);
  b=(X==2);
  c=(X==1);
  sum1=100000*a+200000*b+300000*c;
  d=(Y==3);
  e=(Y==2);
  f=(Y==1);
  sum2=100000*d+200000*e+300000*f;
  if(sum1+sum2==600000){
    sum1+sum2=1000000;
  }
  printf("%d",sum1+sum2);
}

Compiler output:
main.c:2:1: error: return type defaults to 'int' [-Wimplicit-int]
    2 | main()
      | ^~~~
main.c: In function 'main':
main.c:6:3: error: 'a' undeclared (first use in this function)
    6 |   a=(X==3);
      |   ^
main.c:6:3: note: each undeclared identifier is reported only once for each function it appears in
main.c:7:3: error: 'b' undeclared (first use in this function)
    7 |   b=(X==2);
      |   ^
main.c:8:3: error: 'c' undeclared (first use in this function)
    8 |   c=(X==1);
      |   ^
main.c:10:3: error: 'd' undeclared (first use in this function)
   10 |   d=(Y==3);
      |   ^
main.c:11:3: error: 'e' undeclared (first use in this function)
   11 |   e=(Y==2);
      |   ^
main.c:12:3: error: 'f' undeclared (first use in this function)
   12 |   f=(Y==1);
      |   ^
main.c:15:14: error: lvalue required as left operand of assignment
   15 |     sum1+sum2=1000000;
      |              ^
Language: C++

# assign prize of the 3 places
first = 300000
second = 200000
third = 100000
extra = 400000
no = 0
# get two integers as the competitions
X, Y = map(int, input().split())
# output
if X == 1 and Y == 1:
    {
        print(first + first + extra)
    }
elif X == 1 and Y == 2:
    {
        print(first + second)
    }
elif X == 1 and Y == 3:
    {
        print(first + third)
    }
elif X == 2 and Y == 1:
    {
        print(second + first)
    }
elif X == 2 and Y == 2:
    {
        print(second + second)
    }
elif X == 2 and Y == 3:
    {
        print(second + third)
    }
elif X == 3 and Y == 1:
    {
        print(third + first)
    }
elif X == 3 and Y == 2:
    {
        print(third + second)
    }
elif X == 3 and Y == 3:
    {
        print(third + third)
    }
elif X == 1 and Y > 3:
    {
        print(first + no)
    }
elif X == 2 and Y > 3:
    {
        print(second + no)
    }
elif X == 3 and Y > 3:
    {
        print(third + no)
    }
elif X > 3 and Y == 3:
    {
        print(no + third)
    }
elif X > 3 and Y == 2:
    {
        print(no + second)
    }
elif X > 3 and Y == 1:
    {
        print(no + first)
    }
else:
    {
        print(0 )
    }

Compiler output:
a.cc:1:3: error: invalid preprocessing directive #assign
    1 | # assign prize of the 3 places
      |   ^~~~~~
a.cc:7:3: error: invalid preprocessing directive #get
    7 | # get two integers as the competitions
      |   ^~~
a.cc:9:3: error: invalid preprocessing directive #output
    9 | # output
      |   ^~~~~~
a.cc:2:1: error: 'first' does not name a type
    2 | first = 300000
      | ^~~~~
a.cc:14:1: error: 'elif' does not name a type
   14 | elif X == 1 and Y == 2:
      | ^~~~
a.cc:18:1: error: 'elif' does not name a type
   18 | elif X == 1 and Y == 3:
      | ^~~~
a.cc:22:1: error: 'elif' does not name a type
   22 | elif X == 2 and Y == 1:
      | ^~~~
a.cc:26:1: error: 'elif' does not name a type
   26 | elif X == 2 and Y == 2:
      | ^~~~
a.cc:30:1: error: 'elif' does not name a type
   30 | elif X == 2 and Y == 3:
      | ^~~~
a.cc:34:1: error: 'elif' does not name a type
   34 | elif X == 3 and Y == 1:
      | ^~~~
a.cc:38:1: error: 'elif' does not name a type
   38 | elif X == 3 and Y == 2:
      | ^~~~
a.cc:42:1: error: 'elif' does not name a type
   42 | elif X == 3 and Y == 3:
      | ^~~~
a.cc:46:1: error: 'elif' does not name a type
   46 | elif X == 1 and Y > 3:
      | ^~~~
a.cc:50:1: error: 'elif' does not name a type
   50 | elif X == 2 and Y > 3:
      | ^~~~
a.cc:54:1: error: 'elif' does not name a type
   54 | elif X == 3 and Y > 3:
      | ^~~~
a.cc:58:1: error: 'elif' does not name a type
   58 | elif X > 3 and Y == 3:
      | ^~~~
a.cc:62:1: error: 'elif' does not name a type
   62 | elif X > 3 and Y == 2:
      | ^~~~
a.cc:66:1: error: 'elif' does not name a type
   66 | elif X > 3 and Y == 1:
      | ^~~~
a.cc:70:1: error: expected unqualified-id before 'else'
   70 | else:
      | ^~~~
Language: C++

# assign prize of the 3 places
first = 300000
second = 200000
third = 100000
extra = 400000
no = 0
# get two integers as the competitions
X , Y = map(int, input().split())
# output
if X == 1 and Y == 1:
    {
        print(first + first + extra)
    }
elif X == 1 and Y == 2:
    {
        print(first + second)
    }
elif X == 1 and Y == 3:
    {
        print(first + third)
    }
elif X == 2 and Y == 1:
    {
        print(second + first)
    }
elif X == 2 and Y == 2:
    {
        print(second + second)
    }
elif X == 2 and Y == 3:
    {
        print(second + third)
    }
elif X == 3 and Y == 1:
    {
        print(third + first)
    }
elif X == 3 and Y == 2:
    {
        print(third + second)
    }
elif X == 3 and Y == 3:
    {
        print(third + third)
    }
elif X == 1 and Y > 3:
    {
        print(first + no)
    }
elif X == 2 and Y > 3:
    {
        print(second + no)
    }
elif X == 3 and Y > 3:
    {
        print(third + no)
    }
elif X > 3 and Y == 3:
    {
        print(no + third)
    }
elif X > 3 and Y == 2:
    {
        print(no + second)
    }
elif X > 3 and Y == 1:
    {
        print(no + first)
    }
else:
    {
        print(0 )
    }

Compiler output:
a.cc:1:3: error: invalid preprocessing directive #assign
    1 | # assign prize of the 3 places
      |   ^~~~~~
a.cc:7:3: error: invalid preprocessing directive #get
    7 | # get two integers as the competitions
      |   ^~~
a.cc:9:3: error: invalid preprocessing directive #output
    9 | # output
      |   ^~~~~~
a.cc:2:1: error: 'first' does not name a type
    2 | first = 300000
      | ^~~~~
a.cc:14:1: error: 'elif' does not name a type
   14 | elif X == 1 and Y == 2:
      | ^~~~
a.cc:18:1: error: 'elif' does not name a type
   18 | elif X == 1 and Y == 3:
      | ^~~~
a.cc:22:1: error: 'elif' does not name a type
   22 | elif X == 2 and Y == 1:
      | ^~~~
a.cc:26:1: error: 'elif' does not name a type
   26 | elif X == 2 and Y == 2:
      | ^~~~
a.cc:30:1: error: 'elif' does not name a type
   30 | elif X == 2 and Y == 3:
      | ^~~~
a.cc:34:1: error: 'elif' does not name a type
   34 | elif X == 3 and Y == 1:
      | ^~~~
a.cc:38:1: error: 'elif' does not name a type
   38 | elif X == 3 and Y == 2:
      | ^~~~
a.cc:42:1: error: 'elif' does not name a type
   42 | elif X == 3 and Y == 3:
      | ^~~~
a.cc:46:1: error: 'elif' does not name a type
   46 | elif X == 1 and Y > 3:
      | ^~~~
a.cc:50:1: error: 'elif' does not name a type
   50 | elif X == 2 and Y > 3:
      | ^~~~
a.cc:54:1: error: 'elif' does not name a type
   54 | elif X == 3 and Y > 3:
      | ^~~~
a.cc:58:1: error: 'elif' does not name a type
   58 | elif X > 3 and Y == 3:
      | ^~~~
a.cc:62:1: error: 'elif' does not name a type
   62 | elif X > 3 and Y == 2:
      | ^~~~
a.cc:66:1: error: 'elif' does not name a type
   66 | elif X > 3 and Y == 1:
      | ^~~~
a.cc:70:1: error: expected unqualified-id before 'else'
   70 | else:
      | ^~~~
Language: C++

#include <stdio.h>
#include <iostream>

int main(){
    int x,y,a,b,z;
    cin >> x >> y;
    if(x == 3)
    {
       a = 100000;
    }
    if(x == 2)
    {
       a = 200000;
    }
     if(x == 1)
    {
       a = 300000;
    }
    if(y == 3)
    {
       b = 100000;
    }
    if(y == 2)
    {
       b = 200000;
    }
    if(y == 1)
    {
       b = 300000;
    }
    if(x = y)
    {
       z =400000;
    }
    else{
       a = 0;
       b = 0;
       z =0;
    }
      cout << a + b + z << endl;
      return 0;
    }

Compiler output:
a.cc: In function 'int main()':
a.cc:6:5: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    6 |     cin >> x >> y;
      |     ^~~
      |     std::cin
In file included from a.cc:2:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:40:7: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   40 |       cout << a + b + z << 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:40:28: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   40 |       cout << a + b + z << 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)
      |     ^~~~
Language: C++

#include <iostream>
using namespace std;

int main(){
	int x,y,sum=0;
  cin >> x >> y;
  if(x == 1 && y == 1) sum = 1000000;
  else{
    for(int i=0; i<2; i++){
    	if(x == 1) sum += 300000;
      if(x == 2) sum += 200000;
      if(x == 3) sum += 100000;
      x = y;
    }
  cout << sum;
}


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

//おまじないc++
#include <iostream>
#include<cmath>
#include<vector>
using namespace std;
 
int main() {
int x,y;
  cin>>x>>y;
  int sum=0;
  
  if(x==1){
	sum+=300000;
  }
  
  else if(x==2){
    sum+=200000;
  }
  
  else if(x==3){
    sum+=100000;
  }
  
  if(y==1){
	sum+=300000;
  }
  
  else if(y==2){
    sum+=200000;
  }
  
  else if(y==3){
    sum+=100000;
  }
  
  
  if(x==1&&y==1){
    sum+=400000;
  }
  
  cout<<sum<<endl;
}

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

#include <bits.stdc++.h>
using namespace std;
int main(){
    int x,y,a,b,z;
    cin >> x >> y;
    if(x == 3)
    {
       a = 100000;
    }
    if(x == 2)
    {
       a = 200000;
    }
     if(x == 1)
    {
       a = 300000;
    }
    if(y == 3)
    {
       b = 100000;
    }
    if(y == 2)
    {
       b = 200000;
    }
    if(y == 1)
    {
       b = 300000;
    }
    if(x = y)
    {
       z =400000;
    }
    else{
       a = 0;
       b = 0;
       z =0;
    }
      cout << a + b + z << endl;
      return 0;
    }

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

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  int A;
  int B;
  int money = 0;
  cin >> A >> B;
  if(A == 1){
    if(B == 1){
      money = 1000000;
    }else if(B == 2){
      money = 500000;
    }else if(B == 3){
      money = 400000;
    }else{
      money = 300000;
    }
  }else if(A == 2){
    if(B == 1){
      money = 500000;
    }else if(B == 2){
      money = 400000;
    }else if(B == 3){
      money = 300000;
    }else{
      money = 200000;
    }
  }else if(A == 3){
    if(B == 1){
      money = 400000;
    }else if(B == 2){
      money = 300000;
    }else if(B == 3){
      money = 200000;
    }else{
      money = 100000;
    }
  }else{
    money =0;
  }else if(B == 1){
    if(A == 1){
      money = 1000000;
    }else if(A == 2){
      money = 500000;
    }else if(A == 3){
      money = 400000;
    }else{
      money = 300000;
    }
  }else if(B == 2){
    if(A == 1){
      money = 500000;
    }else if(A == 2){
      money = 400000;
    }else if(A == 3){
      money = 300000;
    }else{
      money = 200000;
    }
  }else if(B == 3){
    if(A == 1){
      money = 400000;
    }else if(A == 2){
      money = 300000;
    }else if(A == 3){
      money = 200000;
    }else{
      money = 100000;
    }
  }else{
    money =0;
  }else{
    money = 0;
  }
  cout << money <<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:41:4: error: 'else' without a previous 'if'
   41 |   }else if(B == 1){
      |    ^~~~
a.cc:73:4: error: 'else' without a previous 'if'
   73 |   }else{
      |    ^~~~
Language: C++

#include <bits.stdc++.h>
using namespace std;
int main(){
    int x,y,a,b,z;
    cin >> x >> y;
    if(x == 3)
    {
       a = 100000;
    }
    if(x == 2)
    {
       a = 200000;
    }
     if(x == 1)
    {
       a = 300000;
    }
    if(y == 3)
    {
       a = 100000;
    }
    if(y == 2)
    {
       a = 200000;
    }
    if(y == 1)
    {
       a = 300000;
    }
    if(x = y)
    {
       z =400000;
    }
    else{
       a = 0;
       b = 0;
       z =0;
    }
      cout << a + b + z << endl;
      return 0;
    }

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

#include <stdio.h>

int main(void){
   int x,y;
   int s1,s2,s3;
  
   scanf("%d%d",&x,&y);
   if(x==1){s1 = 300000}
   else if(x==2){s1 = 200000}
   else if(x==3){s1 = 100000}
   else{s1 == 0}
  
   if(y==1){s2=3000000}
   else if(y==2){s2=200000}
   else if(y==3){s2=100000}
   else{s2=0}
  
   if(x==1&&y==1){s3=400000}
   else{s3=0}
   
   printf("%d",s1+s2+s3);

   return 0;
}


Compiler output:
main.c: In function 'main':
main.c:8:24: error: expected ';' before '}' token
    8 |    if(x==1){s1 = 300000}
      |                        ^
      |                        ;
main.c:9:29: error: expected ';' before '}' token
    9 |    else if(x==2){s1 = 200000}
      |                             ^
      |                             ;
main.c:10:29: error: expected ';' before '}' token
   10 |    else if(x==3){s1 = 100000}
      |                             ^
      |                             ;
main.c:11:16: error: expected ';' before '}' token
   11 |    else{s1 == 0}
      |                ^
      |                ;
main.c:13:23: error: expected ';' before '}' token
   13 |    if(y==1){s2=3000000}
      |                       ^
      |                       ;
main.c:14:27: error: expected ';' before '}' token
   14 |    else if(y==2){s2=200000}
      |                           ^
      |                           ;
main.c:15:27: error: expected ';' before '}' token
   15 |    else if(y==3){s2=100000}
      |                           ^
      |                           ;
main.c:16:13: error: expected ';' before '}' token
   16 |    else{s2=0}
      |             ^
      |             ;
main.c:18:28: error: expected ';' before '}' token
   18 |    if(x==1&&y==1){s3=400000}
      |                            ^
      |                            ;
main.c:19:13: error: expected ';' before '}' token
   19 |    else{s3=0}
      |             ^
      |             ;
Language: C

#include <stdio.h>

int main(void){
   int x,y;
   int s1,s2,s3;
  
   scanf("%d%d",&x,&y);
   if(x==1){s1 = 300000};
   else if(x==2){s1 = 200000};
   else if(x==3){s1 = 100000};
   else{s1 == 0};
  
   if(y==1){s2=3000000};
   else if(y==2){s2=200000};
   else if(y==3){s2=100000};
   else{s2=0};
  
   if(x==1&&x2==1){s3=400000};
   else{s3=0};
   
   printf("%d",s1+s2+s3);

   return 0;
}


Compiler output:
main.c: In function 'main':
main.c:8:24: error: expected ';' before '}' token
    8 |    if(x==1){s1 = 300000};
      |                        ^
      |                        ;
main.c:9:4: error: 'else' without a previous 'if'
    9 |    else if(x==2){s1 = 200000};
      |    ^~~~
main.c:9:29: error: expected ';' before '}' token
    9 |    else if(x==2){s1 = 200000};
      |                             ^
      |                             ;
main.c:10:4: error: 'else' without a previous 'if'
   10 |    else if(x==3){s1 = 100000};
      |    ^~~~
main.c:10:29: error: expected ';' before '}' token
   10 |    else if(x==3){s1 = 100000};
      |                             ^
      |                             ;
main.c:11:4: error: 'else' without a previous 'if'
   11 |    else{s1 == 0};
      |    ^~~~
main.c:11:16: error: expected ';' before '}' token
   11 |    else{s1 == 0};
      |                ^
      |                ;
main.c:13:23: error: expected ';' before '}' token
   13 |    if(y==1){s2=3000000};
      |                       ^
      |                       ;
main.c:14:4: error: 'else' without a previous 'if'
   14 |    else if(y==2){s2=200000};
      |    ^~~~
main.c:14:27: error: expected ';' before '}' token
   14 |    else if(y==2){s2=200000};
      |                           ^
      |                           ;
main.c:15:4: error: 'else' without a previous 'if'
   15 |    else if(y==3){s2=100000};
      |    ^~~~
main.c:15:27: error: expected ';' before '}' token
   15 |    else if(y==3){s2=100000};
      |                           ^
      |                           ;
main.c:16:4: error: 'else' without a previous 'if'
   16 |    else{s2=0};
      |    ^~~~
main.c:16:13: error: expected ';' before '}' token
   16 |    else{s2=0};
      |             ^
      |             ;
main.c:18:13: error: 'x2' undeclared (first use in this function); did you mean 's2'?
   18 |    if(x==1&&x2==1){s3=400000};
      |             ^~
      |             s2
main.c:18:13: note: each undeclared identifier is reported only once for each function it appears in
main.c:18:29: error: expected ';' before '}' token
   18 |    if(x==1&&x2==1){s3=400000};
      |                             ^
      |                             ;
main.c:19:4: error: 'else' without a previous 'if'
   19 |    else{s3=0};
      |    ^~~~
main.c:19:13: error: expected ';' before '}' token
   19 |    else{s3=0};
      |             ^
      |             ;
Language: C++

#include <iostream>

using namespace std;

int main(){
    int X;
    int Y;
    cin >> X >> Y;
    if(X == 1 && Y == 1){
        cout << 1000000 << endl;
    }
    else if(X == 2 && Y == 2){
        cout << 400000<< endl;
    }
    else if(X == 3 && Y == 3){
        cout << 200000 << endl;
    }
    else if(X == 1 && Y == 2){
        cout << 500000 << endl;
    }
    else if(X == 1 && Y == 3){
        cout << 400000 << endl;
    }
    else if(X == 2 && Y == 1){
        cout << 500000 << endl;
    }
    else if(X == 2 && Y == 2){
        cout << 300000 << endl;
    }
    else if(X == 2 && Y == 3){
        cout << 300000 << endl;
    }
    else if(X == 3 && Y == 1){
        cout << 400000 << endl;
    }
    else if(X == 3 && Y == 2){
        cout << 300000 << endl;
    }
    else if(X == 3 && Y == 3){
        cout << 200000 << endl;
    }
    else if(X == 1 && Y =< 4){
        cout << 300000 << endl;
    }
    else if(X == 2 && Y =< 4){
        cout << 200000 << endl;
    }
    else if(X == 3 && Y =< 4){
        cout << 100000 << endl;
    }
    else if(X <= 4 && Y == 1){
        cout << 300000 << endl;
    }
    else if(X <= 4 && Y == 2){
        cout << 200000 << endl;
    }
    else if(X <= 4 && Y 3){
        cout << 100000 << endl;
    }
    else if(){
        cout << << endl;
    }
    else if(){
        cout << << endl;
    }
    else{
        cout << 0 << endl;
    }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:42:26: error: expected primary-expression before '<' token
   42 |     else if(X == 1 && Y =< 4){
      |                          ^
a.cc:45:26: error: expected primary-expression before '<' token
   45 |     else if(X == 2 && Y =< 4){
      |                          ^
a.cc:48:26: error: expected primary-expression before '<' token
   48 |     else if(X == 3 && Y =< 4){
      |                          ^
a.cc:57:24: error: expected ')' before numeric constant
   57 |     else if(X <= 4 && Y 3){
      |            ~           ^~
      |                        )
a.cc:60:13: error: expected primary-expression before ')' token
   60 |     else if(){
      |             ^
a.cc:61:17: error: expected primary-expression before '<<' token
   61 |         cout << << endl;
      |                 ^~
a.cc:63:13: error: expected primary-expression before ')' token
   63 |     else if(){
      |             ^
a.cc:64:17: error: expected primary-expression before '<<' token
   64 |         cout << << endl;
      |                 ^~
Language: C++

#include <bits.stdc++.h>
using namespace std;
int main(){
    int x,y,a,b,z;
    cin >> x >> y;
    if(x == 3)
    {
       a = 100000;
    }
    if(x == 2)
    {
       a = 200000;
    }
     if(x == 1)
    {
       a = 300000;
    }
    if(y == 3)
    {
       a = 100000;
    }
    if(y == 2)
    {
       a = 200000;
    }
    if(y == 1)
    {
       a = 300000;
    }
    if(x = y)
    {
       z =400000;
    else{
       a = 0;
       b = 0;
       z =0;
    }
      cout << a + b + z << endl;
      return 0;
    }

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

#include <bits.stdc++.h>
using namespace std;
int main(){
    int x,y,a,b,z;
    cin >> x >> y;
    if(x == 3)
    {
       a = 100000;
    }
    if(x == 2)
    {
       a = 200000;
    }
     if(x == 1)
    {
       a = 300000;
    }
    if(y == 3)
    {
       a = 100000;
    }
    if(y == 2)
    {
       a = 200000;
    }
    if(y == 1)
    {
       a = 300000;
    }
    if(x = y)
    {
       z =400000;
    else{
       a = 0;
       b = 0;
       z =0;
    }
      cout << "a + b + z" << endl;
      return 0;
    }

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

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

int main() {
    int a, b;
    cin >> a >> b;
    int ans = 0;
    if(a == 1){
        ans += 300000;
    }
    else if(a == 2){
        ans += 200000;
    }
    else if(a == 3){
        ans += 100000;
    }
    if(b == 1){
        ans += 300000;
    }
    else if(b == 2){
        ans += 200000;
    }
    else if(b == 3){
        ans += 100000;
    }
    if(a==1 && b==1){
        ans += 400000;
    }
    cout << ans << endl;
    return 0;
}


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

#include <stdio.h>

int main(void){
   int x,y;
   int s1,s2,s3;
  
   scanf("%d%d",&x,&y);
   if(x==1){s1 = 300000}
   else if(x==2){s1 = 200000}
   else if(x==3){s1 = 100000}
   else{s1 == 0}
  
   if(y==1){s2=3000000}
   else if(y==2){s2=200000}
   else if(y==3){s2=100000}
   else{s2=0}
  
   if(x==1&&x2==1){s3=400000}
   else{s3=0}
   
   printf("%d",s1+s2+s3)

   return 0;
}

Compiler output:
main.c: In function 'main':
main.c:8:24: error: expected ';' before '}' token
    8 |    if(x==1){s1 = 300000}
      |                        ^
      |                        ;
main.c:9:29: error: expected ';' before '}' token
    9 |    else if(x==2){s1 = 200000}
      |                             ^
      |                             ;
main.c:10:29: error: expected ';' before '}' token
   10 |    else if(x==3){s1 = 100000}
      |                             ^
      |                             ;
main.c:11:16: error: expected ';' before '}' token
   11 |    else{s1 == 0}
      |                ^
      |                ;
main.c:13:23: error: expected ';' before '}' token
   13 |    if(y==1){s2=3000000}
      |                       ^
      |                       ;
main.c:14:27: error: expected ';' before '}' token
   14 |    else if(y==2){s2=200000}
      |                           ^
      |                           ;
main.c:15:27: error: expected ';' before '}' token
   15 |    else if(y==3){s2=100000}
      |                           ^
      |                           ;
main.c:16:13: error: expected ';' before '}' token
   16 |    else{s2=0}
      |             ^
      |             ;
main.c:18:13: error: 'x2' undeclared (first use in this function); did you mean 's2'?
   18 |    if(x==1&&x2==1){s3=400000}
      |             ^~
      |             s2
main.c:18:13: note: each undeclared identifier is reported only once for each function it appears in
main.c:18:29: error: expected ';' before '}' token
   18 |    if(x==1&&x2==1){s3=400000}
      |                             ^
      |                             ;
main.c:19:13: error: expected ';' before '}' token
   19 |    else{s3=0}
      |             ^
      |             ;
main.c:21:25: error: expected ';' before 'return'
   21 |    printf("%d",s1+s2+s3)
      |                         ^
      |                         ;
   22 | 
   23 |    return 0;
      |    ~~~~~~
Language: Java

public class Main {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();
		int sum = 0;
		switch(a) {
		case 1:
			sum += 300000;
			break;
		case 2:
			sum += 200000;
			break;
		case 3:
			sum += 100000;
			break;
		}
		switch(b) {
		case 1:
			sum += 300000;
			break;
		case 2:
			sum += 200000;
			break;
		case 3:
			sum += 100000;
			break;
	}
		if(a == 1 && b == 1) {
			sum += 400000;}
      System.out.println(sum);
		}

}

Compiler output:
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
2 errors
Language: C++

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

int main(){
  int X,Y;
  cin >> X >> Y;
  int count = 0;
  if (X == 3 || Y == 3) count += 100000;
  if (X == 3 && Y == 3) count += 200000;
  if (X == 2 || Y == 2) count += 200000;
  if (X == 2 && Y == 2) cout << 400000;
  if (X == 1 || Y == 1) count += 300000;
  if (X == 1 && Y == 1) cout << 1000000 << endl;
   if (!((X == 1 && Y == 1) || (X == 2 && Y == 2) || (X == 3 && Y == 3))cout << count << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:14:73: error: expected ';' before 'cout'
   14 |    if (!((X == 1 && Y == 1) || (X == 2 && Y == 2) || (X == 3 && Y == 3))cout << count << endl;
      |                                                                         ^~~~
      |                                                                         ;
a.cc:15:1: error: expected primary-expression before '}' token
   15 | }
      | ^
a.cc:14:95: error: expected ')' before '}' token
   14 |    if (!((X == 1 && Y == 1) || (X == 2 && Y == 2) || (X == 3 && Y == 3))cout << count << endl;
      |       ~                                                                                       ^
      |                                                                                               )
   15 | }
      | ~                                                                                              
a.cc:15:1: error: expected primary-expression before '}' token
   15 | }
      | ^
Language: C++

#include<cstdio>
#include<iostream>
#include<algorithm>
#include<utility>
#include<vector>
#include<queue>
#include<functional>
#include<map>
#include<set>
#include<cstring>
#include<string>
#include<stack>
#include<math.h>
#include<stdlib.h>
#include<random>
using namespace std;
#define int long long
#define double long double
typedef unsigned long long ulong;
typedef pair<int, int> pii;
typedef pair<int, pii > piii;
typedef pair<double, double> pdd;
typedef pair<int, char> pic;
typedef priority_queue<pii, vector<pii>, greater<pii> > RPQ;
#define mk make_pair
#define INF (1 << 30)
#define INFL (1ll << 61ll)
#define mod 1000000007

int X, Y;

signed main(){
    cin >> X >> Y;
    int ans = 0;
    if(X == 1 && Y == 1){
        ans += 400000;
    }
    if(X == 1){
        ans += 300000;
    }
    if(X == 2){
        ans += 200000;
    }
    if(X == 3){
        ans += 100000;
    }
    if(Y == 1){
        ans += 300000;
    }
    if(Y == 2){
        ans += 200000;
    }
    if(Y == 3){
        ans += 100000;
    }
    cout << ans << endl;

    
    

    return 0;
}

/*

*/

Compiler output:
a.cc:19:28: error: conflicting declaration 'typedef long long unsigned int ulong'
   19 | typedef unsigned long long ulong;
      |                            ^~~~~
In file included from /usr/include/stdlib.h:514,
                 from /usr/include/c++/14/cstdlib:79,
                 from /usr/include/c++/14/ext/string_conversions.h:43,
                 from /usr/include/c++/14/bits/basic_string.h:4154,
                 from /usr/include/c++/14/string:54,
                 from /usr/include/c++/14/bits/locale_classes.h:40,
                 from /usr/include/c++/14/bits/ios_base.h:41,
                 from /usr/include/c++/14/ios:44,
                 from /usr/include/c++/14/ostream:40,
                 from /usr/include/c++/14/iostream:41,
                 from a.cc:2:
/usr/include/x86_64-linux-gnu/sys/types.h:148:27: note: previous declaration as 'typedef long unsigned int ulong'
  148 | typedef unsigned long int ulong;
      |                           ^~~~~
Language: C++

int solution(int X, int Y){
	int sum=0;

	if(X == 3){
		sum += 100000;
	}else if(X == 2){
		sum += 200000;
	}else if(X == 1){
		sum += 300000;
	}else{
	}

	if(Y == 3){
		sum += 100000;
	}else if(Y == 2){
		sum += 200000;
	}else if(Y == 1){
		sum += 300000;
	}else{
	}

	if(X == 1 && Y == 1){
		sum += 400000;
	}

	return sum;
}

Compiler output:
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../x86_64-linux-gnu/Scrt1.o: in function `_start':
(.text+0x17): undefined reference to `main'
collect2: error: ld returned 1 exit status
Language: C++

#include <iostream>

using namespace std;

int amin(){
    int X;
    int Y;
    cin >> X >> Y;
    if(X == 1 && Y == 1){
        cout << 1000000 << endl;
    }
    else if(X == 2 && Y == 2){
        cout << 400000<< endl;
    }
    else if(X == 3 && Y == 3){
        cout << 200000 << endl;
    }
    else if(X == 1 && Y == 2){
        cout << 500000 << endl;
    }
    else if(X == 1 && Y == 3){
        cout << 400000 << endl;
    }
    else if(X == 2 && Y == 1){
        cout << 500000 << endl;
    }
    else if(X == 2 && Y == 2){
        cout << 300000 << endl;
    }
    else if(X == 2 && Y == 3){
        cout << 300000 << endl;
    }
    else if(X == 3 && Y == 1){
        cout << 400000 << endl;
    }
    else if(X == 3 && Y == 2){
        cout << 300000 << endl;
    }
    else if(X == 3 && Y == 3){
        cout << 200000 << endl;
    }
    else{
        cout << 0 << endl;
    }
}


Compiler output:
a.cc: In function 'int amin()':
a.cc:45:1: warning: no return statement in function returning non-void [-Wreturn-type]
   45 | }
      | ^
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../x86_64-linux-gnu/Scrt1.o: in function `_start':
(.text+0x17): undefined reference to `main'
collect2: error: ld returned 1 exit status
Language: C++

int main(){
    
    int x = 0;
    int y = 0;
    int ans = 0;

    scanf("%d", &x);
    scanf("%d", &y);
     
    if(x == 1 && y == 1) ans = 1000000;
    else if(x <= 3){
        if (y <= 3){
            ans += (4 - y) * 100000;
        }
        ans += (4 - x) * 100000;
    }
    printf("%d\n", ans);
    
}

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

#include <iostream>

using namespace std;

int amin(){
    int X;
    int Y;
    cin >> X >> Y;
    if(X == 1 && Y == 1){
        cout << 1000000 << endl;
    }
    else if(X == 2 && Y == 2){
        cout << 400000<< endl;
    }
    else if(X == 3 && Y == 3){
        cout << 200000 << endl;
    }
    else if(X == 1 && Y == 2){
        cout << 500000 << endl;
    }
    else if(X == 1 && Y == 3){
        cout << 400000 << endl;
    }
    else if(X == 2 && Y == 1){
        cout << 500000 << endl;
    }
    else if(X == 2 && Y == 2){
        cout << 300000 << endl;
    }
    else if(X == 2 && Y == 3){
        cout << 300000 << endl;
    }
    else if(X == 3 && Y == 1){
        cout << 400000 << endl;
    }
    else if(X == 3 && Y == 2){
        cout << 300000 << endl;
    }
    else if(X == 3 && Y == 3){
        cout << 200000 << endl;
    }
}

Compiler output:
a.cc: In function 'int amin()':
a.cc:42:1: warning: no return statement in function returning non-void [-Wreturn-type]
   42 | }
      | ^
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../x86_64-linux-gnu/Scrt1.o: in function `_start':
(.text+0x17): undefined reference to `main'
collect2: error: ld returned 1 exit status