Main.cc: In function 'int main()': Main.cc:16:28: error: 'class std::vector' has no member named 'length' printf("%.2f", abc / a.length()) ^