Mai intai trebuie sa te autentifici.
Cod sursa(job #1453851)
Utilizator | Data | 24 iunie 2015 20:07:20 | |
---|---|---|---|
Problema | A+B | Scor | 100 |
Compilator | cpp | Status | done |
Runda | Arhiva de probleme | Marime | 0.28 kb |
#include <fstream>
#include <iostream>
using namespace std;
const char FIN[] = "adunare.in";
const char FOU[] = "adunare.out";
int main()
{
ifstream fi(FIN);
ofstream fo(FOU);
int a, b;
fi >> a >> b;
fo << a + b <<'\n';
//fo.flush();
return 0;
}