Borderou de evaluare (job #2073747)
Utilizator | Data | 23 noiembrie 2017 17:28:04 | |
---|---|---|---|
Problema | Algoritmul lui Dijkstra | Status | done |
Runda | Arhiva educationala | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:14:28: error: ‘int select [50005]’ redeclared as different kind of symbol
int drum[Nmax], select[Nmax];
^
In file included from /usr/include/i386-linux-gnu/sys/types.h:220:0,
from /usr/include/stdlib.h:320,
from /usr/include/c++/4.8/cstdlib:72,
from /usr/include/c++/4.8/ext/string_conversions.h:41,
from /usr/include/c++/4.8/bits/basic_string.h:2815,
from /usr/include/c++/4.8/string:52,
from /usr/include/c++/4.8/bits/locale_classes.h:40,
from /usr/include/c++/4.8/bits/ios_base.h:41,
from /usr/include/c++/4.8/ios:42,
from /usr/include/c++/4.8/istream:38,
from /usr/include/c++/4.8/fstream:38,
from user.cpp:1:
/usr/include/i386-linux-gnu/sys/select.h:107:12: error: previous declaration of ‘int select(int, fd_set*, fd_set*, fd_set*, timeval*)’
extern int select (int __nfds, fd_set *__restrict __readfds,
^
user.cpp: In function ‘int main()’:
user.cpp:28:36: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (auto i = 0; i < A[1].size(); i++)
^
user.cpp:35:13: warning: pointer to a function used in arithmetic [-Wpointer-arith]
select[1] = 1;
^
user.cpp:35:15: error: assignment of read-only location ‘*(select + 1u)’
select[1] = 1;
^
user.cpp:35:15: error: cannot convert ‘int’ to ‘int(int, fd_set*, fd_set*, fd_set*, timeval*)’ in assignment
user.cpp:42:26: warning: pointer to a function used in arithmetic [-Wpointer-arith]
if (!select[i] && drum[i] < dmin)
^
user.cpp:48:22: warning: pointer to a function used in arithmetic [-Wpointer-arith]
select[vf_min] = 1;
^
user.cpp:48:24: error: assignment of read-only location ‘*(select + ((sizetype)vf_min))’
select[vf_min] = 1;
^
user.cpp:48:24: error: cannot convert ‘int’ to ‘int(int, fd_set*, fd_set*, fd_set*, timeval*)’ in assignment
user.cpp:50:45: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (auto i = 0; i < A[vf_min].size(); i++)
^
user.cpp:51:43: warning: pointer to a function used in arithmetic [-Wpointer-arith]
if (!select[A[vf_min][i].first] && drum[A[vf_min][i].first] > dmin + A[vf_min][i].second)
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !