Borderou de evaluare (job #1603017)

Utilizator iulian_f2kGuraliuc Iulian iulian_f2k Data 17 februarie 2016 09:31:51
Problema Energii Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:5:1: error: ‘usinge’ does not name a type usinge namespace std; ^ user.cpp:6:1: error: ‘vector’ does not name a type vector<pair<int, int> > Ob; ^ user.cpp: In function ‘int main()’: user.cpp:14:5: error: ‘Ob’ was not declared in this scope Ob.push_back(make_pair(0, 0)); ^ user.cpp:14:32: error: ‘make_pair’ was not declared in this scope Ob.push_back(make_pair(0, 0)); ^ user.cpp:14:32: note: suggested alternative: In file included from /usr/include/c++/4.8/bits/stl_algobase.h:64:0, from /usr/include/c++/4.8/bits/char_traits.h:39, from /usr/include/c++/4.8/ios:40, from /usr/include/c++/4.8/ostream:38, from /usr/include/c++/4.8/iostream:39, from user.cpp:1: /usr/include/c++/4.8/bits/stl_pair.h:276:5: note: ‘std::make_pair’ make_pair(_T1&& __x, _T2&& __y) ^ user.cpp:21:5: error: ‘vector’ was not declared in this scope vector<int>D1(cMax+5), D2(cMax+5); ^ user.cpp:21:5: note: suggested alternative: In file included from /usr/include/c++/4.8/vector:64:0, from user.cpp:4: /usr/include/c++/4.8/bits/stl_vector.h:210:11: note: ‘std::vector’ class vector : protected _Vector_base<_Tp, _Alloc> ^ user.cpp:21:12: error: expected primary-expression before ‘int’ vector<int>D1(cMax+5), D2(cMax+5); ^ user.cpp:21:12: error: expected ‘;’ before ‘int’ user.cpp:24:9: error: ‘D2’ was not declared in this scope D2.swap(D1); ^ user.cpp:24:17: error: ‘D1’ was not declared in this scope D2.swap(D1); ^ user.cpp:29:82: error: ‘max’ was not declared in this scope D2[cost] = max(D2[cost], (D1[cost - Ob[o].first] + Ob[o].second) ); ^ user.cpp:29:82: note: suggested alternative: In file included from /usr/include/c++/4.8/bits/char_traits.h:39:0, from /usr/include/c++/4.8/ios:40, from /usr/include/c++/4.8/ostream:38, from /usr/include/c++/4.8/iostream:39,

Ceva nu functioneaza?