Language: C++

      #pragma comment(linker, "/stack:200000000")
        #pragma GCC optimize ("Ofast")
        #pragma GCC target ("sse,sse2,sse3,ssse3,sse4,popcnt,abm,mmx,avx,tune=native")
        #include <iostream>
        #include <iomanip>
        #include <sstream>
        #include <cstring>
        #include <vector>
        #include <deque>
        #include <queue>
        #include <set>
        #include <map>
        #include <valarray>
        #include <iterator>
        #include <functional>
        #include <limits>
        #include <algorithm>
        #include <numeric>
        #include <cmath>
        #include <cassert>
        #include <unordered_map>
        #include <unordered_set>
        #include <stack>
        using namespace std;
        #define IOS ios_base::sync_with_stdio(false);cin.tie(NULL);cout.tie(NULL);
         #define trace(x) cerr << #x << ": " << x << " " << endl;
     
        typedef int64_t ll;
     
        #define endl '\n'
        #define int ll
        ll mod=1e9+7;
        ll mod1=1e9+5;
        ll power(ll a,ll b)
        {
            if(b==0) return 1;
            else if(b%2==0)
                return power((((a%mod)*(a%mod))%mod),b/2)%mod;
            else return ((a%mod)*(power((((a%mod)*(a%mod))%mod),b/2)%mod))%mod;
        }
        int a[301][301];
        int c=0;
        int n,m;
        int init[501][501];

     int32_t main()
        {
        IOS
        #ifndef ONLINE_JUDGE
        freopen("input.txt", "r", stdin);    
        freopen("output.txt", "w", stdout);
        #endif
            

            int x,y;
            cin>>x>>y;
            if(x==1 and y==1)
            {
                cout<<1000000;
                return 0;
            }
            if(x==1 and y==2)
            {
                cout<<500000;
                return 0;
            }
            if(x==1 and y==3)
            {
                cout<<400000;
                return 0;
            }
            if(x==3 and y==1)
            {
                cout<<400000;
                return 0;
            }
            if(x==2 and y==3)
            {
                cout<<300000;
                return 0;
            }
            if(x==3 and y==2)
            {
                cout<<300000;
                return 0;
            }
            if(x==2 and y==1)
            {
                cout<<500000;
                return 0;
            }
            x=min(x,y);
            if(x==1)
            {
                cout<<300000;
                return 0;
            }
            if(x==2)
            {
                cout<<200000;
                return 0;
            }
            if(x==3)
            {
                cout<<100000;
                return 0;
            }
            cout<<0;
        }      #pragma comment(linker, "/stack:200000000")
        #pragma GCC optimize ("Ofast")
        #pragma GCC target ("sse,sse2,sse3,ssse3,sse4,popcnt,abm,mmx,avx,tune=native")
        #include <iostream>
        #include <iomanip>
        #include <sstream>
        #include <cstring>
        #include <vector>
        #include <deque>
        #include <queue>
        #include <set>
        #include <map>
        #include <valarray>
        #include <iterator>
        #include <functional>
        #include <limits>
        #include <algorithm>
        #include <numeric>
        #include <cmath>
        #include <cassert>
        #include <unordered_map>
        #include <unordered_set>
        #include <stack>
        using namespace std;
        #define IOS ios_base::sync_with_stdio(false);cin.tie(NULL);cout.tie(NULL);
         #define trace(x) cerr << #x << ": " << x << " " << endl;
     
        typedef int64_t ll;
     
        #define endl '\n'
        #define int ll
        ll mod=1e9+7;
        ll mod1=1e9+5;
        ll power(ll a,ll b)
        {
            if(b==0) return 1;
            else if(b%2==0)
                return power((((a%mod)*(a%mod))%mod),b/2)%mod;
            else return ((a%mod)*(power((((a%mod)*(a%mod))%mod),b/2)%mod))%mod;
        }
        int a[301][301];
        int c=0;
        int n,m;
        int init[501][501];

     int32_t main()
        {
        IOS
   

            int x,y;
            cin>>x>>y;
            if(x==1 and y==1)
            {
                cout<<1000000;
                return 0;
            }
            if(x==1 and y==2)
            {
                cout<<500000;
                return 0;
            }
            if(x==1 and y==3)
            {
                cout<<400000;
                return 0;
            }
            if(x==3 and y==1)
            {
                cout<<400000;
                return 0;
            }
            if(x==2 and y==3)
            {
                cout<<300000;
                return 0;
            }
            if(x==3 and y==2)
            {
                cout<<300000;
                return 0;
            }
            if(x==2 and y==1)
            {
                cout<<500000;
                return 0;
            }
            x=min(x,y);
            if(x==1)
            {
                cout<<300000;
                return 0;
            }
            if(x==2)
            {
                cout<<200000;
                return 0;
            }
            if(x==3)
            {
                cout<<100000;
                return 0;
            }
            cout<<0;
        }

Compiler output:
a.cc:109:16: error: stray '#' in program
  109 |         }      #pragma comment(linker, "/stack:200000000")
      |                ^
a.cc:109:17: error: 'pragma' does not name a type; did you mean '_Pragma'?
  109 |         }      #pragma comment(linker, "/stack:200000000")
      |                 ^~~~~~
      |                 _Pragma
a.cc:140:12: error: redefinition of 'll mod'
  140 |         ll mod=1e9+7;
      |            ^~~
a.cc:32:12: note: 'll mod' previously defined here
   32 |         ll mod=1e9+7;
      |            ^~~
a.cc:141:12: error: redefinition of 'll mod1'
  141 |         ll mod1=1e9+5;
      |            ^~~~
a.cc:33:12: note: 'll mod1' previously defined here
   33 |         ll mod1=1e9+5;
      |            ^~~~
a.cc:142:12: error: attribute value 'tune=native' was already specified in 'target' attribute
  142 |         ll power(ll a,ll b)
      |            ^~~~~
a.cc:142:12: error: redefinition of 'll power(ll, ll)'
a.cc:34:12: note: 'll power(ll, ll)' previously defined here
   34 |         ll power(ll a,ll b)
      |            ^~~~~
a.cc:149:13: error: redefinition of 'll a [301][301]'
  149 |         int a[301][301];
      |             ^
a.cc:41:13: note: 'll a [301][301]' previously declared here
   41 |         int a[301][301];
      |             ^
a.cc:150:13: error: redefinition of 'll c'
  150 |         int c=0;
      |             ^
a.cc:42:13: note: 'll c' previously defined here
   42 |         int c=0;
      |             ^
a.cc:151:13: error: redefinition of 'll n'
  151 |         int n,m;
      |             ^
a.cc:43:13: note: 'll n' previously declared here
   43 |         int n,m;
      |             ^
a.cc:151:15: error: redefinition of 'll m'
  151 |         int n,m;
      |               ^
a.cc:43:15: note: 'll m' previously declared here
   43 |         int n,m;
      |               ^
a.cc:152:13: error: redefinition of 'll init [501][501]'
  152 |         int init[501][501];
      |             ^~~~
a.cc:44:13: note: 'll init [501][501]' previously declared here
   44 |         int init[501][501];
      |             ^~~~
a.cc:154:14: error: attribute value 'tune=native' was already specified in 'target' attribute
  154 |      int32_t main()
      |              ^~~~
a.cc:154:14: error: redefinition of 'int32_t main()'
a.cc:46:14: note: 'int32_t main()' previously defined here
   46 |      int32_t main()
      |              ^~~~