#include <iostream>
#include <vector>
using namespace std;
int main() {
vector<vector<int>> data = {
{7, 4, 0, 8},
{2, 0, 3, 5},
{6, 1, 7, 0},
};
int count = 0;
for(int i=0; i < 3; i++){
for(int j=0; j < 4; j++) {
if(data.at(i).at(j) == 0) {
count++;
}
}
}
cout << count << endl;
}
$ g++ -o test test.cpp && ./test
3