Borderou de evaluare (job #2610754)
Utilizator | Data | 5 mai 2020 16:53:32 | |
---|---|---|---|
Problema | Componente biconexe | Status | done |
Runda | Arhiva educationala | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:16:18: error: 'int time [100002]' redeclared as different kind of symbol
int time[NMAX + 2], lowTime[NMAX + 2];
^
In file included from /usr/include/pthread.h:24:0,
from /usr/include/x86_64-linux-gnu/c++/6/bits/gthr-default.h:35,
from /usr/include/x86_64-linux-gnu/c++/6/bits/gthr.h:148,
from /usr/include/c++/6/ext/atomicity.h:35,
from /usr/include/c++/6/bits/ios_base.h:39,
from /usr/include/c++/6/ios:42,
from /usr/include/c++/6/istream:38,
from /usr/include/c++/6/fstream:38,
from main.cpp:1:
/usr/include/time.h:192:15: note: previous declaration 'time_t time(time_t*)'
extern time_t time (time_t *__timer) __THROW;
^~~~
main.cpp: In function 'void dfs(int, int)':
main.cpp:25:11: warning: pointer to a function used in arithmetic [-Wpointer-arith]
time[node] = lowTime[node] = time[dady] + 1;
^
main.cpp:25:40: warning: pointer to a function used in arithmetic [-Wpointer-arith]
time[node] = lowTime[node] = time[dady] + 1;
^
main.cpp:25:44: warning: pointer to a function used in arithmetic [-Wpointer-arith]
time[node] = lowTime[node] = time[dady] + 1;
^
main.cpp:25:42: error: invalid conversion from 'time_t (*)(time_t*) throw () {aka long int (*)(long int*) throw ()}' to 'int' [-fpermissive]
time[node] = lowTime[node] = time[dady] + 1;
~~~~~~~~~~~^~~
main.cpp:25:44: error: assignment of read-only location '*(time + ((sizetype)node))'
time[node] = lowTime[node] = time[dady] + 1;
^
main.cpp:25:44: error: cannot convert 'int' to 'time_t(time_t*) throw () {aka long int(long int*) throw ()}' in assignment
main.cpp:32:14: warning: pointer to a function used in arithmetic [-Wpointer-arith]
if(time[it])
^
main.cpp:34:47: warning: pointer to a function used in arithmetic [-Wpointer-arith]
lowTime[node] = min(lowTime[node], time[it]);
^
main.cpp:34:48: error: no matching function for call to 'min(int&, time_t (&)(time_t*) throw ())'
lowTime[node] = min(lowTime[node], time[it]);
^
In file included from /usr/include/c++/6/bits/char_traits.h:39:0,
from /usr/include/c++/6/ios:40,
from /usr/include/c++/6/istream:38,
from /usr/include/c++/6/fstream:38,
from main.cpp:1:
/usr/include/c++/6/bits/stl_algobase.h:195:5: note: candidate: template<class _Tp> constexpr const _Tp& std::min(const _Tp&, const _Tp&)
min(const _Tp& __a, const _Tp& __b)
^~~
/usr/include/c++/6/bits/stl_algobase.h:195:5: note: template argument deduction/substitution failed:
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !