Borderou de evaluare (job #1614999)
Utilizator | Data | 26 februarie 2016 12:49:55 | |
---|---|---|---|
Problema | Cartite | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘void rez2()’:
user.cpp:121:9: error: ‘grad’ was not declared in this scope
grad[nod1]++;
^
user.cpp:127:21: error: no matching function for call to ‘std::deque<std::pair<int, int> >::push_back(int&)’
q.push_back(plec);
^
user.cpp:127:21: note: candidates are:
In file included from /usr/include/c++/4.8/deque:64:0,
from user.cpp:2:
/usr/include/c++/4.8/bits/stl_deque.h:1390:7: note: void std::deque<_Tp, _Alloc>::push_back(const value_type&) [with _Tp = std::pair<int, int>; _Alloc = std::allocator<std::pair<int, int> >; std::deque<_Tp, _Alloc>::value_type = std::pair<int, int>]
push_back(const value_type& __x)
^
/usr/include/c++/4.8/bits/stl_deque.h:1390:7: note: no known conversion for argument 1 from ‘int’ to ‘const value_type& {aka const std::pair<int, int>&}’
/usr/include/c++/4.8/bits/stl_deque.h:1404:7: note: void std::deque<_Tp, _Alloc>::push_back(std::deque<_Tp, _Alloc>::value_type&&) [with _Tp = std::pair<int, int>; _Alloc = std::allocator<std::pair<int, int> >; std::deque<_Tp, _Alloc>::value_type = std::pair<int, int>]
push_back(value_type&& __x)
^
/usr/include/c++/4.8/bits/stl_deque.h:1404:7: note: no known conversion for argument 1 from ‘int’ to ‘std::deque<std::pair<int, int> >::value_type&& {aka std::pair<int, int>&&}’
user.cpp:130:12: error: cannot convert ‘std::pair<int, int>’ to ‘int’ in assignment
nod=q.back();
^
user.cpp:131:12: error: ‘grad’ was not declared in this scope
if(grad[nod]==0)
^
user.cpp:138:13: error: ‘x1’ was not declared in this scope
x1=drum[nod].back();
^
user.cpp:139:13: error: ‘x2’ was not declared in this scope
x2=muchie[nod].back();
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !