fork download
  1. #include <vector>
  2.  
  3. enum class color {red,green, blue};
  4.  
  5. std::vector<color> getVectorFunc() {
  6. std::vector<color> v {color::red,color::green, color::blue};
  7. return v;
  8. }
  9.  
  10. int main() {
  11. std::vector<color> v = getVectorFunc();
  12. }
  13.  
Success #stdin #stdout 0s 15232KB
stdin
Standard input is empty
stdout
Standard output is empty