Language: C++

#include <bits/stdc++.h>
#define rep(i,n) for(int i = 0; i < (int)(n); ++i)
using namespace std;
using ll = long long;
using p = pair<int,int>;
using Graph = vector<vector<int>>;

const double PI = acos(-1)

int count(int h, int w, vector<vector<int>> arr) {
	int sum = 0;
    rep(i,H) {
    	rep(j,W) {
            if(2**i&h||2**j&w)sum+=arr[i][j];
        }
    }
}
  
int main() {
    int H,W,K;
    cin >> H >> W >> K;
    vector<vetor<int>> field;
    field.assign(H, vector<int>(W,0));
    string in;
    rep(i,H) {
        cin >> in;
        rep(j,W) {
            if(in[j] == '#') field[i][j] = 1;
        }
    }
    int result = 0;
    rep(i,H) {
    	rep(j,W) {
            if(count(i,j,field) == K) result++;
        }
    }
    cout << result << "\n";
}

Compiler output:
a.cc:10:1: error: expected ',' or ';' before 'int'
   10 | int count(int h, int w, vector<vector<int>> arr) {
      | ^~~
a.cc: In function 'int main()':
a.cc:22:12: error: 'vetor' was not declared in this scope
   22 |     vector<vetor<int>> field;
      |            ^~~~~
a.cc:22:21: error: template argument 1 is invalid
   22 |     vector<vetor<int>> field;
      |                     ^~
a.cc:22:21: error: template argument 2 is invalid
a.cc:23:11: error: request for member 'assign' in 'field', which is of non-class type 'int'
   23 |     field.assign(H, vector<int>(W,0));
      |           ^~~~~~
a.cc:28:35: error: invalid types 'int[int]' for array subscript
   28 |             if(in[j] == '#') field[i][j] = 1;
      |                                   ^
a.cc:34:21: error: no matching function for call to 'count(int&, int&, int&)'
   34 |             if(count(i,j,field) == K) result++;
      |                ~~~~~^~~~~~~~~~~
In file included from /usr/include/c++/14/algorithm:61,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51,
                 from a.cc:1:
/usr/include/c++/14/bits/stl_algo.h:4025:5: note: candidate: 'template<class _IIter, class _Tp> typename std::iterator_traits< <template-parameter-1-1> >::difference_type std::count(_IIter, _IIter, const _Tp&)'
 4025 |     count(_InputIterator __first, _InputIterator __last, const _Tp& __value)
      |     ^~~~~
/usr/include/c++/14/bits/stl_algo.h:4025:5: note:   template argument deduction/substitution failed:
/usr/include/c++/14/bits/stl_algo.h: In substitution of 'template<class _IIter, class _Tp> typename std::iterator_traits< <template-parameter-1-1> >::difference_type std::count(_IIter, _IIter, const _Tp&) [with _IIter = int; _Tp = int]':
a.cc:34:21:   required from here
   34 |             if(count(i,j,field) == K) result++;
      |                ~~~~~^~~~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:4025:5: error: no type named 'difference_type' in 'struct std::iterator_traits<int>'
 4025 |     count(_InputIterator __first, _InputIterator __last, const _Tp& __value)
      |     ^~~~~
In file included from /usr/include/c++/14/algorithm:86:
/usr/include/c++/14/pstl/glue_algorithm_defs.h:101:1: note: candidate: 'template<class _ExecutionPolicy, class _ForwardIterator, class _Tp> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, typename std::iterator_traits<_II>::difference_type> std::count(_ExecutionPolicy&&, _ForwardIterator, _ForwardIterator, const _Tp&)'
  101 | count(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, const _Tp& __value);
      | ^~~~~
/usr/include/c++/14/pstl/glue_algorithm_defs.h:101:1: note:   candidate expects 4 arguments, 3 provided