Cod sursa(job #1681893)
Utilizator | Data | 9 aprilie 2016 19:51:51 | |
---|---|---|---|
Problema | A+B | Scor | 0 |
Compilator | cpp | Status | done |
Runda | Arhiva de probleme | Marime | 0.39 kb |
#include <bits/stdc++.h>
#include <thread>
using namespace std;
int A, B;
void adunare() {
A += B;
}
int main() {
ifstream fin("adunare.in");
ofstream fout("adunare.out");
fin.tie(0);
ios_base::sync_with_stdio(false);
fin >> A >> B;
fin.close();
thread T(adunare);
T.join();
fout << A << '\n';
fout.close();
return 0;
}