Borderou de evaluare (job #747473)

Utilizator avatar RaresAndrei2008 Gospodin Rares Andrei RaresAndrei2008 IP ascuns
Problemă Centru Prim (clasa a 5-a) Compilator cpp-32
Rundă vs_beginner_25_nov Status evaluat
Dată 25 nov. 2023 11:25:42 Scor 0

Raport evaluator

Eroare de compilare: main.cpp:5:15: warning: missing terminating " character 5 | ofstream fout("centruprim.out; | ^ main.cpp:5:15: error: missing terminating " character 5 | ofstream fout("centruprim.out; | ^~~~~~~~~~~~~~~~ main.cpp:6:11: error: expected ')' before '{' token 6 | int main() | ^ | ) 7 | { | ~ main.cpp:5:14: note: to match this '(' 5 | ofstream fout("centruprim.out; | ^ main.cpp: In function 'std::ofstream fout(int (*)())': main.cpp:20:9: error: invalid operands of types 'std::ofstream(int (*)())' {aka 'std::basic_ofstream<char>(int (*)())'} and 'int' to binary 'operator<<' 20 | fout<<1; | ~~~~^~~ | | | | | int | std::ofstream(int (*)()) {aka std::basic_ofstream<char>(int (*)())} main.cpp:30:13: error: invalid operands of types 'std::ofstream(int (*)())' {aka 'std::basic_ofstream<char>(int (*)())'} and 'int' to binary 'operator<<' 30 | fout<<1; | ~~~~^~~ | | | | | int | std::ofstream(int (*)()) {aka std::basic_ofstream<char>(int (*)())} main.cpp:32:13: error: invalid operands of types 'std::ofstream(int (*)())' {aka 'std::basic_ofstream<char>(int (*)())'} and 'int' to binary 'operator<<' 32 | fout<<0; | ~~~~^~~ | | | | | int | std::ofstream(int (*)()) {aka std::basic_ofstream<char>(int (*)())} main.cpp:34:12: error: could not convert '0' from 'int' to 'std::ofstream' {aka 'std::basic_ofstream<char>'} 34 | return 0; | ^ | | | int