Language: C++

#include<bits/stdc++.h>
#define a11111111 using namespace std;
#define a11111112 int n,m,s,a[1000][1000],used[1000][1001],p[1000];
#define a11111113 int main(){
#define a11111114 cin>>n>>m>>s;
#define a11111115 map<int,int> mp;
#define a11111116 int sm=0;
#define a11111117 for(int k=1;k<=n;k++)
#define a11111118 for(int i=1;i<=m;i++){
#define a11111119 a[k][i]=0;
#define a11111120 char ch;
#define a11111121 cin>>ch;
#define a11111122 if(ch=='#'){
#define a11111123 p[k]++;
#define a11111124 sm++;
#define a11111125 a[k][i]=1;
#define a11111126 }
#define a11111128 int u=1;
#define a11111129 for(int k=1;k<=n;k++){
#define a11111130 int t=0;
#define a11111132 if(a[k][i]==1){
#define a11111133 t++;
#define a11111134 if(mp[u]==1){
#define a11111135 u++;
#define a11111136 mp[u]++;
#define a11111138 else{
#define a11111142 used[k][i]=u;
#define a11111144 if(t!=0)
#define a11111148 int j=k;
#define a11111149 while(j<n){
#define a11111150 if(p[j]!=0)
#define a11111151 break;
#define a11111152 else j++;
#define a11111154 if(p[j]==0){
#define a11111155 while(j>0){
#define a11111158 else j--;
#define a11111161 for(int i=1;i<=m;i++)
#define a11111162 cout<<used[j][i]<<' ';
#define a11111163 cout<<endl;
#define a11111165 return 0;
a11111111
a11111112
a11111113
a11111114
a11111115
a11111116
a11111117
a11111118
a11111119
a11111120
a11111121
a11111122
a11111123
a11111124
a11111125
a11111126
a11111126
a11111128
a11111129
a11111130
a11111118
a11111132
a11111133
a11111134
a11111135
a11111136
a11111126
a11111138
a11111136
a11111126
a11111126
a11111142
a11111126
a11111144
a11111135
a11111126
a11111129
a11111148
a11111149
a11111150
a11111151
a11111152
a11111126
a11111154
a11111155
a11111150
a11111151
a11111158
a11111126
a11111126
a11111161
a11111162
a11111163
a11111126
a11111165
a11111126
a11111142
a11111126
a11111144
a11111135
a11111126
a11111129
a11111148
a11111149
a11111150
a11111151
a11111152
a11111126
a11111154
a11111155
a11111150
a11111151
a11111158
a11111126
a11111126
a11111161
a11111162
a11111163
a11111126
a11111165
a11111126


Compiler output:
a.cc:27:19: error: 'used' does not name a type
   27 | #define a11111142 used[k][i]=u;
      |                   ^~~~
a.cc:97:1: note: in expansion of macro 'a11111142'
   97 | a11111142
      | ^~~~~~~~~
a.cc:17:19: error: expected declaration before '}' token
   17 | #define a11111126 }
      |                   ^
a.cc:98:1: note: in expansion of macro 'a11111126'
   98 | a11111126
      | ^~~~~~~~~
a.cc:28:19: error: expected unqualified-id before 'if'
   28 | #define a11111144 if(t!=0)
      |                   ^~
a.cc:99:1: note: in expansion of macro 'a11111144'
   99 | a11111144
      | ^~~~~~~~~
a.cc:17:19: error: expected declaration before '}' token
   17 | #define a11111126 }
      |                   ^
a.cc:101:1: note: in expansion of macro 'a11111126'
  101 | a11111126
      | ^~~~~~~~~
a.cc:19:19: error: expected unqualified-id before 'for'
   19 | #define a11111129 for(int k=1;k<=n;k++){
      |                   ^~~
a.cc:102:1: note: in expansion of macro 'a11111129'
  102 | a11111129
      | ^~~~~~~~~
a.cc:19:31: error: 'k' does not name a type
   19 | #define a11111129 for(int k=1;k<=n;k++){
      |                               ^
a.cc:102:1: note: in expansion of macro 'a11111129'
  102 | a11111129
      | ^~~~~~~~~
a.cc:19:36: error: 'k' does not name a type
   19 | #define a11111129 for(int k=1;k<=n;k++){
      |                                    ^
a.cc:102:1: note: in expansion of macro 'a11111129'
  102 | a11111129
      | ^~~~~~~~~
a.cc:40:19: error: expected unqualified-id before 'return'
   40 | #define a11111165 return 0;
      |                   ^~~~~~
a.cc:120:1: note: in expansion of macro 'a11111165'
  120 | a11111165
      | ^~~~~~~~~
a.cc:17:19: error: expected declaration before '}' token
   17 | #define a11111126 }
      |                   ^
a.cc:121:1: note: in expansion of macro 'a11111126'
  121 | a11111126
      | ^~~~~~~~~