Borderou de evaluare (job #2896609)

Utilizator ggutaGuta George gguta Data 30 aprilie 2022 00:20:53
Problema Muzica Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp:5:1: error: 'usfg' does not name a type 5 | usfg namespace std; | ^~~~ main.cpp:8:1: error: 'unordered_set' does not name a type 8 | unordered_set<long long> q(100001); | ^~~~~~~~~~~~~ main.cpp: In function 'int main()': main.cpp:11:5: error: 'ifstream' was not declared in this scope; did you mean 'std::ifstream'? 11 | ifstream f("muzica.in"); | ^~~~~~~~ | std::ifstream In file included from /usr/include/c++/10/ios:38, from /usr/include/c++/10/ostream:38, from /usr/include/c++/10/iostream:39, from main.cpp:1: /usr/include/c++/10/iosfwd:162:34: note: 'std::ifstream' declared here 162 | typedef basic_ifstream<char> ifstream; | ^~~~~~~~ main.cpp:12:5: error: 'ofstream' was not declared in this scope; did you mean 'std::ofstream'? 12 | ofstream g("muzica.out"); | ^~~~~~~~ | std::ofstream In file included from /usr/include/c++/10/ios:38, from /usr/include/c++/10/ostream:38, from /usr/include/c++/10/iostream:39, from main.cpp:1: /usr/include/c++/10/iosfwd:165:34: note: 'std::ofstream' declared here 165 | typedef basic_ofstream<char> ofstream; | ^~~~~~~~ main.cpp:13:5: error: 'f' was not declared in this scope 13 | f >> n >> m >> a >> b >> c >> d >> e; | ^ main.cpp:18:9: error: 'q' was not declared in this scope 18 | q.insert(s); | ^ main.cpp:23:12: error: 'q' was not declared in this scope 23 | if(q.count(a)) | ^ main.cpp:32:5: error: 'g' was not declared in this scope 32 | g << nr; | ^ Non zero exit status: 1

Ceva nu functioneaza?