Borderou de evaluare (job #1335632)
Utilizator | FII-Pintilie Andrei Pintilie_Andrei | Data | 5 februarie 2015 19:37:32 |
---|---|---|---|
Problema | Maimute | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘void BFS()’:
user.cpp:38:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(i=0; i<a[nod].size(); i++)
^
user.cpp:41:13: error: reference to ‘next’ is ambiguous
next[nod].push_back(a[nod][i]);
^
user.cpp:9:14: note: candidates are: std::vector<int> next [100004]
vector <int> next[N];
^
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/ostream:38,
from /usr/include/c++/4.8/iostream:39,
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: In function ‘int DFSup(int, int)’:
user.cpp:50:30: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i=0; i<a[x].size(); i++)
^
user.cpp: In function ‘int DFSdown(int, int)’:
user.cpp:60:30: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i=0; i<a[x].size(); i++)
^
user.cpp: In function ‘void Read2()’:
user.cpp:70:17: warning: unused variable ‘ok2’ [-Wunused-variable]
int x,y,ok1,ok2;
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !