Borderou de evaluare (job #1137321)
Utilizator | Data | 9 martie 2014 12:38:53 | |
---|---|---|---|
Problema | Friend of Friend | Status | done |
Runda | ONIS 2014, Runda 3 | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘bool comp(std::pair<int, int>, std::pair<int, int>)’:
user.cpp:17:51: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses]
return A.second > B.second || A.second==B.second && A.first<B.first;
^
user.cpp: In function ‘void BFS(int)’:
user.cpp:52:38: error: ‘sort’ was not declared in this scope
sort (vect.begin(), vect.end(), comp);
^
user.cpp:53:24: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (i=0; i<vect.size(); i++)
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !