Borderou de evaluare (job #2799363)
Utilizator | Data | 13 noiembrie 2021 04:44:27 | |
---|---|---|---|
Problema | Componente biconexe | Status | done |
Runda | Arhiva educationala | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:11:33: warning: passing NULL to non-pointer argument 2 of 'std::vector<_Tp, _Alloc>::vector(std::vector<_Tp, _Alloc>::size_type, const value_type&, const allocator_type&) [with _Tp = int; _Alloc = std::allocator<int>; std::vector<_Tp, _Alloc>::size_type = long unsigned int; std::vector<_Tp, _Alloc>::value_type = int; std::vector<_Tp, _Alloc>::allocator_type = std::allocator<int>]' [-Wconversion-null]
11 | vector <int> parent(100001, NULL);
| ^
In file included from /usr/include/c++/10/vector:67,
from main.cpp:3:
/usr/include/c++/10/bits/stl_vector.h:522:47: note: declared here
522 | vector(size_type __n, const value_type& __value,
| ~~~~~~~~~~~~~~~~~~^~~~~~~
main.cpp:13:5: error: 'int time' redeclared as different kind of entity
13 | int time=0;
| ^~~~
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 AP(int)':
main.cpp:17:5: warning: ISO C++ forbids incrementing a pointer of type 'time_t (*)(time_t*) throw ()' {aka 'long int (*)(long int*)'} [-Wpointer-arith]
17 | time++;
| ^~~~
main.cpp:17:5: error: lvalue required as increment operand
main.cpp:18:12: error: invalid conversion from 'time_t (*)(time_t*) throw ()' {aka 'long int (*)(long int*)'} to '__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type' {aka 'int'} [-fpermissive]
18 | low[v]=time;
| ^~~~
| |
| time_t (*)(time_t*) throw () {aka long int (*)(long int*)}
main.cpp:19:13: error: invalid conversion from 'time_t (*)(time_t*) throw ()' {aka 'long int (*)(long int*)'} to '__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type' {aka 'int'} [-fpermissive]
19 | cost[v]=time;
| ^~~~
| |
| time_t (*)(time_t*) throw () {aka long int (*)(long int*)}
main.cpp:21:20: 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<muchii[v].size();i++){
| ~^~~~~~~~~~~~~~~~~
main.cpp:27:32: warning: NULL used in arithmetic [-Wpointer-arith]
27 | if (parent[v]==NULL && child > 1)
| ^~~~
main.cpp:29:31: warning: NULL used in arithmetic [-Wpointer-arith]
29 | if(parent[v]!=NULL && low[muchii[v][i]] >= cost[v])
| ^~~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !