Cod sursa(job #2049931)
Utilizator | Data | 27 octombrie 2017 20:09:59 | |
---|---|---|---|
Problema | A+B | Scor | 100 |
Compilator | c | Status | done |
Runda | Arhiva de probleme | Marime | 0.27 kb |
#include <stdio.h>
int a, b;
__attribute__ ((constructor))
void init() {
freopen("adunare.in", "r", stdin);
freopen("adunare.out", "w", stdout);
scanf("%d %d", &a, &b);
}
__attribute__ ((destructor))
void write() {
printf("%d", a + b);
}
int main() {
return 0;
}