#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 | #52585665 | Utilizator | |
Fișier | chromosome.cpp | Dimensiune | 4.18 KB |
Data încărcării | 03 Octombrie 2024, 19:37 | Scor / rezultat | Eroare de compilare |
chromosome.cpp: In function 'void bfs()': chromosome.cpp:160:46: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (int i = 0; i < g[node].size(); ++i) { ^ chromosome.cpp:163:80: error: no matching function for call to 'std::priority_queue<std::pair<int, std::pair<int, std::vector<int> > >, std::vector<std::pair<int, std::pair<int, std::vector<int> > > >, std::greater<std::pair<int, std::pair<int, std::vector<int> > > > >::push(<brace-enclosed initializer list>)' q.push({cost + g[node][i].first, {g[node][i].second, next}}); ^ chromosome.cpp:163:80: note: candidates are: In file included from /usr/include/c++/4.8/queue:64:0, from /usr/include/i386-linux-gnu/c++/4.8/bits/stdc++.h:85, from chromosome.cpp:1: /usr/include/c++/4.8/bits/stl_queue.h:496:7: note: void std::priority_queue<_Tp, _Sequence, _Compare>::push(const value_type&) [with _Tp = std::pair<int, std::pair<int, std::vector<int> > >; _Sequence = std::vector<std::pair<int, std::pair<int, std::vector<int> > > >; _Compare = std::greater<std::pair<int, std::pair<int, std::vector<int> > > >; std::priority_queue<_Tp, _Sequence, _Compare>::value_type = std::pair<int, std::pair<int, std::vector<int> > >] push(const value_type& __x) ^ /usr/include/c++/4.8/bits/stl_queue.h:496:7: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'const value_type& {aka const std::pair<int, std::pair<int, std::vector<int> > >&}' /usr/include/c++/4.8/bits/stl_queue.h:504:7: note: void std::priority_queue<_Tp, _Sequence, _Compare>::push(std::priority_queue<_Tp, _Sequence, _Compare>::value_type&&) [with _Tp = std::pair<int, std::pair<int, std::vector<int> > >; _Sequence = std::vector<std::pair<int, std::pair<int, std::vector<int> > > >; _Compare = std::greater<std::pair<int, std::pair<int, std::vector<int> > > >; std::priority_queue<_Tp, _Sequence, _Compare>::value_type = std::pair<int, std::pair<int, std::vector<int> > >] push(value_type&& __x) ^ /usr/include/c++/4.8/bits/stl_queue.h:504:7: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'std::priority_queue<std::pair<int, std::pair<int, std::vector<int> > >, std::vector<std::pair<int, std::pair<int, std::vector<int> > > >, std::greater<std::pair<int, std::pair<int, std::vector<int> > > > >::value_type&& {aka std::pair<int, std::pair<int, std::vector<int> > >&&}' chromosome.cpp: In member function 'char InParser::read_ch()': chromosome.cpp:75:29: warning: ignoring return value of 'size_t fread(void*, size_t, size_t, FILE*)', declared with attribute warn_unused_result [-Wunused-result] fread(buff, 1, 4096, fin); ^
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ă.