Borderou de evaluare (job #1800235)
Utilizator | Data | 7 noiembrie 2016 16:33:05 | |
---|---|---|---|
Problema | Criptare2 | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘int caut_bin(int, int, int)’:
user.cpp:46:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if(alice[mij].size >= find)
^
user.cpp: In function ‘int main()’:
user.cpp:76:32: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(j=0; j<current_cuv.size; j++)
^
user.cpp:78:24: warning: array subscript has type ‘char’ [-Wchar-subscripts]
if(viz[s[j]])
^
user.cpp:80:43: warning: array subscript has type ‘char’ [-Wchar-subscripts]
new_cuv.egalitati[viz[s[j]]-1].push_back(j);
^
user.cpp:85:25: warning: array subscript has type ‘char’ [-Wchar-subscripts]
viz[s[j]] = current;
^
user.cpp:92:43: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(j=0; j<new_cuv.egalitati.size(); j++)
^
user.cpp:110:66: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(j = caut_bin(0, alice.size()-1, n); alice[j].size <= n && j < alice.size(); j++)
^
user.cpp:110:86: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(j = caut_bin(0, alice.size()-1, n); alice[j].size <= n && j < alice.size(); j++)
^
user.cpp:113:33: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if(alice[j].size != n)
^
user.cpp:121:50: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(k = 0; k<alice[j].egalitati.size(); k++)
^
user.cpp:123:59: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(l = 1; l < alice[j].egalitati[k].size(); l++)
^
In file included from /usr/include/c++/4.8/algorithm:62:0,
from user.cpp:11:
/usr/include/c++/4.8/bits/stl_algo.h: In instantiation of ‘_RandomAccessIterator std::__unguarded_partition(_RandomAccessIterator, _RandomAccessIterator, const _Tp&, _Compare) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator<cuv*, std::vector<cuv> >; _Tp = cuv; _Compare = bool (*)(cuv&, cuv&)]’:
/usr/include/c++/4.8/bits/stl_algo.h:2319:78: required from ‘_RandomAccessIterator std::__unguarded_partition_pivot(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator<cuv*, std::vector<cuv> >; _Compare = bool (*)(cuv&, cuv&)]’
/usr/include/c++/4.8/bits/stl_algo.h:2360:62: required from ‘void std::__introsort_loop(_RandomAccessIterator, _RandomAccessIterator, _Size, _Compare) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator<cuv*, std::vector<cuv> >; _Size = int; _Compare = bool (*)(cuv&, cuv&)]’
/usr/include/c++/4.8/bits/stl_algo.h:5513:44: required from ‘void std::sort(_RAIter, _RAIter, _Compare) [with _RAIter = __gnu_cxx::__normal_iterator<cuv*, std::vector<cuv> >; _Compare = bool (*)(cuv&, cuv&)]’
user.cpp:101:41: required from here
/usr/include/c++/4.8/bits/stl_algo.h:2287:35: error: invalid initialization of reference of type ‘cuv&’ from expression of type ‘const cuv’
while (__comp(*__first, __pivot))
^
/usr/include/c++/4.8/bits/stl_algo.h:2290:34: error: invalid initialization of reference of type ‘cuv&’ from expression of type ‘const cuv’
while (__comp(__pivot, *__last))
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !