Borderou de evaluare (job #2611829)
Utilizator | Data | 7 mai 2020 17:29:20 | |
---|---|---|---|
Problema | Petrica | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:16:15: error: 'node time [201]' redeclared as different kind of symbol
}time[NMAX + 1];
^
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:23:12: warning: pointer to a function used in arithmetic [-Wpointer-arith]
time[node].tin = ++k;
^
main.cpp:23:14: error: request for member 'tin' in '*(time + ((sizetype)node))', which is of non-class type 'time_t(time_t*) throw () {aka long int(long int*) throw ()}'
time[node].tin = ++k;
^~~
main.cpp:26:16: warning: pointer to a function used in arithmetic [-Wpointer-arith]
if( time[it].tin == 0 )
^
main.cpp:26:18: error: request for member 'tin' in '*(time + ((sizetype)it))', which is of non-class type 'time_t(time_t*) throw () {aka long int(long int*) throw ()}'
if( time[it].tin == 0 )
^~~
main.cpp:29:12: warning: pointer to a function used in arithmetic [-Wpointer-arith]
time[node].tout = ++k;
^
main.cpp:29:14: error: request for member 'tout' in '*(time + ((sizetype)node))', which is of non-class type 'time_t(time_t*) throw () {aka long int(long int*) throw ()}'
time[node].tout = ++k;
^~~~
main.cpp: In function 'int stramos(int, int)':
main.cpp:33:13: warning: pointer to a function used in arithmetic [-Wpointer-arith]
if( time[b].tin <= time[a].tin && time[a].tout <= time[b].tout )
^
main.cpp:33:15: error: request for member 'tin' in '*(time + ((sizetype)b))', which is of non-class type 'time_t(time_t*) throw () {aka long int(long int*) throw ()}'
if( time[b].tin <= time[a].tin && time[a].tout <= time[b].tout )
^~~
main.cpp:33:28: warning: pointer to a function used in arithmetic [-Wpointer-arith]
if( time[b].tin <= time[a].tin && time[a].tout <= time[b].tout )
^
main.cpp:33:30: error: request for member 'tin' in '*(time + ((sizetype)a))', which is of non-class type 'time_t(time_t*) throw () {aka long int(long int*) throw ()}'
if( time[b].tin <= time[a].tin && time[a].tout <= time[b].tout )
^~~
main.cpp:33:43: warning: pointer to a function used in arithmetic [-Wpointer-arith]
if( time[b].tin <= time[a].tin && time[a].tout <= time[b].tout )
^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !