Main.cc: In function 'int main()': Main.cc:21:18: error: 'struct m' has no member named 'price' cin>a[i].price; ^