Borderou de evaluare (job #2893510)

Utilizator Rares_StefanoiuRares Stefanoiu Rares_Stefanoiu Data 26 aprilie 2022 01:10:03
Problema Muzica Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp:4:1: error: 'ifstream' does not name a type 4 | ifstream f("muzica.in"); | ^~~~~~~~ main.cpp:5:1: error: 'ofstream' does not name a type 5 | ofstream g("muzica.out"); | ^~~~~~~~ main.cpp:6:1: error: 'unordered_set' does not name a type 6 | unordered_set<long long> set(100001); | ^~~~~~~~~~~~~ main.cpp: In function 'int main()': main.cpp:10:2: error: 'f' was not declared in this scope 10 | f>>n>>m>> a >> b >> c >> d >> e; | ^ main.cpp:14:4: error: 'set' was not declared in this scope 14 | set.insert(key); | ^~~ main.cpp:4:1: note: 'std::set' is defined in header '<set>'; did you forget to '#include <set>'? 3 | #include<fstream> +++ |+#include <set> 4 | ifstream f("muzica.in"); main.cpp:16:6: error: 'set' was not declared in this scope 16 | if (set.find(a) != set.end()) | ^~~ main.cpp:16:6: note: 'std::set' is defined in header '<set>'; did you forget to '#include <set>'? main.cpp:22:6: error: 'set' was not declared in this scope 22 | if (set.find(b) != set.end()) | ^~~ main.cpp:22:6: note: 'std::set' is defined in header '<set>'; did you forget to '#include <set>'? main.cpp:31:7: error: 'set' was not declared in this scope 31 | if (set.find(key) != set.end()) { | ^~~ main.cpp:31:7: note: 'std::set' is defined in header '<set>'; did you forget to '#include <set>'? main.cpp:38:2: error: 'g' was not declared in this scope 38 | g<< nr; | ^ Non zero exit status: 1

Ceva nu functioneaza?