Borderou de evaluare (job #3282127)

Utilizator eul2Andrei Takacs Rares eul2 Data 4 martie 2025 17:10:11
Problema Chat Status done
Runda arhiva-utcn Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp:2:1: error: 'ifstream' does not name a type 2 | ifstream f("chat.in"); | ^~~~~~~~ main.cpp:3:1: error: 'ofstream' does not name a type 3 | ofstream g("chat.out") | ^~~~~~~~ main.cpp: In function 'int main()': main.cpp:8:5: error: 'f' was not declared in this scope 8 | f>>T; | ^ main.cpp:20:18: error: 'g' was not declared in this scope 20 | if(scor) g<<"DA"<<endl; | ^ main.cpp:20:27: error: 'endl' was not declared in this scope; did you mean 'std::endl'? 20 | if(scor) g<<"DA"<<endl; | ^~~~ | std::endl In file included from /usr/include/c++/12.2.1/istream:39, from /usr/include/c++/12.2.1/sstream:38, from /usr/include/c++/12.2.1/complex:45, from /usr/include/c++/12.2.1/ccomplex:39, from /usr/include/c++/12.2.1/x86_64-pc-linux-gnu/bits/stdc++.h:54, from main.cpp:1: /usr/include/c++/12.2.1/ostream:688:5: note: 'std::endl' declared here 688 | endl(basic_ostream<_CharT, _Traits>& __os) | ^~~~ main.cpp:21:14: error: 'g' was not declared in this scope 21 | else g<<"NU"<<endl; | ^ main.cpp:21:23: error: 'endl' was not declared in this scope; did you mean 'std::endl'? 21 | else g<<"NU"<<endl; | ^~~~ | std::endl /usr/include/c++/12.2.1/ostream:688:5: note: 'std::endl' declared here 688 | endl(basic_ostream<_CharT, _Traits>& __os) | ^~~~ Non zero exit status: 1

Ceva nu functioneaza?