Borderou de evaluare (job #1040369)

Utilizator alexalghisiAlghisi Alessandro Paolo alexalghisi Data 24 noiembrie 2013 14:29:08
Problema Pariuri Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:6:1: error: ‘map’ does not name a type map<int,int> mp; ^ user.cpp:7:1: error: ‘set’ does not name a type set<int> st; ^ user.cpp:8:1: error: ‘set’ does not name a type set<int>::iterator it; ^ user.cpp: In function ‘int main()’: user.cpp:13:5: error: ‘ifstream’ was not declared in this scope ifstream f("pariuri.in"); ^ user.cpp:13:5: note: suggested alternative: In file included from /usr/local/include/c++/4.8.0/ios:38:0, from /usr/local/include/c++/4.8.0/ostream:38, from /usr/local/include/c++/4.8.0/iostream:39, from user.cpp:1: /usr/local/include/c++/4.8.0/iosfwd:157:34: note: ‘std::ifstream’ typedef basic_ifstream<char> ifstream; ^ user.cpp:13:14: error: expected ‘;’ before ‘f’ ifstream f("pariuri.in"); ^ user.cpp:14:5: error: ‘ofstream’ was not declared in this scope ofstream g("pariuri.out"); ^ user.cpp:14:5: note: suggested alternative: In file included from /usr/local/include/c++/4.8.0/ios:38:0, from /usr/local/include/c++/4.8.0/ostream:38, from /usr/local/include/c++/4.8.0/iostream:39, from user.cpp:1: /usr/local/include/c++/4.8.0/iosfwd:160:34: note: ‘std::ofstream’ typedef basic_ofstream<char> ofstream; ^ user.cpp:14:14: error: expected ‘;’ before ‘g’ ofstream g("pariuri.out"); ^ user.cpp:15:5: error: ‘f’ was not declared in this scope f>>n; ^ user.cpp:24:13: error: ‘mp’ was not declared in this scope mp[timp]+=s; ^ user.cpp:25:13: error: ‘st’ was not declared in this scope st.insert(timp); ^ user.cpp:28:5: error: ‘g’ was not declared in this scope g<<st.size()<<"\n"; ^

Ceva nu functioneaza?