Borderou de evaluare (job #1018194)
Utilizator | Data | 28 octombrie 2013 23:32:44 | |
---|---|---|---|
Problema | Return of the MVC | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:18:22: error: ‘int select [91][91]’ redeclared as different kind of symbol
int select[NMAX][NMAX];
^
In file included from /usr/include/sys/types.h:220:0,
from /usr/include/stdlib.h:320,
from /usr/local/include/c++/4.8.0/cstdlib:72,
from /usr/local/include/c++/4.8.0/ext/string_conversions.h:41,
from /usr/local/include/c++/4.8.0/bits/basic_string.h:2817,
from /usr/local/include/c++/4.8.0/string:52,
from /usr/local/include/c++/4.8.0/bits/locale_classes.h:40,
from /usr/local/include/c++/4.8.0/bits/ios_base.h:41,
from /usr/local/include/c++/4.8.0/ios:42,
from /usr/local/include/c++/4.8.0/ostream:38,
from /usr/local/include/c++/4.8.0/iostream:39,
from user.cpp:1:
/usr/include/sys/select.h:109: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 ‘void back(int, int, int, int, int)’:
user.cpp:58:40: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i = 0; i<graf[x].size(); i++)
^
user.cpp:61:25: warning: pointer to a function used in arithmetic [-Wpointer-arith]
if (select[x][vecin] == 0)
^
user.cpp:61:32: warning: pointer to a function used in arithmetic [-Wpointer-arith]
if (select[x][vecin] == 0)
^
user.cpp:63:25: warning: pointer to a function used in arithmetic [-Wpointer-arith]
select[x][vecin] = pos;
^
user.cpp:63:32: warning: pointer to a function used in arithmetic [-Wpointer-arith]
select[x][vecin] = pos;
^
user.cpp:63:34: error: assignment of read-only location ‘*(select + (((sizetype)x) + ((sizetype)vecin)))’
select[x][vecin] = pos;
^
user.cpp:63:34: error: cannot convert ‘int’ to ‘int(int, fd_set*, fd_set*, fd_set*, timeval*)’ in assignment
user.cpp:64:29: warning: pointer to a function used in arithmetic [-Wpointer-arith]
select[vecin][x] = pos;
^
user.cpp:64:32: warning: pointer to a function used in arithmetic [-Wpointer-arith]
select[vecin][x] = pos;
^
user.cpp:64:34: error: assignment of read-only location ‘*(select + (((sizetype)vecin) + ((sizetype)x)))’
select[vecin][x] = pos;
^
user.cpp:64:34: error: cannot convert ‘int’ to ‘int(int, fd_set*, fd_set*, fd_set*, timeval*)’ in assignment
user.cpp:69:41: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i = 0; i<x_vecini.size(); i++)
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !