fork download
  1. #include <iostream>
  2. #include<thread>
  3. using namespace std;
  4.  
  5. int main() {
  6. // your code goes here
  7. auto p = thread{
  8. [](){
  9. cout<<"hello";
  10. }
  11. };
  12. p.detach();
  13. return 0;
  14. }
Success #stdin #stdout 0.01s 5344KB
stdin
Standard input is empty
stdout
Standard output is empty