Cod sursa(job #13046)

Utilizator wazupPricop Mircea wazup Data 5 februarie 2007 15:02:18
Problema A+B Scor 0
Compilator cpp Status done
Runda Arhiva de probleme Marime 0.29 kb
#include <alloc.h>
#include <fstream.h>
long far *a = (long far *)farcalloc(1,sizeof(int));
long far *b = (long far *)farcalloc(1,sizeof(int));
long x,y;
int main()
{
ifstream fin("adunare.in");
ofstream fout("adunare.out");
fin>>x>>y;
*a=x;
*b=y;
fout<<*a+*b<<'\n';
return 0;
}