Borderou de evaluare (job #1724939)

Utilizator AndreeaEEnuca Andreea Ramona AndreeaE Data 4 iulie 2016 16:43:56
Problema CMMDC Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In function ‘int main()’: user.cpp:7:5: error: ‘ifstream’ was not declared in this scope ifstream f("adunare.in"); ^ user.cpp:7:14: error: expected ‘;’ before ‘f’ ifstream f("adunare.in"); ^ user.cpp:8:5: error: ‘f’ was not declared in this scope f>>a>>b; ^ user.cpp:10:5: error: ‘ofstream’ was not declared in this scope ofstream g("adunare.out"); ^ user.cpp:10:14: error: expected ‘;’ before ‘g’ ofstream g("adunare.out"); ^ user.cpp:11:17: warning: suggest parentheses around comparison in operand of ‘!=’ [-Wparentheses] while (a!=b <30000) { ^ user.cpp:12:9: error: ‘x’ was not declared in this scope x=abs(a-b); ^ user.cpp:18:13: error: ‘out’ was not declared in this scope fprintf(out,"%d",a); ^

Ceva nu functioneaza?