Borderou de evaluare (job #1015146)
Utilizator | Data | 23 octombrie 2013 22:31:50 | |
---|---|---|---|
Problema | Alpin | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘void RSort(int, nod*)’:
user.cpp:39:50: error: no matching function for call to ‘std::vector<nod>::push_back(short int&)’
liste[x%16].push_back(vectorul[i].val);
^
user.cpp:39:50: note: candidates are:
In file included from /usr/local/include/c++/4.8.0/vector:64:0,
from user.cpp:4:
/usr/local/include/c++/4.8.0/bits/stl_vector.h:901:7: note: void std::vector<_Tp, _Alloc>::push_back(const value_type&) [with _Tp = nod; _Alloc = std::allocator<nod>; std::vector<_Tp, _Alloc>::value_type = nod]
push_back(const value_type& __x)
^
/usr/local/include/c++/4.8.0/bits/stl_vector.h:901:7: note: no known conversion for argument 1 from ‘short int’ to ‘const value_type& {aka const nod&}’
/usr/local/include/c++/4.8.0/bits/stl_vector.h:919:7: note: void std::vector<_Tp, _Alloc>::push_back(std::vector<_Tp, _Alloc>::value_type&&) [with _Tp = nod; _Alloc = std::allocator<nod>; std::vector<_Tp, _Alloc>::value_type = nod]
push_back(value_type&& __x)
^
/usr/local/include/c++/4.8.0/bits/stl_vector.h:919:7: note: no known conversion for argument 1 from ‘short int’ to ‘std::vector<nod>::value_type&& {aka nod&&}’
user.cpp:44:46: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int p = 0; p < liste[i].size(); p++)
^
user.cpp: In function ‘void citire()’:
user.cpp:77:39: error: ‘struct nod’ has no member named ‘cifre’
listaSortataPuncte[u].cifre.push_back(x%10);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !