Borderou de evaluare (job #1816665)
Utilizator | Data | 26 noiembrie 2016 18:34:18 | |
---|---|---|---|
Problema | Parb2 | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘void dfs(int)’:
user.cpp:25:38: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i = 0; i < G[node].size(); i++)
^
user.cpp: In function ‘int main()’:
user.cpp:81:32: warning: suggest parentheses around ‘-’ inside ‘<<’ [-Wparentheses]
for (int step = 1; (1<<step-1) <= N; step++)
^
user.cpp:87:42: warning: suggest parentheses around ‘-’ inside ‘<<’ [-Wparentheses]
L[i].nr[1] = (lvl[i]-(1<<step-1)) > 1 ? P[step-1][T[step-1][i]] : -1;
^
In file included from /usr/include/c++/4.8/algorithm:62:0,
from user.cpp:2:
/usr/include/c++/4.8/bits/stl_algo.h: In instantiation of ‘_RandomAccessIterator std::__unguarded_partition(_RandomAccessIterator, _RandomAccessIterator, const _Tp&, _Compare) [with _RandomAccessIterator = suffixArray*; _Tp = suffixArray; _Compare = bool (*)(suffixArray&, suffixArray&)]’:
/usr/include/c++/4.8/bits/stl_algo.h:2319:78: required from ‘_RandomAccessIterator std::__unguarded_partition_pivot(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = suffixArray*; _Compare = bool (*)(suffixArray&, suffixArray&)]’
/usr/include/c++/4.8/bits/stl_algo.h:2360:62: required from ‘void std::__introsort_loop(_RandomAccessIterator, _RandomAccessIterator, _Size, _Compare) [with _RandomAccessIterator = suffixArray*; _Size = int; _Compare = bool (*)(suffixArray&, suffixArray&)]’
/usr/include/c++/4.8/bits/stl_algo.h:5513:44: required from ‘void std::sort(_RAIter, _RAIter, _Compare) [with _RAIter = suffixArray*; _Compare = bool (*)(suffixArray&, suffixArray&)]’
user.cpp:91:28: required from here
/usr/include/c++/4.8/bits/stl_algo.h:2287:35: error: invalid initialization of reference of type ‘suffixArray&’ from expression of type ‘const suffixArray’
while (__comp(*__first, __pivot))
^
/usr/include/c++/4.8/bits/stl_algo.h:2290:34: error: invalid initialization of reference of type ‘suffixArray&’ from expression of type ‘const suffixArray’
while (__comp(__pivot, *__last))
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !