Borderou de evaluare (job #2875902)
Utilizator | Data | 22 martie 2022 16:20:37 | |
---|---|---|---|
Problema | Graf | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:12:14: error: 'int time [7500]' redeclared as different kind of entity
12 | int time[7500];
| ^
In file included from /usr/include/pthread.h:23,
from /usr/include/x86_64-linux-gnu/c++/10/bits/gthr-default.h:35,
from /usr/include/x86_64-linux-gnu/c++/10/bits/gthr.h:148,
from /usr/include/c++/10/ext/atomicity.h:35,
from /usr/include/c++/10/bits/ios_base.h:39,
from /usr/include/c++/10/ios:42,
from /usr/include/c++/10/ostream:38,
from /usr/include/c++/10/iostream:39,
from main.cpp:1:
/usr/include/time.h:75:15: note: previous declaration 'time_t time(time_t*)'
75 | extern time_t time (time_t *__timer) __THROW;
| ^~~~
main.cpp: In function 'void BFS(int, int)':
main.cpp:21:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
21 | for(int i=0;i<V[curentNode].size();i++)
| ~^~~~~~~~~~~~~~~~~~~~~
main.cpp:24:26: warning: pointer to a function used in arithmetic [-Wpointer-arith]
24 | if(time[vecin]==0)
| ^
main.cpp:26:31: warning: pointer to a function used in arithmetic [-Wpointer-arith]
26 | time[vecin]=time[curentNode]+1;
| ^
main.cpp:26:48: warning: pointer to a function used in arithmetic [-Wpointer-arith]
26 | time[vecin]=time[curentNode]+1;
| ^
main.cpp:26:49: warning: pointer to a function used in arithmetic [-Wpointer-arith]
26 | time[vecin]=time[curentNode]+1;
| ~~~~~~~~~~~~~~~~^~
main.cpp:26:32: error: assignment of read-only location '*(time + ((sizetype)vecin))'
26 | time[vecin]=time[curentNode]+1;
| ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~
main.cpp:30:27: warning: pointer to a function used in arithmetic [-Wpointer-arith]
30 | time[vecin]=min(time[vecin],time[curentNode]+1);
| ^
main.cpp:30:43: warning: pointer to a function used in arithmetic [-Wpointer-arith]
30 | time[vecin]=min(time[vecin],time[curentNode]+1);
| ^
main.cpp:30:60: warning: pointer to a function used in arithmetic [-Wpointer-arith]
30 | time[vecin]=min(time[vecin],time[curentNode]+1);
| ^
main.cpp:30:61: warning: pointer to a function used in arithmetic [-Wpointer-arith]
30 | time[vecin]=min(time[vecin],time[curentNode]+1);
| ~~~~~~~~~~~~~~~~^~
main.cpp:30:63: error: no matching function for call to 'min(time_t (&)(time_t*) throw (), time_t (*)(time_t*) throw ())'
30 | time[vecin]=min(time[vecin],time[curentNode]+1);
| ^
In file included from /usr/include/c++/10/bits/char_traits.h:39,
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !