Cod sursa(job #2923074)
Utilizator | Data | 11 septembrie 2022 13:59:12 | |
---|---|---|---|
Problema | A+B | Scor | 100 |
Compilator | cpp-64 | Status | done |
Runda | Arhiva de probleme | Marime | 0.31 kb |
#include <iostream>
#include <fstream>
void execute(){
std::fstream file;
file.open("adunare.in", std::ios::in);
int a, b;
file >> a >> b;
a += b;
file.close();
file.open("adunare.out", std::ios::out);
file << a;
file.close();
}
int main(){
execute();
return 0;
}