typedef struct _node {
        string str;
} node;

int main() {
        node* a = (node*)malloc(sizeof(node) * 5);
        
        for(int i = 0; i < 5; i++) {
                a[i].str = "123";
                cout << a[i].str << endl;
        }
        return 0;
}



이게 실행이 안되는데..
        a[i].str = "123";
여기서 자꾸 에러가 나는데

이유를 아는 사람?

어떻게 고쳐야함?? ㅜ