Borderou de evaluare (job #2175490)
Utilizator | Data | 16 martie 2018 17:28:09 | |
---|---|---|---|
Problema | Proc2 | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:7:20: error: ‘std::priority_queue<int> free’ redeclared as different kind of symbol
priority_queue<int>free;
^
In file included from /usr/include/c++/5/cstdlib:72:0,
from /usr/include/c++/5/ext/string_conversions.h:41,
from /usr/include/c++/5/bits/basic_string.h:5249,
from /usr/include/c++/5/string:52,
from /usr/include/c++/5/bits/locale_classes.h:40,
from /usr/include/c++/5/bits/ios_base.h:41,
from /usr/include/c++/5/ios:42,
from /usr/include/c++/5/istream:38,
from /usr/include/c++/5/fstream:38,
from user.cpp:1:
/usr/include/stdlib.h:483:13: note: previous declaration ‘void free(void*)’
extern void free (void *__ptr) __THROW;
^
user.cpp: In function ‘int main()’:
user.cpp:20:14: error: request for member ‘push’ in ‘free’, which is of non-class type ‘void(void*) throw ()’
free.push(-i);
^
user.cpp:27:18: error: request for member ‘push’ in ‘free’, which is of non-class type ‘void(void*) throw ()’
free.push(-pr);
^
user.cpp:29:18: error: request for member ‘top’ in ‘free’, which is of non-class type ‘void(void*) throw ()’
pr=-free.top();
^
user.cpp:31:14: error: request for member ‘pop’ in ‘free’, which is of non-class type ‘void(void*) throw ()’
free.pop();
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !