Borderou de evaluare (job #2789239)
Utilizator | Data | 27 octombrie 2021 11:01:19 | |
---|---|---|---|
Problema | Sortare topologica | Status | done |
Runda | Arhiva educationala | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:13:14: error: 'std::vector<int> time' redeclared as different kind of entity
13 | vector <int> time;
| ^~~~
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 dfs(int)':
main.cpp:21:10: error: request for member 'push_back' in 'time', which is of non-class type 'time_t(time_t*) throw ()' {aka 'long int(long int*)'}
21 | time.push_back(node);
| ^~~~~~~~~
main.cpp: In function 'int main()':
main.cpp:35:51: error: request for member 'rbegin' in 'time', which is of non-class type 'time_t(time_t*) throw ()' {aka 'long int(long int*)'}
35 | for(vector <int> ::reverse_iterator it = time.rbegin(); it != time.rend(); ++it)
| ^~~~~~
main.cpp:35:72: error: request for member 'rend' in 'time', which is of non-class type 'time_t(time_t*) throw ()' {aka 'long int(long int*)'}
35 | for(vector <int> ::reverse_iterator it = time.rbegin(); it != time.rend(); ++it)
| ^~~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !