#3580
chromosome
Un grup de geneticieni desfășoară un studiu amplu de analizare a genomului uman, propunându-și să determine serii optime de conexiuni intercromozomiale ale ADN-ului uman.
Problema | chromosome | Operații I/O |
chromosome.in /chromosome.out
|
---|---|---|---|
Limita timp | 1.5 secunde | Limita memorie |
Total: 32 MB
/
Stivă 16 MB
|
Id soluție | #52586279 | Utilizator | |
Fișier | chromosome.cpp | Dimensiune | 2.01 KB |
Data încărcării | 03 Octombrie 2024, 19:50 | Scor / rezultat | Eroare de compilare |
chromosome.cpp: In function 'void bfs()': chromosome.cpp:41:48: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (short i = 0; i < g[node].size(); ++i) { ^ In file included from /usr/include/c++/4.8/algorithm:62:0, from /usr/include/i386-linux-gnu/c++/4.8/bits/stdc++.h:64, from chromosome.cpp:1: /usr/include/c++/4.8/bits/stl_algo.h: In instantiation of '_RandomAccessIterator std::__unguarded_partition(_RandomAccessIterator, _RandomAccessIterator, const _Tp&, _Compare) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator<std::pair<int, std::vector<short int> >*, std::vector<std::pair<int, std::vector<short int> > > >; _Tp = std::pair<int, std::vector<short int> >; _Compare = bool (*)(std::pair<int, std::vector<short int> >&, std::pair<int, std::vector<short int> >&)]': /usr/include/c++/4.8/bits/stl_algo.h:2296:78: required from '_RandomAccessIterator std::__unguarded_partition_pivot(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator<std::pair<int, std::vector<short int> >*, std::vector<std::pair<int, std::vector<short int> > > >; _Compare = bool (*)(std::pair<int, std::vector<short int> >&, std::pair<int, std::vector<short int> >&)]' /usr/include/c++/4.8/bits/stl_algo.h:2337:62: required from 'void std::__introsort_loop(_RandomAccessIterator, _RandomAccessIterator, _Size, _Compare) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator<std::pair<int, std::vector<short int> >*, std::vector<std::pair<int, std::vector<short int> > > >; _Size = int; _Compare = bool (*)(std::pair<int, std::vector<short int> >&, std::pair<int, std::vector<short int> >&)]' /usr/include/c++/4.8/bits/stl_algo.h:5499:44: required from 'void std::sort(_RAIter, _RAIter, _Compare) [with _RAIter = __gnu_cxx::__normal_iterator<std::pair<int, std::vector<short int> >*, std::vector<std::pair<int, std::vector<short int> > > >; _Compare = bool (*)(std::pair<int, std::vector<short int> >&, std::pair<int, std::vector<short int> >&)]' chromosome.cpp:62:38: required from here /usr/include/c++/4.8/bits/stl_algo.h:2263:35: error: invalid initialization of reference of type 'std::pair<int, std::vector<short int> >&' from expression of type 'const std::pair<int, std::vector<short int> >' while (__comp(*__first, __pivot)) ^ /usr/include/c++/4.8/bits/stl_algo.h:2266:34: error: invalid initialization of reference of type 'std::pair<int, std::vector<short int> >&' from expression of type 'const std::pair<int, std::vector<short int> >' while (__comp(__pivot, *__last)) ^
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema chromosome 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ă.