Borderou de evaluare (job #2639150)

Utilizator murariudenismarian@gmail.comMurariu Denis Marian [email protected] Data 31 iulie 2020 16:13:23
Problema A+B Status done
Runda Arhiva de probleme Compilator cpp-32 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp:5:5: error: cannot declare '::main' to be a global variable int main{ ^~~~ main.cpp:7:3: error: expected primary-expression before 'int' int a; ^~~ main.cpp:7:3: error: expected '}' before 'int' main.cpp:9:12: error: variable 'std::ifstream f' has initializer but incomplete type ifstream f("adunare.in"); ^ main.cpp:10:12: error: variable 'std::ofstream g' has initializer but incomplete type ofstream g("adunare.out"); ^ main.cpp:11:2: error: 'f' does not name a type f >> a; ^ main.cpp:12:2: error: 'f' does not name a type f >> b; ^ main.cpp:13:2: error: 'g' does not name a type g << a + b << endl; ^ main.cpp:15:2: error: expected unqualified-id before 'return' return 0; ^~~~~~ main.cpp:16:1: error: expected declaration before '}' token } ^ Non zero exit status: 1

Ceva nu functioneaza?