masinute.cpp:4:17: error: 'stdl' is not a namespace-name using namespace stdl ^ masinute.cpp:5:1: error: expected namespace-name before 'ifstream' ifstream f("masinute.in"); ^ masinute.cpp:5:1: error: expected ';' before 'ifstream' masinute.cpp:5:1: error: 'ifstream' does not name a type masinute.cpp:6:1: error: 'ofstream' does not name a type ofstream g("masinute.out"); ^ masinute.cpp: In function 'int main()': masinute.cpp:11:5: error: 'f' was not declared in this scope f>>n; ^ masinute.cpp:15:21: error: 'max' was not declared in this scope v[i]=max(a,b); ^ masinute.cpp:15:21: note: suggested alternative: In file included from /usr/include/c++/4.8/algorithm:62:0, from masinute.cpp:3: /usr/include/c++/4.8/bits/stl_algo.h:4236:5: note: 'std::max' max(initializer_list<_Tp> __l, _Compare __comp) ^ masinute.cpp:17:19: error: 'sort' was not declared in this scope sort(v+1,v+1+n); ^ masinute.cpp:17:19: note: suggested alternative: In file included from /usr/include/c++/4.8/algorithm:62:0, from masinute.cpp:3: /usr/include/c++/4.8/bits/stl_algo.h:5483:5: note: 'std::sort' sort(_RandomAccessIterator __first, _RandomAccessIterator __last, ^ masinute.cpp:26:5: error: 'g' was not declared in this scope g<<s<<" "<<k; ^
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema face parte din prima categorie. Soluția propusă de tine va fi evaluată astfel:
Suma punctajelor acordate pe testele utilizate pentru verificare este 100. Astfel, soluția ta poate obține cel mult 100 de puncte, caz în care se poate considera corectă.