Language: C++

#include <iostream>
#include <string>
#include <algorithm>
#include <functional>
using namespace std;
 
#include <math.h>
#include <iomanip>
#include <vector>
#include <queue>
#include <climits>
using Graph = vector<vector<int>>;
const double PI = 3.14159265358979323846;
 
 
 
long long modpow(long long a, long long n, long long mod) {
	long long res = 1;
	while (n > 0) {
		if (n & 1) res = res * a % mod;
		a = a * a % mod;
		n >>= 1;
	}
	return res;
}
 
 
//約数をベクトル形式で返す
vector<int> vect_yakusuu(int n) {
	vector<int> ret;
	for (int i = 1; i*i <= n; i++) {
		if (n%i == 0) {
			ret.push_back(i);
			if (i*i != n) ret.push_back(n / i);
		}
	}
	sort(begin(ret), end(ret));
	return ret;
}
 
 
 
int main() {
 
	long long N;
    int H,W,K
    char c[10][10];
    int ans;

    cin >>H>>W>>K;

    for (int i=0;i<H;i++){
        for (int j=0;j<W;j++){
            cin >> c[H][W];
        }
    }

    ans = 0;

    int choice_H[6];
    int choice_W[6];

    for (int bin = 0;bin < pow(2,H+W); bin++){
        int tmp_b=bin;
        int count_bl=0;
        for (int i=0;i<H;i++){
            if (tmp_b%2==1){
                choice_H[i]=1
            }else{
                choice_H[i]=0
            }
            tmp_b=tmp_b/2;
        }
        for (int i=0;i<V;i++){
            if (tmp_b%2==1){
                choice_V[i]=1
            }else{
                choice_V[i]=0
            }
            tmp_b=tmp_b/2;
        }
        for (int i=0;i<H;i++){
            for (int j=0;j<W;j++){
                if (choice_H[i]==1 && choice_V[i]==1 && c[i][j]=='#'){
                    count_bl++;
                }
            }
        }
        if (count_bl==K){
            ans++;
        }
    }

    cout << ans << endl;
	cin >> ans;
 
	return 0;
 
 
}

Compiler output:
a.cc: In function 'int main()':
a.cc:47:5: error: expected initializer before 'char'
   47 |     char c[10][10];
      |     ^~~~
a.cc:50:17: error: 'K' was not declared in this scope
   50 |     cin >>H>>W>>K;
      |                 ^
a.cc:54:20: error: 'c' was not declared in this scope
   54 |             cin >> c[H][W];
      |                    ^
a.cc:68:30: error: expected ';' before '}' token
   68 |                 choice_H[i]=1
      |                              ^
      |                              ;
   69 |             }else{
      |             ~                 
a.cc:70:30: error: expected ';' before '}' token
   70 |                 choice_H[i]=0
      |                              ^
      |                              ;
   71 |             }
      |             ~                 
a.cc:74:24: error: 'V' was not declared in this scope
   74 |         for (int i=0;i<V;i++){
      |                        ^
a.cc:76:17: error: 'choice_V' was not declared in this scope; did you mean 'choice_W'?
   76 |                 choice_V[i]=1
      |                 ^~~~~~~~
      |                 choice_W
a.cc:78:17: error: 'choice_V' was not declared in this scope; did you mean 'choice_W'?
   78 |                 choice_V[i]=0
      |                 ^~~~~~~~
      |                 choice_W
a.cc:84:39: error: 'choice_V' was not declared in this scope; did you mean 'choice_W'?
   84 |                 if (choice_H[i]==1 && choice_V[i]==1 && c[i][j]=='#'){
      |                                       ^~~~~~~~
      |                                       choice_W
a.cc:84:57: error: 'c' was not declared in this scope
   84 |                 if (choice_H[i]==1 && choice_V[i]==1 && c[i][j]=='#'){
      |                                                         ^