Borderou de evaluare (job #709524)

Utilizator avatar TudorToma Tudor Toma TudorToma IP ascuns
Problemă Maxnr (clasa a 5-a) Compilator cpp-32
Rundă Arhiva de probleme Status evaluat
Dată 19 mar. 2023 11:29:50 Scor 0

Raport evaluator

Eroare de compilare: main.cpp:8:15: warning: missing terminating " character 8 | ofstream cout("maxnr.out); | ^ main.cpp:8:15: error: missing terminating " character 8 | ofstream cout("maxnr.out); | ^~~~~~~~~~~~ main.cpp:10:11: error: expected ')' before '{' token 10 | int main() | ^ | ) 11 | { | ~ main.cpp:8:14: note: to match this '(' 8 | ofstream cout("maxnr.out); | ^ main.cpp: In function 'std::ofstream cout(int (*)())': main.cpp:23:17: error: invalid operands of types 'std::ofstream(int (*)())' {aka 'std::basic_ofstream<char>(int (*)())'} and 'int' to binary 'operator<<' 23 | cout<<i; | ~~~~^~~ | | | | | int | std::ofstream(int (*)()) {aka std::basic_ofstream<char>(int (*)())} main.cpp:26:12: error: could not convert '0' from 'int' to 'std::ofstream' {aka 'std::basic_ofstream<char>'} 26 | return 0; | ^ | | | int