Borderou de evaluare (job #1774477)
Utilizator | Data | 8 octombrie 2016 23:53:51 | |
---|---|---|---|
Problema | Trapez | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘void findH(POINT2D, long long int&)’:
user.cpp:39:41: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i = 0; i < H[get_key(p)].size(); ++i)
^
user.cpp:40:88: error: invalid initialization of non-const reference of type ‘POINT2D& {aka std::pair<long long int, long long int>&}’ from an rvalue of type ‘std::pair<long long int, long long int>’
if (compare(p, make_pair(H[get_key(p)][i].first.first, H[get_key(p)][i].first.second)))
^
user.cpp:32:6: error: in passing argument 2 of ‘bool compare(POINT2D&, POINT2D&)’
bool compare(POINT2D &p1, POINT2D &p2)
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !