Borderou de evaluare (job #720402)

Utilizator avatar haiducii Haiducii haiducii IP ascuns
Problemă Domino2 (clasa a 5-a) Compilator cpp-32
Rundă Arhiva de probleme Status evaluat
Dată 18 mai 2023 20:56:21 Scor 0

Raport evaluator

Eroare de compilare: main.cpp:5:1: error: 'ifstream' does not name a type 5 | ifstream f("domino.in"); | ^~~~~~~~ main.cpp:6:1: error: 'ofstream' does not name a type 6 | ofstream g("domino.out"); | ^~~~~~~~ main.cpp:7:1: error: '::main' must return 'int' 7 | void main() | ^~~~ main.cpp: In function 'int main()': main.cpp:10:3: error: 'f' was not declared in this scope 10 | f>>n; | ^ main.cpp:27:3: error: 'g' was not declared in this scope 27 | g<<nd<<endl<<nmax; | ^ main.cpp:27:10: error: 'endl' was not declared in this scope; did you mean 'std::endl'? 27 | g<<nd<<endl<<nmax; | ^~~~ | std::endl In file included from /usr/lib/gcc/i686-pc-linux-gnu/12/include/g++-v12/istream:39, from /usr/lib/gcc/i686-pc-linux-gnu/12/include/g++-v12/fstream:38, from main.cpp:1: /usr/lib/gcc/i686-pc-linux-gnu/12/include/g++-v12/ostream:688:5: note: 'std::endl' declared here 688 | endl(basic_ostream<_CharT, _Traits>& __os) | ^~~~