Borderou de evaluare (job #725179)

Utilizator avatar TudorAndreiPatrascu Tudor Andrei Patrascu TudorAndreiPatrascu IP ascuns
Problemă Joc3 (clasa a 6-a) Compilator cpp-32
Rundă Arhiva de probleme Status evaluat
Dată 28 iun. 2023 17:12:15 Scor 0

Raport evaluator

Eroare de compilare: main.cpp:6:1: error: 'ifstream' does not name a type 6 | ifstream f("joc.in"); | ^~~~~~~~ main.cpp:7:1: error: 'ofstream' does not name a type 7 | ofstream g("joc.out"); | ^~~~~~~~ main.cpp: In function 'int main()': main.cpp:13:3: error: 'f' was not declared in this scope 13 | f>>n>>x>>y; | ^ main.cpp:25:3: error: 'g' was not declared in this scope 25 | g<<t<<' '<<s<<' '<<b<<' '<<r<<endl; | ^ main.cpp:25:33: error: 'endl' was not declared in this scope; did you mean 'std::endl'? 25 | g<<t<<' '<<s<<' '<<b<<' '<<r<<endl; | ^~~~ | 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:4: /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) | ^~~~ main.cpp:12:20: warning: unused variable 'i' [-Wunused-variable] 12 | { long t=0,s=0,b,r,i; | ^