Cod sursa(job #594506)
Utilizator | Data | 8 iunie 2011 00:26:53 | |
---|---|---|---|
Problema | A+B | Scor | 100 |
Compilator | cpp | Status | done |
Runda | Lista lui wefgef | Marime | 0.28 kb |
#include <iostream>
using namespace std;
template<class T>
int f(T x, T y)
{ return x+y;
}
int f(int x, int y)
{ return x+y;
}
int main()
{ freopen("adunare.in","r",stdin);
freopen("adunare.out","w",stdout);
int a=5;
float b=8.6;
cin>>a>>b;
cout<<f(a,b)<<endl;
return 0;
}