Problema | Optimize | Operații I/O |
![]() input.txt /output.txt
|
---|---|---|---|
Limita timp | 0.3 secunde | Limita memorie |
Total: 10 MB
/
Stivă 10 MB
|
Id soluție | #30174036 | Utilizator | |
Fișier | optimize.cpp | Dimensiune | 406 B |
Data încărcării | 17 Iunie 2021, 20:25 | Scor / rezultat | Eroare de compilare |
optimize.cpp:21:11: error: 'vector' has not been declared void nule(vector<int> &v) ^ optimize.cpp:21:17: error: expected ',' or '...' before '<' token void nule(vector<int> &v) ^ optimize.cpp: In member function 'void Function::nule(int)': optimize.cpp:24:18: error: 'v' was not declared in this scope while(first <v.size() && second<v.size()) ^ optimize.cpp:27:36: error: 'swap' was not declared in this scope swap(v[first],v[second]); ^ optimize.cpp:27:36: note: suggested alternatives: In file included from /usr/include/c++/4.8/vector:65:0, from optimize.cpp:7: /usr/include/c++/4.8/bits/stl_bvector.h:128:3: note: 'std::swap' swap(bool& __x, _Bit_reference __y) noexcept ^ In file included from /usr/include/c++/4.8/exception:152:0, from /usr/include/c++/4.8/ios:39, from /usr/include/c++/4.8/ostream:38, from /usr/include/c++/4.8/iostream:39, from optimize.cpp:6: /usr/include/c++/4.8/bits/exception_ptr.h:160:5: note: 'std::__exception_ptr::swap' swap(exception_ptr& __lhs, exception_ptr& __rhs) ^ optimize.cpp: In function 'int main()': optimize.cpp:100:13: error: no matching function for call to 'Function::nule(std::vector<int>&)' f.nule(v); ^ optimize.cpp:100:13: note: candidate is: optimize.cpp:21:6: note: void Function::nule(int) void nule(vector<int> &v) ^ optimize.cpp:21:6: note: no known conversion for argument 1 from 'std::vector<int>' to 'int'
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema Optimize face parte din a doua categorie. Pentru aceste probleme se folosește un program suport, furnizat de propunătorul problemei. 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ă.