Borderou de evaluare (job #1781789)

Utilizator lucamihai901besa luca lucamihai901 Data 17 octombrie 2016 14:40:45
Problema A+B Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:2:20: error: found ‘:’ in nested-name-specifier, expected ‘::’ using namespace std: ^ user.cpp:3:1: error: ‘ifstream’ is not a namespace-name ifstream fin("adunare.in") ^ user.cpp:3:10: error: expected namespace-name before ‘fin’ ifstream fin("adunare.in") ^ user.cpp:3:10: error: expected ‘;’ before ‘fin’ user.cpp:3:13: error: expected constructor, destructor, or type conversion before ‘(’ token ifstream fin("adunare.in") ^ user.cpp: In function ‘int main()’: user.cpp:8:5: error: ‘fin’ was not declared in this scope fin>>a>>b; ^ user.cpp:8:10: error: ‘a’ was not declared in this scope fin>>a>>b; ^ user.cpp:8:13: error: ‘b’ was not declared in this scope fin>>a>>b; ^ user.cpp:9:5: error: ‘c’ was not declared in this scope c=a+b; ^ user.cpp:10:5: error: ‘fout’ was not declared in this scope fout<<c; ^

Ceva nu functioneaza?