Borderou de evaluare (job #860408)

Utilizator avatar MindofFire Țurcanu Cristian MindofFire IP ascuns
Problemă Pește (clasa a 6-a) Compilator cpp
Rundă Arhiva de probleme Status evaluat
Dată 19 mai 2026 16:37:59 Scor 0

Raport evaluator

Eroare de compilare: main.cpp:7:16: error: variable 'std::ifstream Plesca' has initializer but incomplete type 7 | ifstream Plesca("peste.in"); | ^ main.cpp:5:1: note: 'std::ifstream' is defined in header '<fstream>'; this is probably fixable by adding '#include <fstream>' 4 | #include <algorithm> +++ |+#include <fstream> 5 | main.cpp:8:16: error: variable 'std::ofstream Ozerov' has initializer but incomplete type 8 | ofstream Ozerov("peste.out") | ^ main.cpp:8:16: note: 'std::ofstream' is defined in header '<fstream>'; this is probably fixable by adding '#include <fstream>' main.cpp:9:1: error: expected ',' or ';' before 'bool' 9 | bool cmp(string a, string b) { | ^~~~ main.cpp: In function 'int main()': main.cpp:40:34: error: 'cmp' was not declared in this scope 40 | sort(v.begin(), v.end(), cmp); | ^~~