fork download
  1. void CForest::getRandomTrees( int nNumTrees, std::vector<CTree> & vPairTrees ){
  2.  
  3. std::vector<CTree> vTrees = m_trees;
  4. std::random_shuffle(vTrees.begin(), vTrees.end());
  5. vTrees.resize(nNumTrees);
  6. vPairTrees = vTrees;
  7. }
  8.  
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp:1:7: error: 'CForest' has not been declared
prog.cpp:1:52: error: 'std::vector' has not been declared
prog.cpp:1:58: error: expected ',' or '...' before '<' token
prog.cpp: In function 'void getRandomTrees(int, int)':
prog.cpp:3:3: error: 'vector' is not a member of 'std'
prog.cpp:3:15: error: 'CTree' was not declared in this scope
prog.cpp:3:22: error: 'vTrees' was not declared in this scope
prog.cpp:3:31: error: 'm_trees' was not declared in this scope
prog.cpp:4:3: error: 'random_shuffle' is not a member of 'std'
prog.cpp:6:3: error: 'vPairTrees' was not declared in this scope
stdout
Standard output is empty