#include <iostream>

using namespace std;

enum Gender {MALE,FEMALE};

struct  person{ Gender gender;};

int main() {
     person p[3];
        int m = 0;
        int f = 0;

    for (int i = 0; i < 3; i++) {
        int g;
        cin >> g;

        if (g == 0) {
            m++;
        }else f++;
    }
    cout << " 남자 : "<< m <<endl;
    cout << " 여자 : "<< f <<endl;
}

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: