Borderou de evaluare (job #1725459)
Utilizator | Data | 5 iulie 2016 18:50:47 | |
---|---|---|---|
Problema | Sushi2 | 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:44:36: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i = 0; i < v[nod].size(); i++){
^
user.cpp: In function ‘int main()’:
user.cpp:75:9: error: reference to ‘next’ is ambiguous
next[ f[ ce[i] ] ] = i;
^
user.cpp:7:51: note: candidates are: int next [200010]
int viz[DIM], ce[2 * DIM], aint[8 * DIM], s[DIM], next[2 * DIM], f[DIM], ff[DIM];
^
In file included from /usr/include/c++/4.8/bits/stl_algobase.h:66:0,
from /usr/include/c++/4.8/bits/char_traits.h:39,
from /usr/include/c++/4.8/ios:40,
from /usr/include/c++/4.8/istream:38,
from /usr/include/c++/4.8/fstream:38,
from user.cpp:1:
/usr/include/c++/4.8/bits/stl_iterator_base_funcs.h:184:5: note: template<class _ForwardIterator> _ForwardIterator std::next(_ForwardIterator, typename std::iterator_traits<_Iter>::difference_type)
next(_ForwardIterator __x, typename
^
user.cpp:81:44: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(j = 0; j < v[ ce[i] ].size(); j++){
^
user.cpp:104:33: error: reference to ‘next’ is ambiguous
query(1, 1, nr1, i + 1, next[i]);
^
user.cpp:7:51: note: candidates are: int next [200010]
int viz[DIM], ce[2 * DIM], aint[8 * DIM], s[DIM], next[2 * DIM], f[DIM], ff[DIM];
^
In file included from /usr/include/c++/4.8/bits/stl_algobase.h:66:0,
from /usr/include/c++/4.8/bits/char_traits.h:39,
from /usr/include/c++/4.8/ios:40,
from /usr/include/c++/4.8/istream:38,
from /usr/include/c++/4.8/fstream:38,
from user.cpp:1:
/usr/include/c++/4.8/bits/stl_iterator_base_funcs.h:184:5: note: template<class _ForwardIterator> _ForwardIterator std::next(_ForwardIterator, typename std::iterator_traits<_Iter>::difference_type)
next(_ForwardIterator __x, typename
^
user.cpp:105:34: error: reference to ‘next’ is ambiguous
s[ ce[i] ] = max(maxim + next[i], s[ ce[i] ]);
^
user.cpp:7:51: note: candidates are: int next [200010]
int viz[DIM], ce[2 * DIM], aint[8 * DIM], s[DIM], next[2 * DIM], f[DIM], ff[DIM];
^
In file included from /usr/include/c++/4.8/bits/stl_algobase.h:66:0,
from /usr/include/c++/4.8/bits/char_traits.h:39,
from /usr/include/c++/4.8/ios:40,
from /usr/include/c++/4.8/istream:38,
from /usr/include/c++/4.8/fstream:38,
from user.cpp:1:
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !