Borderou de evaluare (job #2671668)
Utilizator | Data | 12 noiembrie 2020 15:42:42 | |
---|---|---|---|
Problema | Maimute | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:8:34: error: 'std::pair<int, int> time [10005]' redeclared as different kind of symbol
std :: pair <int, int> time[N_MAX];
^
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/ostream:38,
from /usr/include/c++/6/iostream:39,
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)':
main.cpp:12:14: warning: pointer to a function used in arithmetic [-Wpointer-arith]
time[node].first = ++t;
^
main.cpp:12:16: error: request for member 'first' in '*(time + ((sizetype)node))', which is of non-class type 'time_t(time_t*) throw () {aka long int(long int*) throw ()}'
time[node].first = ++t;
^~~~~
main.cpp:18:14: warning: pointer to a function used in arithmetic [-Wpointer-arith]
time[node].second = ++t;
^
main.cpp:18:16: error: request for member 'second' in '*(time + ((sizetype)node))', which is of non-class type 'time_t(time_t*) throw () {aka long int(long int*) throw ()}'
time[node].second = ++t;
^~~~~~
main.cpp: In function 'int main()':
main.cpp:40:21: warning: pointer to a function used in arithmetic [-Wpointer-arith]
if ( (time[a].first < time[b].first and time[a].second > time[b].second) || (time[b].first < time[a].first and time[b].second > time[a].second))
^
main.cpp:40:23: error: request for member 'first' in '*(time + ((sizetype)a))', which is of non-class type 'time_t(time_t*) throw () {aka long int(long int*) throw ()}'
if ( (time[a].first < time[b].first and time[a].second > time[b].second) || (time[b].first < time[a].first and time[b].second > time[a].second))
^~~~~
main.cpp:40:37: warning: pointer to a function used in arithmetic [-Wpointer-arith]
if ( (time[a].first < time[b].first and time[a].second > time[b].second) || (time[b].first < time[a].first and time[b].second > time[a].second))
^
main.cpp:40:39: error: request for member 'first' in '*(time + ((sizetype)b))', which is of non-class type 'time_t(time_t*) throw () {aka long int(long int*) throw ()}'
if ( (time[a].first < time[b].first and time[a].second > time[b].second) || (time[b].first < time[a].first and time[b].second > time[a].second))
^~~~~
main.cpp:40:55: warning: pointer to a function used in arithmetic [-Wpointer-arith]
if ( (time[a].first < time[b].first and time[a].second > time[b].second) || (time[b].first < time[a].first and time[b].second > time[a].second))
^
main.cpp:40:57: error: request for member 'second' in '*(time + ((sizetype)a))', which is of non-class type 'time_t(time_t*) throw () {aka long int(long int*) throw ()}'
if ( (time[a].first < time[b].first and time[a].second > time[b].second) || (time[b].first < time[a].first and time[b].second > time[a].second))
^~~~~~
main.cpp:40:72: warning: pointer to a function used in arithmetic [-Wpointer-arith]
if ( (time[a].first < time[b].first and time[a].second > time[b].second) || (time[b].first < time[a].first and time[b].second > time[a].second))
^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !