fork download
  1. #include <iostream>
  2. #include <thread>
  3. using namespace std;
  4.  
  5. void sum(float* A, float* B) {}
  6.  
  7. int main() {
  8. float a[] = {1, 2, 3};
  9. float b[] = {1, 2, 3};
  10. thread t(sum, a, b);
  11. t.join();
  12. return 0;
  13. }
Success #stdin #stdout 0s 11648KB
stdin
Standard input is empty
stdout
Standard output is empty