Borderou de evaluare (job #2591548)
Utilizator | Data | 30 martie 2020 18:59:25 | |
---|---|---|---|
Problema | ADN | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int cauta(int, int)':
main.cpp:31:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(i = 0 ; i < v[x].size() ; i ++)
~~^~~~~~~~~~~~~
main.cpp: In function 'int unionstr(int, int)':
main.cpp:64:1: warning: no return statement in function returning non-void [-Wreturn-type]
}
^
main.cpp: In function 'void afisare(int, int)':
main.cpp:68:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(i = 0 ; i < G[x].size() ; i ++)
~~^~~~~~~~~~~~~
main.cpp:71:29: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(j = G[x][i].poz ; j < v[y].length() ; j ++)
~~^~~~~~~~~~~~~~~
main.cpp: In function 'int main()':
main.cpp:97:13: error: reference to 'prev' is ambiguous
prev[(1 << j)][j] = -1;
^~~~
main.cpp:18:28: note: candidates are: int prev [262144][19]
int d[1 << 18][NMAX + 1] , prev[1 << 18][NMAX + 1] , fbd;
^~~~
In file included from /usr/include/c++/6/bits/stl_algobase.h:66:0,
from /usr/include/c++/6/bits/char_traits.h:39,
from /usr/include/c++/6/string:40,
from main.cpp:2:
/usr/include/c++/6/bits/stl_iterator_base_funcs.h:217:5: note: template<class _BidirectionalIterator> _BidirectionalIterator std::prev(_BidirectionalIterator, typename std::iterator_traits<_Iter>::difference_type)
prev(_BidirectionalIterator __x, typename
^~~~
main.cpp:102:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(k = 0 ; k < G[j].size() ; k ++)
~~^~~~~~~~~~~~~
main.cpp:109:29: error: reference to 'prev' is ambiguous
prev[bm][G[j][k].nod] = j;
^~~~
main.cpp:18:28: note: candidates are: int prev [262144][19]
int d[1 << 18][NMAX + 1] , prev[1 << 18][NMAX + 1] , fbd;
^~~~
In file included from /usr/include/c++/6/bits/stl_algobase.h:66:0,
from /usr/include/c++/6/bits/char_traits.h:39,
from /usr/include/c++/6/string:40,
from main.cpp:2:
/usr/include/c++/6/bits/stl_iterator_base_funcs.h:217:5: note: template<class _BidirectionalIterator> _BidirectionalIterator std::prev(_BidirectionalIterator, typename std::iterator_traits<_Iter>::difference_type)
prev(_BidirectionalIterator __x, typename
^~~~
main.cpp:121:11: error: reference to 'prev' is ambiguous
while(prev[l][c] != -1)
^~~~
main.cpp:18:28: note: candidates are: int prev [262144][19]
int d[1 << 18][NMAX + 1] , prev[1 << 18][NMAX + 1] , fbd;
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !