Cod sursa(job #3143628)
Utilizator | Data | 31 iulie 2023 22:19:22 | |
---|---|---|---|
Problema | A+B | Scor | 0 |
Compilator | cpp-64 | Status | done |
Runda | Arhiva de probleme | Marime | 0.23 kb |
#include <iostream>
#include <fstream>
ifstream f("adunare.in");
ofstream g("adunare.out");
using namespace std;
int x,y;
int suma(int a, int b)
{
f>>a>>b;
return a+b;
}
int main()
{
g<<suma(x,y);
}