Borderou de evaluare (job #3208362)
Utilizator | Data | 28 februarie 2024 12:59:59 | |
---|---|---|---|
Problema | Project management | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:20:19: error: 'interval time [102]' redeclared as different kind of entity
20 | interval time[NMAX];
| ^
In file included from /usr/include/pthread.h:23,
from /usr/include/c++/12.2.1/x86_64-pc-linux-gnu/bits/gthr-default.h:35,
from /usr/include/c++/12.2.1/x86_64-pc-linux-gnu/bits/gthr.h:148,
from /usr/include/c++/12.2.1/ext/atomicity.h:35,
from /usr/include/c++/12.2.1/bits/ios_base.h:39,
from /usr/include/c++/12.2.1/ios:42,
from /usr/include/c++/12.2.1/ostream:38,
from /usr/include/c++/12.2.1/iostream:39,
from main.cpp:1:
/usr/include/time.h:76:15: note: previous declaration 'time_t time(time_t*)'
76 | extern time_t time (time_t *__timer) __THROW;
| ^~~~
main.cpp: In function 'int dfs_T(int)':
main.cpp:59:17: warning: pointer to a function used in arithmetic [-Wpointer-arith]
59 | time[nod].start = 0;
| ^
main.cpp:59:19: error: request for member 'start' in '*(time + ((sizetype)nod))', which is of non-class type 'time_t(time_t*) noexcept' {aka 'long int(long int*) noexcept'}
59 | time[nod].start = 0;
| ^~~~~
main.cpp:65:20: warning: pointer to a function used in arithmetic [-Wpointer-arith]
65 | if (time[it].start == 0)
| ^
main.cpp:65:22: error: request for member 'start' in '*(time + ((sizetype)it))', which is of non-class type 'time_t(time_t*) noexcept' {aka 'long int(long int*) noexcept'}
65 | if (time[it].start == 0)
| ^~~~~
main.cpp:66:21: warning: pointer to a function used in arithmetic [-Wpointer-arith]
66 | time[nod].start = max(time[nod].start, dfs_T(it) + duration[it]);
| ^
main.cpp:66:23: error: request for member 'start' in '*(time + ((sizetype)nod))', which is of non-class type 'time_t(time_t*) noexcept' {aka 'long int(long int*) noexcept'}
66 | time[nod].start = max(time[nod].start, dfs_T(it) + duration[it]);
| ^~~~~
main.cpp:66:43: warning: pointer to a function used in arithmetic [-Wpointer-arith]
66 | time[nod].start = max(time[nod].start, dfs_T(it) + duration[it]);
| ^
main.cpp:66:45: error: request for member 'start' in '*(time + ((sizetype)nod))', which is of non-class type 'time_t(time_t*) noexcept' {aka 'long int(long int*) noexcept'}
66 | time[nod].start = max(time[nod].start, dfs_T(it) + duration[it]);
| ^~~~~
main.cpp:68:21: warning: pointer to a function used in arithmetic [-Wpointer-arith]
68 | time[nod].start = max(time[nod].start, time[it].start + duration[it]);
| ^
main.cpp:68:23: error: request for member 'start' in '*(time + ((sizetype)nod))', which is of non-class type 'time_t(time_t*) noexcept' {aka 'long int(long int*) noexcept'}
68 | time[nod].start = max(time[nod].start, time[it].start + duration[it]);
| ^~~~~
main.cpp:68:43: warning: pointer to a function used in arithmetic [-Wpointer-arith]
68 | time[nod].start = max(time[nod].start, time[it].start + duration[it]);
| ^
main.cpp:68:45: error: request for member 'start' in '*(time + ((sizetype)nod))', which is of non-class type 'time_t(time_t*) noexcept' {aka 'long int(long int*) noexcept'}
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !