So I found that I need to have #include < istream > for getline to work correctly. Hopefully this helps anyone who encountered to same problem as me.
So I found that I need to have #include < istream > for getline to work correctly. Hopefully this helps anyone who encountered to same problem as me.