Cod sursa(job #2217418)
Utilizator | Data | 30 iunie 2018 13:14:36 | |
---|---|---|---|
Problema | A+B | Scor | 0 |
Compilator | cpp | Status | done |
Runda | Arhiva de probleme | Marime | 0.3 kb |
#include <iostream>
#include <vector>
#include <fstream>
#include <thread>
using namespace std;
ifstream in("adunare.in");
ofstream out("adunare.out");
void adun(int x,int y){
out<<x+y;
}
int main()
{
int a,b;
in>>a>>b;
thread t(adun,a,b);
t.join();
return 0;
}