Borderou de evaluare (job #2567958)
Utilizator | Data | 3 martie 2020 19:52:11 | |
---|---|---|---|
Problema | Ramen | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:13:47: error: 'std::priority_queue<int, std::vector<int>, std::greater<int> > time' redeclared as different kind of symbol
priority_queue<int,vector<int>,greater<int> > time;
^~~~
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 'int main()':
main.cpp:24:14: error: request for member 'push' in 'time', which is of non-class type 'time_t(time_t*) throw () {aka long int(long int*) throw ()}'
time.push(x + d);
^~~~
main.cpp:26:17: error: request for member 'empty' in 'time', which is of non-class type 'time_t(time_t*) throw () {aka long int(long int*) throw ()}'
while(!time.empty())
^~~~~
main.cpp:28:20: error: request for member 'top' in 'time', which is of non-class type 'time_t(time_t*) throw () {aka long int(long int*) throw ()}'
arv = time.top();
^~~
main.cpp:30:14: error: request for member 'pop' in 'time', which is of non-class type 'time_t(time_t*) throw () {aka long int(long int*) throw ()}'
time.pop();
^~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !