Language: C++

#include<iostream>
#include<string>
#include<algorithm>
#include<vector>
#include<queue>
#include<map>
#include<math.h>
#include<iomanip>
#include<set>
#include<numeric>
#include<cstring>
#include<cstdio>
#include<functional>
#include<bitset>

#define REP(i, n) for(int i = 0;i < n;i++)
#define REPR(i, n) for(int i = n;i >= 0;i--)
#define FOR(i, m, n) for(int i = m;i < n;i++)
#define FORR(i, m, n) for(int i = m;i >= n;i--)
#define SORT(v, n) sort(v, v+n);
#define VSORT(v) sort(v.begin(), v.end());
#define REVERSE(v,n) reverse(v,v+n);
#define VREVERSE(v) reverse(v.begin(), v.end());
#define ll long long
#define pb(a) push_back(a)
#define m0(x) memset(x,0,sizeof(x))
#define print(x) cout<<x<<endl;
#define pe(x) cout<<x<<" ";
#define lb(v,n) lower_bound(v.begin(), v.end(), n);
#define ub(v,n) upper_bound(v.begin(), v.end(), n);
#define int long long
#define all(x) (x).begin(), (x).end()

using namespace std;

const int MAX = 1010000;
const int MOD = (ll)1000000000 + 7;
const ll INF = 1e17;
const double pi = acos(-1);
const double EPS = 1e-10;

typedef pair<int, int>P;

int dx[4] = { 1,0,-1,0 }, dy[4] = { 0,1,0,-1 };


vector<P>delX, delY;

char maze[101][101];

signed main() {
	int A, B; cin >> A >> B;
	REP(i, 100) {
		REP(j, 100) {
			if (j < 50) {
				maze[i][j] = '#';
			}
			else maze[i][j] = '.';
		}
	}
	A--, B--;
	REP(i, 100) {
		REP(j, 48) {
			if (A == 0)break;
			if (i % 2 == 1 && j % 2 == 1) {
				maze[i][j] = '.';
				A--;
			}
		}
	}
	REP(i, 100) {
		FOR(j, 51, 100) {
			if (B == 0)break;
			if (i % 2 == 1 && j % 2 == 1) {
				maze[i][j] = '#';
				B--;
			}
		}
	}
	pe(100); print(100);
	REP(i, 100) {
		REP(j, 100) {
			cout << maze[i][j];
		}
		cout << endl;
	}
}	
#include<iostream>
#include<string>
#include<algorithm>
#include<vector>
#include<queue>
#include<map>
#include<math.h>
#include<iomanip>
#include<set>
#include<numeric>
#include<cstring>
#include<cstdio>
#include<functional>
#include<bitset>

#define REP(i, n) for(int i = 0;i < n;i++)
#define REPR(i, n) for(int i = n;i >= 0;i--)
#define FOR(i, m, n) for(int i = m;i < n;i++)
#define FORR(i, m, n) for(int i = m;i >= n;i--)
#define SORT(v, n) sort(v, v+n);
#define VSORT(v) sort(v.begin(), v.end());
#define REVERSE(v,n) reverse(v,v+n);
#define VREVERSE(v) reverse(v.begin(), v.end());
#define ll long long
#define pb(a) push_back(a)
#define m0(x) memset(x,0,sizeof(x))
#define print(x) cout<<x<<endl;
#define pe(x) cout<<x<<" ";
#define lb(v,n) lower_bound(v.begin(), v.end(), n);
#define ub(v,n) upper_bound(v.begin(), v.end(), n);
#define int long long
#define all(x) (x).begin(), (x).end()

using namespace std;

const int MAX = 1010000;
const int MOD = (ll)1000000000 + 7;
const ll INF = 1e17;
const double pi = acos(-1);
const double EPS = 1e-10;

typedef pair<int, int>P;

int dx[4] = { 1,0,-1,0 }, dy[4] = { 0,1,0,-1 };


vector<P>delX, delY;

char maze[101][101];

signed main() {
	int A, B; cin >> A >> B;
	REP(i, 100) {
		REP(j, 100) {
			if (j < 50) {
				maze[i][j] = '#';
			}
			else maze[i][j] = '.';
		}
	}
	A--, B--;
	REP(i, 100) {
		REP(j, 48) {
			if (A == 0)break;
			if (i % 2 == 1 && j % 2 == 1) {
				maze[i][j] = '.';
				A--;
			}
		}
	}
	REP(i, 100) {
		FOR(j, 51, 100) {
			if (B == 0)break;
			if (i % 2 == 1 && j % 2 == 1) {
				maze[i][j] = '#';
				B--;
			}
		}
	}
	pe(100); print(100);
	REP(i, 100) {
		REP(j, 100) {
			cout << maze[i][j];
		}
		cout << endl;
	}
}	


Compiler output:
a.cc:123:11: error: redefinition of 'const long long int MAX'
  123 | const int MAX = 1010000;
      |           ^~~
a.cc:36:11: note: 'const long long int MAX' previously defined here
   36 | const int MAX = 1010000;
      |           ^~~
a.cc:124:11: error: redefinition of 'const long long int MOD'
  124 | const int MOD = (ll)1000000000 + 7;
      |           ^~~
a.cc:37:11: note: 'const long long int MOD' previously defined here
   37 | const int MOD = (ll)1000000000 + 7;
      |           ^~~
a.cc:125:10: error: redefinition of 'const long long int INF'
  125 | const ll INF = 1e17;
      |          ^~~
a.cc:38:10: note: 'const long long int INF' previously defined here
   38 | const ll INF = 1e17;
      |          ^~~
a.cc:126:14: error: redefinition of 'const double pi'
  126 | const double pi = acos(-1);
      |              ^~
a.cc:39:14: note: 'const double pi' previously defined here
   39 | const double pi = acos(-1);
      |              ^~
a.cc:127:14: error: redefinition of 'const double EPS'
  127 | const double EPS = 1e-10;
      |              ^~~
a.cc:40:14: note: 'const double EPS' previously defined here
   40 | const double EPS = 1e-10;
      |              ^~~
a.cc:131:5: error: redefinition of 'long long int dx [4]'
  131 | int dx[4] = { 1,0,-1,0 }, dy[4] = { 0,1,0,-1 };
      |     ^~
a.cc:44:5: note: 'long long int dx [4]' previously defined here
   44 | int dx[4] = { 1,0,-1,0 }, dy[4] = { 0,1,0,-1 };
      |     ^~
a.cc:131:27: error: redefinition of 'long long int dy [4]'
  131 | int dx[4] = { 1,0,-1,0 }, dy[4] = { 0,1,0,-1 };
      |                           ^~
a.cc:44:27: note: 'long long int dy [4]' previously defined here
   44 | int dx[4] = { 1,0,-1,0 }, dy[4] = { 0,1,0,-1 };
      |                           ^~
a.cc:134:10: error: redefinition of 'std::vector<std::pair<long long int, long long int> > delX'
  134 | vector<P>delX, delY;
      |          ^~~~
a.cc:47:10: note: 'std::vector<std::pair<long long int, long long int> > delX' previously declared here
   47 | vector<P>delX, delY;
      |          ^~~~
a.cc:134:16: error: redefinition of 'std::vector<std::pair<long long int, long long int> > delY'
  134 | vector<P>delX, delY;
      |                ^~~~
a.cc:47:16: note: 'std::vector<std::pair<long long int, long long int> > delY' previously declared here
   47 | vector<P>delX, delY;
      |                ^~~~
a.cc:136:6: error: redefinition of 'char maze [101][101]'
  136 | char maze[101][101];
      |      ^~~~
a.cc:49:6: note: 'char maze [101][101]' previously declared here
   49 | char maze[101][101];
      |      ^~~~
a.cc:138:8: error: redefinition of 'int main()'
  138 | signed main() {
      |        ^~~~
a.cc:51:8: note: 'int main()' previously defined here
   51 | signed main() {
      |        ^~~~