Borderou de evaluare (job #1826463)
Utilizator | Data | 10 decembrie 2016 14:51:36 | |
---|---|---|---|
Problema | Lanterna | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘int main()’:
user.cpp:38:5: error: ‘class std::queue<std::tuple<int, int, int> >’ has no member named ‘push_back’
Q.push_back(make_tuple(0, 0, W));
^
user.cpp:43:35: error: ‘node’ was not declared in this scope
for (auto neighbor : neighbors[node])
^
user.cpp:52:8: error: ‘class std::queue<std::tuple<int, int, int> >’ has no member named ‘push_back’
Q.push_back(make_tuple(nextNode, curT + nextT, curW + nextW));
^
user.cpp:57:5: error: cannot convert ‘__gnu_cxx::__normal_iterator<int*, std::vector<int> >’ to ‘int’ in assignment
T = min_element(cost[N-1].begin(), cost[N-1].end(), INF);
^
In file included from /usr/include/c++/4.8/algorithm:62:0,
from user.cpp:5:
/usr/include/c++/4.8/bits/stl_algo.h: In instantiation of ‘_FIter std::min_element(_FIter, _FIter, _Compare) [with _FIter = __gnu_cxx::__normal_iterator<int*, std::vector<int> >; _Compare = int]’:
user.cpp:57:58: required from here
/usr/include/c++/4.8/bits/stl_algo.h:6284:32: error: ‘__comp’ cannot be used as a function
if (__comp(*__first, *__result))
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !