Language: C++


int main () {
	ios::sync_with_stdio(0);
	cin.tie(0);

	int X,Y;
	cin >> X >> Y;

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


Compiler output:
a.cc: In function 'int main()':
a.cc:3:9: error: 'ios' has not been declared
    3 |         ios::sync_with_stdio(0);
      |         ^~~
a.cc:4:9: error: 'cin' was not declared in this scope
    4 |         cin.tie(0);
      |         ^~~
a.cc:10:17: error: 'cout' was not declared in this scope
   10 |                 cout << 1000000 << endl;
      |                 ^~~~
a.cc:10:36: error: 'endl' was not declared in this scope
   10 |                 cout << 1000000 << endl;
      |                                    ^~~~
a.cc:12:17: error: 'cout' was not declared in this scope
   12 |                 cout << 500000 << endl;
      |                 ^~~~
a.cc:12:35: error: 'endl' was not declared in this scope
   12 |                 cout << 500000 << endl;
      |                                   ^~~~
a.cc:14:17: error: 'cout' was not declared in this scope
   14 |                 cout << 500000 << endl;
      |                 ^~~~
a.cc:14:35: error: 'endl' was not declared in this scope
   14 |                 cout << 500000 << endl;
      |                                   ^~~~
a.cc:16:17: error: 'cout' was not declared in this scope
   16 |                 cout << 300000 << endl;
      |                 ^~~~
a.cc:16:35: error: 'endl' was not declared in this scope
   16 |                 cout << 300000 << endl;
      |                                   ^~~~
a.cc:18:17: error: 'cout' was not declared in this scope
   18 |                 cout << 300000 << endl;
      |                 ^~~~
a.cc:18:35: error: 'endl' was not declared in this scope
   18 |                 cout << 300000 << endl;
      |                                   ^~~~
a.cc:20:17: error: 'cout' was not declared in this scope
   20 |                 cout << 400000 << endl;
      |                 ^~~~
a.cc:20:35: error: 'endl' was not declared in this scope
   20 |                 cout << 400000 << endl;
      |                                   ^~~~
a.cc:22:17: error: 'cout' was not declared in this scope
   22 |                 cout << 200000 << endl;
      |                 ^~~~
a.cc:22:35: error: 'endl' was not declared in this scope
   22 |                 cout << 200000 << endl;
      |                                   ^~~~
a.cc:24:17: error: 'cout' was not declared in this scope
   24 |                 cout << 300000 << endl;
      |                 ^~~~
a.cc:24:35: error: 'endl' was not declared in this scope
   24 |                 cout << 300000 << endl;
      |                                   ^~~~
a.cc:26:17: error: 'cout' was not declared in this scope
   26 |                 cout << 300000 << endl;
      |                 ^~~~
a.cc:26:35: error: 'endl' was not declared in this scope
   26 |                 cout << 300000 << endl;
      |                                   ^~~~
a.cc:28:17: error: 'cout' was not declared in this scope
   28 |                 cout << 200000 << endl;
      |                 ^~~~
a.cc:28:35: error: 'endl' was not declared in this scope
   28 |                 cout << 200000 << endl;
      |                                   ^~~~
a.cc:30:17: error: 'cout' was not declared in this scope
   30 |                 cout << 200000 << endl;
      |                 ^~~~
a.cc:30:35: error: 'endl' was not declared in this scope
   30 |                 cout << 200000 << endl;
      |                                   ^~~~
a.cc:32:17: error: 'cout' was not declared in this scope
   32 |                 cout << 100000 << endl;
      |                 ^~~~
a.cc:32:35: error: 'endl' was not declared in this scope
   32 |                 cout << 100000 << endl;
      |                                   ^~~~
a.cc:34:17: error: 'cout' was not declared in this scope
   34 |                 cout << 100000 << endl;
      |                 ^~~~
a.cc:34:35: error: 'endl' was not declared in this scope
   34 |                 cout << 100000 << endl;
      |                                   ^~~~
a.cc:36:17: error: 'cout' was not declared in this scope
   36 |                 cout << 0 << endl;
      |                 ^~~~
a.cc:36:30: error: 'endl' was not declared in this scope
   36 |                 cout << 0 << endl;
      |                              ^~~~