Cod sursa(job #918100)
Utilizator | Data | 18 martie 2013 17:14:36 | |
---|---|---|---|
Problema | A+B | Scor | 0 |
Compilator | cpp | Status | done |
Runda | Arhiva de probleme | Marime | 0.34 kb |
//testez erorile de compilare de la problema "poarta" atunci cand folosesc functia abs....
#include <cmath>
#include <fstream>
using namespace std;
ifstream f("adunare.in");
ofstream g("adunare.out");
int a,b;
int main()
{
f>>a;
f>>b;
a=-a;
b=-b;
g<<abs(a+b);
f.close();
g.close();
return 0;
}