Borderou de evaluare (job #2739612)
Utilizator | Data | 8 aprilie 2021 23:17:22 | |
---|---|---|---|
Problema | Algoritmul Bellman-Ford | Status | done |
Runda | Arhiva educationala | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:10:29: error: 'int select [50005]' redeclared as different kind of symbol
int val[50005], select[50005], update[50005];
^
In file included from /usr/include/x86_64-linux-gnu/sys/types.h:219:0,
from /usr/include/stdlib.h:314,
from /usr/include/c++/6/cstdlib:75,
from /usr/include/x86_64-linux-gnu/c++/6/bits/stdc++.h:47,
from main.cpp:1:
/usr/include/x86_64-linux-gnu/sys/select.h:106:12: note: previous declaration 'int select(int, fd_set*, fd_set*, fd_set*, timeval*)'
extern int select (int __nfds, fd_set *__restrict __readfds,
^~~~~~
main.cpp: In function 'int main()':
main.cpp:24:13: warning: pointer to a function used in arithmetic [-Wpointer-arith]
select[1] = 1;
^
main.cpp:24:17: error: assignment of read-only location '*(select + 1u)'
select[1] = 1;
^
main.cpp:24:17: error: cannot convert 'int' to 'int(int, fd_set*, fd_set*, fd_set*, timeval*)' in assignment
main.cpp:28:19: warning: pointer to a function used in arithmetic [-Wpointer-arith]
select[top] = 0;
^
main.cpp:28:23: error: assignment of read-only location '*(select + ((sizetype)top))'
select[top] = 0;
^
main.cpp:28:23: error: cannot convert 'int' to 'int(int, fd_set*, fd_set*, fd_set*, timeval*)' in assignment
main.cpp:34:31: warning: pointer to a function used in arithmetic [-Wpointer-arith]
if(!select[nod]){
^
main.cpp:36:31: warning: pointer to a function used in arithmetic [-Wpointer-arith]
select[nod] = 1;
^
main.cpp:36:35: error: assignment of read-only location '*(select + ((sizetype)nod))'
select[nod] = 1;
^
main.cpp:36:35: error: cannot convert 'int' to 'int(int, fd_set*, fd_set*, fd_set*, timeval*)' in assignment
main.cpp:13:15: warning: unused variable 'j' [-Wunused-variable]
int n,m,i,j,a,b,cost,top,nod;
^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !