fork download
  1. #include <thread>
  2. #include <chrono>
  3. #include <iostream>
  4.  
  5. void run() {
  6.  
  7. }
  8.  
  9. int main() {
  10. std::thread th(run);
  11. std::cout << "end" << std::endl;
  12. return 0;
  13. }
Runtime error #stdin #stdout #stderr 0.01s 5452KB
stdin
Standard input is empty
stdout
end
stderr
terminate called without an active exception