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

#include <bits/stdc++.h>

using namespace std;

int main(){
  int h, w, k;
  int black = 0, count = 0;
  //int row_black[6] = {0}, cal_black[6] = {0};
  char mat[6][6];
  
  cin >> h >> w >> k;
  for(int i = 0; i < h; i++){
    for(int j = 0; j < w; j++){
		cin >> mat[i][j];
      	if(mat[i][j] == '#'){
          black++;
          row_black[i]++;
          cal_black[j]++;
        }
    }
  }
  
  if(black == k){
    cout << 1 << endl;
    return 0;
  }
  
  for(int i = 0; i < h; i++){
    int erase = 0;
    for(int t = i; t < h; t++){
      erase += row_black[i];
      if(black - k == erase)
        count++;
    }
  }
  
  for(int j = 0; i < w; j++){
    int erase = 0;
    for(int t = j; t < w; t++){
      erase += cal_black[j];
      if(black - k == erase)
        count++;
    }
  }
      
  for(int i = 0; i < h; i++){
    int erase = 0;
    for(int j = 0; j < w; j++){
  
  
 return 0; 
}


Compiler output:
a.cc: In function 'int main()':
a.cc:17:11: error: 'row_black' was not declared in this scope
   17 |           row_black[i]++;
      |           ^~~~~~~~~
a.cc:18:11: error: 'cal_black' was not declared in this scope
   18 |           cal_black[j]++;
      |           ^~~~~~~~~
a.cc:31:16: error: 'row_black' was not declared in this scope
   31 |       erase += row_black[i];
      |                ^~~~~~~~~
a.cc:37:18: error: 'i' was not declared in this scope
   37 |   for(int j = 0; i < w; j++){
      |                  ^
a.cc:40:16: error: 'cal_black' was not declared in this scope
   40 |       erase += cal_black[j];
      |                ^~~~~~~~~
a.cc:52:2: error: expected '}' at end of input
   52 | }
      |  ^
a.cc:46:29: note: to match this '{'
   46 |   for(int i = 0; i < h; i++){
      |                             ^
a.cc:52:2: error: expected '}' at end of input
   52 | }
      |  ^
a.cc:5:11: note: to match this '{'
    5 | int main(){
      |           ^
Language: C++

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

int h = 0, w = 0, k = 0, ans = 0; 
char c[6][6];
char X[6] = {0};
char Y[6] = {0};

int func_w(int i, int j, int ans, char x[][], char y[][]){
    if(j > w){
        int cnt = 0;
        for(int m = 0; m <= h; m++){
            for(int n = 0; n <= w; n++){
                if(c[m][n] == '#'){
                    cnt++;
                }
            }
        }
        if(cnt == k){
            ans++;
        }        

        return ans;
    }else{
        func_h(i, j, ans, x, y);
        x[j]++;
        func_h(i, j, ans, x, y);
        j++;
    }

}

int func_h(int i, int j, int ans, char x[][], char y[][]){
    if(i > h){
        ans = func_w(i, j, ans, x, y);
        return ans;
    }else{
        func_h(i, j, ans, x, y);
        x[i]++;
        func_h(i, j, ans, x, y);
        i++;
    }

}

int main(void){

    scanf("%d%d%d", &h, &w, &k);
    for(int i = 1; i <= h; i++){
        for(int j = 1; j <= w; j++){
            scanf("%c", &c[i][j]);
        }
    }

    ans = func_h(0, 0, 0, X, Y);

    printf("%d\n", ans);

    return 0;

} 


Compiler output:
a.cc:10:40: error: declaration of 'x' as multidimensional array must have bounds for all dimensions except the first
   10 | int func_w(int i, int j, int ans, char x[][], char y[][]){
      |                                        ^
a.cc:10:45: error: expected ')' before ',' token
   10 | int func_w(int i, int j, int ans, char x[][], char y[][]){
      |           ~                                 ^
      |                                             )
a.cc:10:47: error: expected unqualified-id before 'char'
   10 | int func_w(int i, int j, int ans, char x[][], char y[][]){
      |                                               ^~~~
a.cc:34:40: error: declaration of 'x' as multidimensional array must have bounds for all dimensions except the first
   34 | int func_h(int i, int j, int ans, char x[][], char y[][]){
      |                                        ^
a.cc:34:45: error: expected ')' before ',' token
   34 | int func_h(int i, int j, int ans, char x[][], char y[][]){
      |           ~                                 ^
      |                                             )
a.cc:34:47: error: expected unqualified-id before 'char'
   34 | int func_h(int i, int j, int ans, char x[][], char y[][]){
      |                                               ^~~~
Language: C

#include <stdio.h>

#define H 7
#define W 7

int a[H][W]={0};
char str[H][W];
int ans=0;
int dans=0;


int solve(int h, int w, int k){
    //int ans=0;
    int total;
    
    for(int i=0; i<(1<<n); i++){
        total=0;

    for(int j=0; j<n; j++){

     if( ((i>>j) & 1) == 1 ) {
      
      for(int i2=0; i2<n; i2++){
      //for(int j2=0; j2<n; j2++){
      
      if( i2==j ) a[i][i2]==0; //total+=a[i2][j];
      
      
      //}
      }
         for(int i2=0; i2<n; i2++) for(int i3=0; i3<n; i3++) if( a[i2][i3] ) total++;
         
         
     }
   
    //if( k<total ) continue;

                    }

                        }



    
}


int main(void){
    // Your code here!
int n;
int h,w,k;

scanf("%d %d %d",&h,&w,&k);

for(int i=0; i<h; i++) scanf("%s",str[i]);

for(int i=0; i<h; i++) for(int j=0; j<w; j++) if( str[i][j]=='#' ) a[i][j]=1;

for(int i=0; i<h; i++) for(int j=0; j<w; j++) dans[i][j]=a[i][j];




return 0;    
}


Compiler output:
main.c: In function 'solve':
main.c:16:24: error: 'n' undeclared (first use in this function)
   16 |     for(int i=0; i<(1<<n); i++){
      |                        ^
main.c:16:24: note: each undeclared identifier is reported only once for each function it appears in
main.c: In function 'main':
main.c:59:51: error: subscripted value is neither array nor pointer nor vector
   59 | for(int i=0; i<h; i++) for(int j=0; j<w; j++) dans[i][j]=a[i][j];
      |                                                   ^
Language: C

#include<stdio.h>

void H_and_V_i(char &c, int H, int W, int K, int count, int a) {
    int i, j, k = 0;
    for(i = 0;i < H;i++) {
        for(j = 0;j < W;j++) {
            if(i != a) {
                if(c[i][j] == '#') {
                    k++;
                    }               
                }
            }
        }
    if(k == K) {
        count++;
    }
}

void H_and_V_j(char &c, int H, int W, int K, int count, int b) {
    int i, j, k = 0;
    for(i = 0;i < H;i++) {
        for(j = 0;j < W;j++) {
            if(j != b) {
                if(c[i][j] == '#') {
                    k++;
                    }               
                }
            }
        }
    if(k == K) {
        count++;
    }
}

void H_and_V_ij(char &c, int H, int W, int K, int count, int a, int b) {
    int i, j, k = 0;
    for(i = 0;i < H;i++) {
        for(j = 0;j < W;j++) {
            if(i != 0 || j != 0) {
                if(c[i][j] == '#') {
                    k++;
                    }               
                }
            }
        }
    if(k == K) {
        count++;
    }
}

int main() {
    int i, j, H, W, K, k = 0, count = 0;
    scanf("%d %d %d", &H, &W, &K);
    char c[H][W];
    for(i = 0;i < H;i++) {
        for(j = 0;j < W;j++) {
            scanf("%c", &c[i][j]);
            }
        }

    for(i = 0;i < H;i++) {
           H_and_V_i(*c, H, W, K, count, i);
        for(j = 0;j < W;j++) {
            H_and_V_ij(*c, H, W, K, count, i, j);
            }
           H_and_V_j(*c, H, W, K, count, j);
        }

    printf("%d\n", count);
    return 0;
}

Compiler output:
main.c:3:21: error: expected ';', ',' or ')' before '&' token
    3 | void H_and_V_i(char &c, int H, int W, int K, int count, int a) {
      |                     ^
main.c:19:21: error: expected ';', ',' or ')' before '&' token
   19 | void H_and_V_j(char &c, int H, int W, int K, int count, int b) {
      |                     ^
main.c:35:22: error: expected ';', ',' or ')' before '&' token
   35 | void H_and_V_ij(char &c, int H, int W, int K, int count, int a, int b) {
      |                      ^
main.c: In function 'main':
main.c:62:12: error: implicit declaration of function 'H_and_V_i' [-Wimplicit-function-declaration]
   62 |            H_and_V_i(*c, H, W, K, count, i);
      |            ^~~~~~~~~
main.c:64:13: error: implicit declaration of function 'H_and_V_ij' [-Wimplicit-function-declaration]
   64 |             H_and_V_ij(*c, H, W, K, count, i, j);
      |             ^~~~~~~~~~
main.c:66:12: error: implicit declaration of function 'H_and_V_j' [-Wimplicit-function-declaration]
   66 |            H_and_V_j(*c, H, W, K, count, j);
      |            ^~~~~~~~~
Language: C++

#include<iostream>
#include<vector>
using namespace std;
int main(){
  int H,W,K;
  cin>>H>>W>>K;
  int C[H][W];
  int row[H]={};
  int col[W]={};
  int sum=0;
  int r=0;
  for(int i=0;i<H;++i){
    for(int j=0;j<W;++j){
      char c;
      cin>>c;
      if(c=='.')C[i][j]=0;
      else if(c=='#'){
	C[i][j]=1;
	row[r]++;
	sum++;
      }
      
    }
    r++;
  }

  r=0;
  //列
  for(int i=0;i<W;i++){
    for(int j=0;j<H;j++){
      if(C[j][i]==1)col[r]++;
    }
    r++;
  }
  
  // cout<<col[0]<<endl;
  
  int count_row=0,count_col=0;
  int count_w=0;
  
  for(int i=0;i<H;i++){
    if((sum-row[i])==K)count_row++;
  }
  for(int i=0;i<W;i++){
    if((sum-col[i])==K)count_col++;
  }

  for(int i=0;i<H;i++){
    for(int j=0;j<W;j++){
      if((sum-row[i]-col[j])==K)count_w++;
    }
  }
  for(int i=0;i<W;i++){
    for(int j=0;j<H;j++){
      if((sum-row[i]-col[j])==K)count_w++;
    }
  }
  int count=count_row+count_col+count_w;
  if(sum==K&&count_col
  cout<<count<<endl;
  
  return 0;
  
}

Compiler output:
a.cc: In function 'int main()':
a.cc:59:23: error: expected ';' before 'cout'
   59 |   if(sum==K&&count_col
      |                       ^
      |                       ;
   60 |   cout<<count<<endl;
      |   ~~~~                 
a.cc:62:3: error: expected primary-expression before 'return'
   62 |   return 0;
      |   ^~~~~~
a.cc:60:21: error: expected ')' before 'return'
   60 |   cout<<count<<endl;
      |                     ^
      |                     )
   61 | 
   62 |   return 0;
      |   ~~~~~~             
a.cc:59:5: note: to match this '('
   59 |   if(sum==K&&count_col
      |     ^
Language: C++

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

int main() {
    ios::sync_with_stdio(0);
    cin.tie(0);
    int row,column,k;
    cin>>row>>column>>k;
    char arr[row][column];
    for(int i=0;i<row;i++)
    {
        for(int j=0;j<column;j++)
        {
            cin>>arr[i][j];
        }
    }
    int maxi=0;
    for(int i=0;i<row;i++)
    {   
        int count=0
        for(int rowless=0;rowless<row;rowless++)
        {
            if (rowless==i)
            {
                continue;
            }
            else
            {
                for(int ki=0;ki<column;ki++)
                {
                    if(arr[rowless][ki]=='#')
                    {
                        count++;
                    }
                }
            }
        }
        if(count==k)
        {
            maxi++;
        }
    }
    for(int i=0;i<column;i++)
    {   
        int count=0
        for(int colless=0;colless<column;colless++)
        {
            if (colless==i)
            {
                continue;
            }
            else
            {
                for(int ki=0;ki<row;ki++)
                {
                    if(arr[ki][colless]=='#')
                    {
                        count++;
                    }
                }
            }
        }
        if(count==k)
        {
            maxi++;
        }
    }
    for(int i=0;i<row;i++)
    {
        for(int j=0;j<column;j++)
        {
            int count=0;
            for(int rowless=0;rowless<row;rowless++)
            {
                
            
             for(int colless=0;colless<column;colless++)
        {
            if (colless==i && rowless==j)
            {
                continue;
            }
            else
            {   
                for(int kj=0;kj<column;kj++)
                {
                for(int ki=0;ki<row;ki++)
                {
                    if(arr[ki][kj]=='#')
                    {
                        count++;
                    }
                }
                }
            }
        }
        if(count==k)
        {
            maxi++;
        }
            
        }
        }
    }
    cout<<maxi<<endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:21:9: error: expected ',' or ';' before 'for'
   21 |         for(int rowless=0;rowless<row;rowless++)
      |         ^~~
a.cc:21:27: error: 'rowless' was not declared in this scope
   21 |         for(int rowless=0;rowless<row;rowless++)
      |                           ^~~~~~~
a.cc:46:9: error: expected ',' or ';' before 'for'
   46 |         for(int colless=0;colless<column;colless++)
      |         ^~~
a.cc:46:27: error: 'colless' was not declared in this scope; did you mean 'class'?
   46 |         for(int colless=0;colless<column;colless++)
      |                           ^~~~~~~
      |                           class
Language: C++

#include<bits/stdc++.h>
#include<cstring>
#include<cmath>
#include<iterator>
#include<cstdlib>
#define IOS   ios::sync_with_stdio(0); cin.tie(0); cout.tie(0);
#define ses   "\n"
#define whp   " "
#define mxi 99999

#define mp make_pair
#define PII pair<int, int>
#define pf printf
#define sf scanf
#define ALL(x) x.begin(),x.end()
#define pb push_back
#define PI acos(-1)
#define sz(a) long long(a.size())
#define ff first
#define ss second
#define forch(it,s) for(auto it:s)
#define each(it,s) for(auto it = s.begin(); it != s.end(); ++it)

#define rep0(i,a,b) for(int i=a; i<b; i++)
#define rep1(i,a,b) for(int i=a; i<=b; i++)
#define rep0in(i,a,b) for(int i=a-1; i>=b; i--)
#define rep1in(i,a,b) for(int i=a; i>b; i--)
#define repv(i,a) for(auto i=a.begin(); i!=a.end();++i)

#define MS(a,b) memset(a,b,sizeof(a));

typedef long long ll;
typedef unsigned long long ull;
using namespace std;
ll fx[4]= {1,-1,0,0};
ll fy[4]= {0,0,1,-1};

typedef vector<ll> vll;
typedef vector<string> vss;
typedef vector<pair<ll,ll > > vpr;
typedef vector<pair<string,ll > > vspr;
typedef list<ll> li;
typedef list<string> ls;
typedef list<pair<ll,ll> > lpr;
typedef list<pair<string,ll> > lspr;


bool rs(ll a, ll b){return(a>b);}
int main()
{

 ll h,w,k;cin>>h>>w>>k;
 ll co=0;
    for(ll i=0; i<h; i++){
        for(ll j=0; j<w; j++){
            char c; cin>>c;
            if(c=='#')co++;
        }
    }
    if(c0==(h*w))cout<<0<<endl;
    else
    cout<<(h*w)-1<<endl;


return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:60:8: error: 'c0' was not declared in this scope; did you mean 'co'?
   60 |     if(c0==(h*w))cout<<0<<endl;
      |        ^~
      |        co
Language: C++

    #include <iostream>
    using namespace std;
     
    int main() {
    	int H,W,K,count=0,temp,pos=0;
    	cin>>H>>W>>K;
    	char arr[H][W];
    	for(int i=0;i<H;i++){
    	    for(int j=0;j<W;j++){
    	        cin>>arr[i][j];
    	        if(arr[i][j]=='#')
    	                count++;
    	    }
    	}
    	
    	
    	
    	for(int i=0;i<H;i++){
    	    for(int j=0;j<W;j++){
    	        temp=count;
                for(int k=0;k<W;k++){
                    if(arr[i][k]=='#')
                        temp--
                            
                }
                
                for(int k=0;k<H;k++){
                    if(arr[k][j]=='#')
                        temp--
                            
                }
                
                if(temp==k)
                    pos++;
    	    }
    	}
    	
        
    	return 0;
    }

Compiler output:
a.cc: In function 'int main()':
a.cc:23:31: error: expected ';' before '}' token
   23 |                         temp--
      |                               ^
      |                               ;
   24 | 
   25 |                 }
      |                 ~              
a.cc:29:31: error: expected ';' before '}' token
   29 |                         temp--
      |                               ^
      |                               ;
   30 | 
   31 |                 }
      |                 ~              
a.cc:33:26: error: 'k' was not declared in this scope
   33 |                 if(temp==k)
      |                          ^
Language: C++


#include <bits/stdc++.h>
using namespace std;
	int main(){
	int h, w, k;
	vector<vector<char>> c(h,vector<char>(w));

	for(int i = 0; i < h ; i++){
		for(int j = 0; j < w; j++){
		cin >> c.at(i).at(j);
		}
	}

	for(int )
	}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:17: error: expected unqualified-id before ')' token
   14 |         for(int )
      |                 ^
a.cc:14:16: error: expected ';' before ')' token
   14 |         for(int )
      |                ^~
      |                ;
a.cc:14:17: error: expected primary-expression before ')' token
   14 |         for(int )
      |                 ^
a.cc:14:16: error: expected ';' before ')' token
   14 |         for(int )
      |                ^~
      |                ;
a.cc:15:9: error: expected primary-expression before '}' token
   15 |         }
      |         ^
Language: C++

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

#include <vector>
#include <cctype>
#include <cstring>
#include <algorithm>
#include <cmath>
#include <string>

#include <climits>

using namespace std;


int main(){
	int h, k, w;
	cin >> h >> w >> k;

	vector<vector<char> > arr(h, vector<char>(w));

	for (int i = 0; i < h; i++) {
		for (int j = 0; j < w; j++){
			cin >> arr[i][j];
	}

	int black = 0;
	for (int i = 0; i < h; i++) {
		for (int j = 0; j < w; j++) {
			if (arr[i][j] == '#')black++;
		}
	}

	if (k == black) {
		cout << 1 << endl;
		return 0;
	}

	if (k > black) {
		cout << 0 << endl;
		return 0;
	}

	int ans = 0;
	int i = 0;
	int l = 0;
	while (i<h) {
		int discount = 0;

			for (int g  = 0; g < w; g++) {
				if (arr[g][l] == '#') discount++;

			}

			for (int j = 0; j < w; j++) {
				if (arr[i][j] == '#') discount++;
			}
		if (black - discount == k) ans++;
			
		i++;
		l++;
	}
			cout << ans << endl;
		
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:45:13: error: redeclaration of 'int i'
   45 |         int i = 0;
      |             ^
a.cc:22:18: note: 'int i' previously declared here
   22 |         for (int i = 0; i < h; i++) {
      |                  ^
a.cc:66:2: error: expected '}' at end of input
   66 | }
      |  ^
a.cc:16:11: note: to match this '{'
   16 | int main(){
      |           ^
Language: C++

#include <bits/stdc++.h>

using namespace std;

int main(){
  int h, w, k;
  int black = 0, count = 0;
  //int row_black[6] = {0}, cal_black[6] = {0};
  char mat[6][6];
  
  cin >> h >> w >> k;
  for(int i = 0; i < h; i++){
    for(int j = 0; j < w; j++){
		cin >> mat[i][j];
      	if(mat[i][j] == '#'){
          black++;
          row_black[i]++;
          cal_black[j]++;
        }
    }
  }
  
  if(black == k){
    cout << 1 << endl;
    return 0;
  }
  
  for(int i = 0; i < h; i++){
    for(int j = 0; j < w; j++){
      int erase = 0;
      
  
  
 return 0; 
}


Compiler output:
a.cc: In function 'int main()':
a.cc:17:11: error: 'row_black' was not declared in this scope
   17 |           row_black[i]++;
      |           ^~~~~~~~~
a.cc:18:11: error: 'cal_black' was not declared in this scope
   18 |           cal_black[j]++;
      |           ^~~~~~~~~
a.cc:35:2: error: expected '}' at end of input
   35 | }
      |  ^
a.cc:28:29: note: to match this '{'
   28 |   for(int i = 0; i < h; i++){
      |                             ^
a.cc:35:2: error: expected '}' at end of input
   35 | }
      |  ^
a.cc:5:11: note: to match this '{'
    5 | int main(){
      |           ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define ll long long
#define pb push_back
#define mp make_pair
pow(int a,int b){
	int x=1;
	while(b--){
		x *= a;
	}
	return x;
}

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

	int n,m,k;
	cin >> n >> m >> k;
	string s[n];
	for(int i=0; i<n; i++){
		cin >> s[i];
	}

	int bin[n+m+1] = {};
	int c=0;
	
	while(bin[n+m]<2){
		int arr[n][m];
		for(int i=0; i<n; i++){
			for(int j=0; j<m; j++){
				if(s[i][j]=='#')
					arr[i][j]=1;
				else
					arr[i][j]=0;
			}
		}

		for(int i=1; i<=n; i++){
			if(bin[i]==1){
				for(int j=0; j<m; j++){
					arr[i-1][j]=-1;
				}
			}
		}
		for(int i=n+1; i<=n+m; i++){
			if(bin[i]==1){
				for(int j=0; j<n; j++){
					arr[j][i-n-1] = -1;
				}
			}
		}

		int x=0;
		for(int i=0; i<n; i++){
			for(int j=0; j<m; j++){
				if(arr[i][j]==1){
					x++;
				}
			}
		}
		if(x==k){
			c++;
		}

		bin[1]++;
		for(int i=1; i<n+m; i++){
			if(bin[i]==2){
				bin[i]=0;
				bin[i+1]++;
			}
		}
	}

	cout << c;


	
	

	return 0;
}

Compiler output:
a.cc:6:1: error: ISO C++ forbids declaration of 'pow' with no type [-fpermissive]
    6 | pow(int a,int b){
      | ^~~
Language: Java

import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int h = nextInt(scanner);
        int w = nextInt(scanner);
        int k = nextInt(scanner);

        char[][] c = new char[h][w];



        for (int i = 0; i < h; i++) {
            String row = scanner.next();
            int ccount = 0;
            for (char cc: row.toCharArray()) {
                c[i][ccount] = cc;
                ccount++;
            }
        }

        int sum = h + w;
        List<Integer> x = new ArrayList<>();
        List<Integer> y = new ArrayList<>();

        int count = 0;

        for (int i = 0; i < (Math.pow(2, sum)); i++){
            x.clear();
            y.clear();
            int black = 0;
            char[][] strings = new char[h][w];
            for (int j = 0; j < h; j++) {
                if (w >= 0) System.arraycopy(c[j], 0, strings[j], 0, w);
            }
            for (int j = 0; j < sum; j++) {
                if ((1 & i >> j) == 1) {
                    if (j < h) {
                        x.add(j);
                    }else {
                        y.add(j - h);
                    }
                }
            }
            if (!x.isEmpty()) {
                for (int xx :x) {
                    for (int l = 0; l < w; l++) {
                        strings[xx][l] = 'R';
                    }
                }
            }
            if (!y.isEmpty()) {
                for (int yy: y) {

                        for (int l = 0; l < h; l++) {
                            strings[l][yy] = 'R';
                        }

                }
            }
            for (int l = 0; l < h; l++) {
                for (int m = 0; m < w; m++) {
                    if (strings[l][m] == '#') {
                        black++;
                    }
                }
            }
            if (black == k) {
                count++;
            }
            test++;
        }
        System.out.println(count);
    }


    private static int nextInt(Scanner scanner) {
        return Integer.parseInt(scanner.next());
    }

    private static long nextLong(Scanner scanner) {
        return Long.parseLong(scanner.next());
    }

    private static float nextFloat(Scanner scanner) {
        return Float.parseFloat(scanner.next());
    }

    private static double nextDouble(Scanner scanner) {
        return Double.parseDouble(scanner.next());
    }


}





Compiler output:
Main.java:74: error: cannot find symbol
            test++;
            ^
  symbol:   variable test
  location: class Main
1 error
Language: C++

#include <bits/stdc++.h>

using namespace std;

int main(){
  int h, w, k;
  int black = 0, count = 0;
  //int row_black[6] = {0}, cal_black[6] = {0};
  char mat[6][6];
  
  cin >> h >> w >> k;
  for(int i = 0; i < h; i++){
    for(int j = 0; j < w; j++){
		cin >> mat[i][j];
      	if(mat[i][j] == '#'){
          black++;
          row_black[i]++;
          cal_black[j]++;
        }
    }
  }
  
  if(black == k){
    cout << 1 << endl;
    return 0;
  }
  
  for(int i = 0; i < h; i++){
    for(int j = 0; j < w; j++){
      
  
  
 return 0; 
}

Compiler output:
a.cc: In function 'int main()':
a.cc:17:11: error: 'row_black' was not declared in this scope
   17 |           row_black[i]++;
      |           ^~~~~~~~~
a.cc:18:11: error: 'cal_black' was not declared in this scope
   18 |           cal_black[j]++;
      |           ^~~~~~~~~
a.cc:34:2: error: expected '}' at end of input
   34 | }
      |  ^
a.cc:28:29: note: to match this '{'
   28 |   for(int i = 0; i < h; i++){
      |                             ^
a.cc:34:2: error: expected '}' at end of input
   34 | }
      |  ^
a.cc:5:11: note: to match this '{'
    5 | int main(){
      |           ^
Language: C++

#include <iostream>
#include <vector>
#include <set>
#include <unordered_set>
#include <map>
#include <unordered_map>
#include <list>
#include <algorithm>
#include <bitset>
#include <string>
#include <cstring>
using namespace std;

#define lli long long int
#define pb push_back
#define M 1000000007

bool compare(pair<int, int> &p1, pair<int, int> &p2)
{
    return true;
}

template <typename T>
T maxInThree(T a, T b, T c)
{
    T temp = max(a, b);
    temp = max(temp, c);
    return temp;
}

template <typename T>
T minInThree(T a, T b, T c)
{
    T temp = min(a, b);
    temp = min(temp, c);
    return temp;
}
void convert(int x, int *bt, int size)
{
    for (int i = 0; i < size; i++)
        bt[i] = 0;
    int k = 0;
    while (x != 0)
    {
        if (x % 2 == 1)
        {
            bt[k] = 1;
        }
        x /= 2;
        k++;
    }
}
void solve()
{
    int h, w, k;
    cin >> h >> w >> k;
    char arr[h][w];
    for (int i = 0; i < h; i++)
    {
        for (int j = 0; j < w; j++)
        {
            cin >> arr[i][j];
        }
    }
    int count = 0;
    int x = h + w;
    int target = (int)pow(2, x) - 1;
    for (int i = 0; i <= target; i++)
    {
        int *bt = new int[x];
        convert(i, bt, x);
        char temp[h][w];
        for (int i = 0; i < h; i++)
        {
            for (int j = 0; j < w; j++)
            {
                temp[i][j] = arr[i][j];
            }
        }
        for (int j = 0; j < h; j++)
        {
            if (bt[j] == 1)
            {
                for (int m = 0; m < w; m++)
                    temp[j][m] = '.';
            }
        }
        for (int j = h; j < x; j++)
        {
            if (bt[j] == 1)
            {
                for (int m = 0; m < h; m++)
                    temp[m][j - h] = '.';
            }
        }
        int ans = 0;
        for (int i = 0; i < h; i++)
        {
            for (int j = 0; j < w; j++)
            {
                if (temp[i][j] == '#')
                    ans++;
            }
        }
        if (ans == k)
            count++;
    }
    cout << count;
}

int main()
{
    ios::sync_with_stdio(false);
    cin.tie(NULL);
    cout.tie(NULL);

    solve();

    return 0;
}

Compiler output:
a.cc: In function 'void solve()':
a.cc:67:23: error: 'pow' was not declared in this scope
   67 |     int target = (int)pow(2, x) - 1;
      |                       ^~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main()
{
  cin.tie(0);
  int h,w,k,s=0,tot=0;
  cin>>h>>w>>k;
  char a[h][w];
  for(int i=0;i<h;i++)
  {
    for(int j=0;j<w;j++)
    {
      cin>>a[i][j];
      if(a[i][j]=='#')
        s++;
    }
  }
  vector<int> r(h,0);
  vector<int> c(w,0);
  for(int i=0;i<h;i++)
    for(int j=0;j<w;j++)
      if(a[i][j]=='#')
        r[i]++;
  for(int i=0;i<w;i++)
      for(int j=0;j<h;j++)
        if(a[i][j]=='#')
          c[i]++;
  for(int i=0;i<h;i++)
  {
    for(int j=0;j<w;j++)
    {
      if((r[i]+c[j])==(s-k)&&a[i][j]!='#')
        tot++;
      else ((r[i]+c[j])==(s-k+1))
        tot++;
    }
  }
  for(int i=0;i<h;i++)
    if(r[i]==(s-k))
      tot++;
  for(int i=0;i<w;i++)
    if(c[i]==(s-k))
      tot++;
  cout<<tot;
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:34:34: error: expected ';' before 'tot'
   34 |       else ((r[i]+c[j])==(s-k+1))
      |                                  ^
      |                                  ;
   35 |         tot++;
      |         ~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
ll arr[200005];
bool cmp(int a,int b){
    return a>b;
}
int main()
{
	ll n;
cin>>n;
	for(ll i=1;i<=n;i++)cin>>arr[i];
	sort(arr+1,arr+n+1);
	ll sum=0;
	if(n%2==0){
		ll d=n/2;
		for(ll i=n-1;i>d;i--)sum+=a[i];
		sum*=2;
		sum+=arr[n];
	}
	else{
		ll d=(n+1)/2;
		for(ll i=n-1;i>d;i--)
		sum+=arr[i];
		sum*=2;
		sum+=arr[n];
		sum+=arr[d]; 
	}
	cout<<sum<<endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:17:43: error: 'a' was not declared in this scope
   17 |                 for(ll i=n-1;i>d;i--)sum+=a[i];
      |                                           ^
Language: C++

#include<iostream>
#include<vector>
#include<cmath>
using namespace std;

int main(){
    int H,W,K;
    cin>>H>>W>>K;
    int cnt=0;
    vector<int> h_line(6,0);
    vector<int> w_line(6,0);
    char temp[10][10];
    for(int i=0;i<10;i++){
        for(int j=0;j<10;j++){
            temp[i][j]='.';
        }
    }
    for(int i=1;i<=H;i++){
        for(int j=1;j<=W;j++){
            cin>>temp[i][j];
            if(temp[i][j]=='#'){
                cnt++;
                h_line[i]++;
                w_line[j]++;
            }
        }
    }
    int sum;
    int ret=0;
    for(int i=0;i<=63;i++){
        if(i>pow(2,H)-1){
            continue;
        }
        sum=cnt;
        vector<int> tyouhuku_h;
        if(i&1){
            sum-=h_line[1];
            tyouhuku_h.push_back(1);
        }
        if(i&2){
            sum-=h_line[2];
            tyouhuku_h.push_back(2);
        }
        if(i&4){
            sum-=h_line[3];
            tyouhuku_h.push_back(3);
        }
        if(i&8){
            sum-=h_line[4];
            tyouhuku_h.push_back(4);
        }
        if(i&16){
            sum-=h_line[5];
            tyouhuku_h.push_back(5);
        }
        if(i&32){
            sum-=h_line[6];
            tyouhuku_h.push_back(6);
        }
        for(int j=0;j<=63;j++){
            if(j>pow(2,W)-1){
                continue;
            }
            int nok=sum;
            vector<int> tyouhuku_w;
            if(j&1){
                nok-=w_line[1];
                tyouhuku_w.push_back(1);
            }
            if(j&2){
                nok-=w_line[2];
                tyouhuku_w.push_back(2);
            }
            if(j&4){
                nok-=w_line[3];
                tyouhuku_w.push_back(3);
            }
            if(j&8){
                nok-=w_line[4];
                tyouhuku_w.push_back(4);
            }
            if(j&16){
                nok-=w_line[5];
                tyouhuku_w.push_back(5);
            }
            if(j&32){
                nok-=w_line[6];
                tyouhuku_w.push_back(6);
            }
            for(long long a=0;a<tyouhuku_h.;a++){
                for(long long b=0;b<tyouhuku_w.size();b++){
                    int a_value=tyouhuku_h[a];
                    int b_value=tyouhuku_w[b];
                    if(temp[a_value][b_value]=='#'){
                        nok++;
                    }
                }
            }
            if(nok==K){
                ret++;
                //cout<<i<<","<<j<<endl;
            }
        }
    }
    cout<<ret<<endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:90:44: error: expected unqualified-id before ';' token
   90 |             for(long long a=0;a<tyouhuku_h.;a++){
      |                                            ^
Language: C++

#include <iostream>


using namespace std;
int main(){
  int h,w,k,i,r;
  cin >> h >> w >> k;
  Matrix a(h,w);
  
  for(i=0;i<h;i++){
    for(r=0;r<w;r++){
      cin >> a[i][r];
    }
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:3: error: 'Matrix' was not declared in this scope
    8 |   Matrix a(h,w);
      |   ^~~~~~
a.cc:12:14: error: 'a' was not declared in this scope
   12 |       cin >> a[i][r];
      |              ^
Language: C++

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

int main() {
  int H, W, K;
  cin >> H, W, K;
  vector<vector<int>> data(H, vector<int>(W));
  
  for (int i = 0; i < H; i++) {
    for (int j = 0; j < W; j++) {
      cin >> a;
    if (a == '.')
      data.at(i).at(j) = 0;
    else if (a =='#')
      data.at(i).at(j) = 1;
    }
  }
  
  int counter = 0;
  int Sum = 0;
  
  for (int i = 0; i < H; i++) {
    for (int j = 0; j < W; j++)
      Sum += data.at(i).at(j);
  }
  if (Sum == K)
    counter ++;

  cout << counter << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:14: error: 'a' was not declared in this scope
   11 |       cin >> a;
      |              ^
Language: C++

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

#include <vector>
#include <cctype>
#include <cstring>
#include <algorithm>
#include <cmath>
#include <string>

using namespace std;


int main()
{
    int h, k, w;
    cin >> h >> w >> k;

    vector<vector<char> > arr(h, vector<char>(w));

    for (int i = 0; i < h; i++) {
        for (int j = 0; j < w; j++) {
            cin >> arr[i][j];
        }
    }

    int black = 0;
    for (int i = 0; i < h; i++) {
        for (int j = 0; j < w; j++) {
            if (arr[i][j] == "#")black++;
        }
    }

    if (k == black) {
        cout << 1 << endl;
        return 0;
    }

    if (k > black) {
        cout << 0 << endl;
        return 0;
    }

    int ans = 0;        
        for (int i =0 ; i < h; i++) {
            int discount = 0;
            for (int j = 0; j < w; j++) {
                if(arr[i][j] = "#"){
                    discout++;
                }

                if (black - discount == k) {
                    ans++;
                }
             }
         }
        
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:30:27: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   30 |             if (arr[i][j] == "#")black++;
a.cc:48:32: error: invalid conversion from 'const char*' to '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'} [-fpermissive]
   48 |                 if(arr[i][j] = "#"){
      |                                ^~~
      |                                |
      |                                const char*
a.cc:49:21: error: 'discout' was not declared in this scope; did you mean 'discount'?
   49 |                     discout++;
      |                     ^~~~~~~
      |                     discount
Language: C++

#include<iostream>
using namespace std;
int helper(int h,int w,int k,int i,int j,char arr[][6])
{
  int c=0;
  for(int m=0;m<h;m++)
  {
    for(int n=0;n<w;n++)
    {
      if(m!=i && n!=j && arr[m][n]=='#')
      {
        c++;
        if(c==k) {return 1;}
      }
    }
  }
 return 0;
}
int fun(int h,int w,int k,char arr[][6])
{
  
    int cnt=0;
    for(int i=0;i<h;i++)
    {
      for(int j=0;j<w;j++)
      {
        int temp=helper(h,w,k,i,j,arr);
        cnt+=temp;
      }
    }
}
int main()
{
  int h,w;
  cin>>h>>w;
  int k;
  cin>>k;
  char arr[h][w];
  for(int i=0;i<h;i++)
  {
    for(int j=0;j<w;j++)
    {
      cin>>arr[i][j];
    }
  }
  int ans=fun(h,w,k,arr);
  cout<<ans;
}


Compiler output:
a.cc: In function 'int fun(int, int, int, char (*)[6])':
a.cc:31:1: warning: no return statement in function returning non-void [-Wreturn-type]
   31 | }
      | ^
a.cc: In function 'int main()':
a.cc:46:21: error: cannot convert 'char (*)[w]' to 'char (*)[6]'
   46 |   int ans=fun(h,w,k,arr);
      |                     ^~~
      |                     |
      |                     char (*)[w]
a.cc:19:32: note:   initializing argument 4 of 'int fun(int, int, int, char (*)[6])'
   19 | int fun(int h,int w,int k,char arr[][6])
      |                           ~~~~~^~~~~~~~
Language: C++

#include<iostream>
using namespace std;
int helper(int h,int w,int k,int i,int j,char arr[][w])
{
  int c=0;
  for(int m=0;m<h;m++)
  {
    for(int n=0;n<w;n++)
    {
      if(m!=i && n!=j && arr[m][n]=='#')
      {
        c++;
        if(c==k) {return 1;}
      }
    }
  }
 return 0;
}
int fun(int h,int w,int k,char arr[][w])
{
  
    int cnt=0;
    for(int i=0;i<h;i++)
    {
      for(int j=0;j<w;j++)
      {
        int temp=helper(h,w,k,i,j,arr);
        cnt+=temp;
      }
    }
}
int main()
{
  int h,w;
  cin>>h>>w;
  int k;
  cin>>k;
  char arr[h][w];
  for(int i=0;i<h;i++)
  {
    for(int j=0;j<w;j++)
    {
      cin>>arr[i][j];
    }
  }
  int ans=fun(arr,h,w,k);
  cout<<ans;
}


Compiler output:
a.cc:3:54: error: use of parameter outside function body before ']' token
    3 | int helper(int h,int w,int k,int i,int j,char arr[][w])
      |                                                      ^
a.cc: In function 'int helper(...)':
a.cc:6:17: error: 'h' was not declared in this scope
    6 |   for(int m=0;m<h;m++)
      |                 ^
a.cc:8:19: error: 'w' was not declared in this scope
    8 |     for(int n=0;n<w;n++)
      |                   ^
a.cc:10:13: error: 'i' was not declared in this scope
   10 |       if(m!=i && n!=j && arr[m][n]=='#')
      |             ^
a.cc:10:21: error: 'j' was not declared in this scope
   10 |       if(m!=i && n!=j && arr[m][n]=='#')
      |                     ^
a.cc:10:26: error: 'arr' was not declared in this scope
   10 |       if(m!=i && n!=j && arr[m][n]=='#')
      |                          ^~~
a.cc:13:15: error: 'k' was not declared in this scope
   13 |         if(c==k) {return 1;}
      |               ^
a.cc: At global scope:
a.cc:19:39: error: use of parameter outside function body before ']' token
   19 | int fun(int h,int w,int k,char arr[][w])
      |                                       ^
a.cc: In function 'int fun(...)':
a.cc:23:19: error: 'h' was not declared in this scope
   23 |     for(int i=0;i<h;i++)
      |                   ^
a.cc:25:21: error: 'w' was not declared in this scope
   25 |       for(int j=0;j<w;j++)
      |                     ^
a.cc:27:29: error: 'k' was not declared in this scope
   27 |         int temp=helper(h,w,k,i,j,arr);
      |                             ^
a.cc:27:35: error: 'arr' was not declared in this scope
   27 |         int temp=helper(h,w,k,i,j,arr);
      |                                   ^~~
a.cc:31:1: warning: no return statement in function returning non-void [-Wreturn-type]
   31 | }
      | ^
Language: C++

#include<iostream>
#include<cstdio>
#include<cstring>
#include<string>
#include<stack>
#include<queue>
#include<set>
#include<map>
#include<vector>
#include<list>
#include<cmath>
#include<algorithm>
#include<bitset>
#define lson node<<1,st,mid
#define rson node<<1|1,mid+1,ed
#define mem(a,x) memset(a,x,sizeof(a))
#define me(a) memset(a,0,sizeof(a))
#define IOS ios::sync_with_stdio(false)
#define lowbit(x) x&(-x)
#define up(i,x,y) for(long long i=x;i<y;i++)
#define down(i,x,y) for(long long i=x;i>=y;i--)
#define in freopen("in.txt","r",stdin)
#define out freopen("out.txt","w",stdout)   
typedef long long ll;
typedef unsigned long long ull;
const ll mod = 1e9+7;
const ll INF = 0x3f3f3f3f;
const ll maxn = 1e6 + 5;
const ll N=1e3+5;
const double pi = acos(-1.0);
const double eps=1e-9;
using namespace std;

char s[10][10];
int r[10],c[10];
int a[30];
int dp[20];
int main(){
	// in;
	// out;
	int h,w,k;
	int ans=0;
	cin>>h>>w>>k;
	for(int i=0;i<h;i++){
		for(int j=0;j<w;j++){
			cin>>s[i][j];
			if(s[i][j]=='#') ans++;
		}
	}
	if(ans<k) cout<<"0"<<endl;
	else if(ans==k) cout<<"1"<<endl;
	else{
		for(int i=0;i<h;i++){
			int cnt=0;
			for(int j=0;j<w;j++){
				if(s[i][j]=='#') cnt++;
			}
			r[i]=cnt;
		}
		for(int i=0;i<w;i++){
			int cnt=0;
			for(int j=0;j<h;j++){
				if(s[j][i]=='#') cnt++;
			}
			c[i]=cnt;
		}

		// for(int i=0;i<h;i++) cout<<r[i]<<" ";
		// cout<<endl;
		// for(int i=0;i<w;i++) cout<<c[i]<<" ";
		// cout<<endl;
		// cout<<ans-k<<endl;
		int cntt=0;
		for(int i=0;i<h;i++){
			a[i]=r[i];
		}
		for(int i=0,j=h;j<w+h;i++,j++) a[j]=c[i];

		for(int i=0;i<h+w;i++){
			if(a[i]==ans-k) cntt++;
		}
		dp[0]=1;
		for(int i=0;i<w+h;i++){
			for(int j=k;j>=0;j--){
				if(j>=a[i]){
					dp[j]+=dp[j-a[i]];
					if(h-w=h) dp[j]--;
				}
			}
		}
		cout<<dp[ans-k]+cntt<<endl;
	}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:87:45: error: lvalue required as left operand of assignment
   87 |                                         if(h-w=h) dp[j]--;
      |                                            ~^~
Language: C++

#include<iostream>
using namespace std;
int helper(int i,int j,char arr[][w],int h,int w,int k)
{
  int c=0;
  for(int m=0;m<h;m++)
  {
    for(int n=0;n<w;n++)
    {
      if(m!=i && n!=j && arr[m][n]=='#')
      {
        c++;
        if(c==k) {return 1;}
      }
    }
  }
 return 0;
}
int fun(char arr[][w],int h,int w,int k)
{
  
    int cnt=0;
    for(int i=0;i<h;i++)
    {
      for(int j=0;j<w;j++)
      {
        int temp=helper(i,j,arr,h,w,k);
        cnt+=temp;
      }
    }
}
int main()
{
  int h,w;
  cin>>h>>w;
  int k;
  cin>>k;
  char arr[h][w];
  for(int i=0;i<h;i++)
  {
    for(int j=0;j<w;j++)
    {
      cin>>arr[i][j];
    }
  }
  int ans=fun(arr,h,w,k);
  cout<<ans;
}

Compiler output:
a.cc:3:35: error: 'w' was not declared in this scope
    3 | int helper(int i,int j,char arr[][w],int h,int w,int k)
      |                                   ^
a.cc:3:37: error: expected ')' before ',' token
    3 | int helper(int i,int j,char arr[][w],int h,int w,int k)
      |           ~                         ^
      |                                     )
a.cc:3:38: error: expected unqualified-id before 'int'
    3 | int helper(int i,int j,char arr[][w],int h,int w,int k)
      |                                      ^~~
a.cc:19:20: error: 'w' was not declared in this scope
   19 | int fun(char arr[][w],int h,int w,int k)
      |                    ^
a.cc:19:22: error: expected ')' before ',' token
   19 | int fun(char arr[][w],int h,int w,int k)
      |        ~             ^
      |                      )
a.cc:19:23: error: expected unqualified-id before 'int'
   19 | int fun(char arr[][w],int h,int w,int k)
      |                       ^~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using P = pair<int,int>;
#define all(x) (x).begin(),(x).end()
#define rep(i,n) for (int i = 0; i < (n); ++i)

int main(){
  int h,w cin >> h>> w;
  int k; cin >> k;
  vector<vector<char>> c(h, vector<char>(w));
  int count=0;
  rep(i,h){
    rep(j,w){
      cin >> c[i][j];
      if(c[i][j]=='#') count ++;
    }
  }
  
  
  if(count==k) cout << 1 << endl;
  
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:11: error: expected initializer before 'cin'
    9 |   int h,w cin >> h>> w;
      |           ^~~
a.cc:11:42: error: 'w' was not declared in this scope
   11 |   vector<vector<char>> c(h, vector<char>(w));
      |                                          ^
Language: Java

import java.util.*;
public class MainC{
    public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    int H = sc.nextInt();
    int W = sc.nextInt();
    int K = sc.nextInt();
    char[][] a = new char[H][W];
    boolean[][] b = new boolean[H][W];
    // Arrays.fill(b, true);
    for (int i=0; i < H; i++) {
      String tmp = sc.next();
      for (int j=0; j < W; j++) {
        a[i][j] = tmp.charAt(j);
        b[i][j] = true;
      }
    }
    int ans = 0;
    for(int i=0; i <Math.pow(2,(H+W));i++){
      int count = 0;
      for(int j=0; j<H; j++){
        if((1&i>>j)==1){
          for(int k=0; k<W; k++){
            b[j][k] = false;
          }
        }
      }
      for(int j=H; j<H+W; j++){
        if((1&i>>j)==1){
          for(int k=0; k<H; k++){
            b[k][j-H] = false;
          }
        }
      }
      for (int i1=0; i1 < H; i1++) {
        for (int j1=0; j1 < W; j1++) {
          if(a[i1][j1] == '#' && b[i1][j1]==true){
              count++;
          }
          b[i1][j1] = true;
        }
      }
      if(count==K){
        ans++;
      }
      // Arrays.fill(b, true);
      // System.out.println("b");

    }
    System.out.println(ans);
  }
}



Compiler output:
Main.java:2: error: class MainC is public, should be declared in a file named MainC.java
public class MainC{
       ^
1 error
Language: C++

#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
#define all(v) v.begin(),v.end()

int main() {
  int h,w,k;
  cin >> h >> w >> k;
  int c[h][k];
  for(int i=0;i<h;i++){
  	for(int j=0;j<w;j++){
    	cin >> c[i][j];
    }
    cout << endl;
  }
  
  int result=0;
  for(int bit1=0;bit1<(1<<h);bit1++){
  	for(int bit2=0;bit2<(1<<w);bit2++){
      int count=0;
      for(int i=0;i<h;i++){
         if(bit1&(1<<i)){
         	for(int j=0;j<w;j++){
            	c[i][j]="a";
            }
         }
      }
      for(int i=0;i<w;i++){
         if(bit2&(1<<i)){
         	for(int j=0;j<h;j++){
            	c[j][i]="a";
            }
         }
      }
      for(int i=0;i<h;i++){
  	for(int j=0;j<w;j++){
    	if(c[i][j]=="#")count++;
   		 }
 	  }
      if(count==k)result++;
    }
  }
  
  cout << result;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:24:25: error: invalid conversion from 'const char*' to 'int' [-fpermissive]
   24 |                 c[i][j]="a";
      |                         ^~~
      |                         |
      |                         const char*
a.cc:31:25: error: invalid conversion from 'const char*' to 'int' [-fpermissive]
   31 |                 c[j][i]="a";
      |                         ^~~
      |                         |
      |                         const char*
a.cc:37:19: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   37 |         if(c[i][j]=="#")count++;
      |            ~~~~~~~^~~~~