Borderou de evaluare (job #3273975)
Utilizator | Data | 4 februarie 2025 18:05:28 | |
---|---|---|---|
Problema | Dragoni | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:17:5: error: ISO C++ forbids declaration of 'operator()' with no type [-fpermissive]
17 | operator ()(pair<int,int> a, pair<int,int> b)
| ^~~~~~~~
In file included from /usr/include/c++/12.2.1/queue:64,
from /usr/include/c++/12.2.1/x86_64-pc-linux-gnu/bits/stdc++.h:86,
from main.cpp:1:
/usr/include/c++/12.2.1/bits/stl_queue.h: In instantiation of 'class std::priority_queue<int, std::vector<std::pair<int, int> >, cmp>':
main.cpp:22:51: required from here
/usr/include/c++/12.2.1/bits/stl_queue.h:522:67: error: static assertion failed: value_type must be the same as the underlying container
522 | static_assert(is_same<_Tp, typename _Sequence::value_type>::value,
| ^~~~~
/usr/include/c++/12.2.1/bits/stl_queue.h:522:67: note: 'std::integral_constant<bool, false>::value' evaluates to false
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !