fork download
  1. #include <iostream>
  2. using namespace std;
  3. #include <queue>
  4. int main() {
  5. std::priority_queue<int, std::greater<int> >> nodes;
  6. return 0;
  7. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp: In function ‘int main()’:
prog.cpp:5:36: error: no type named ‘value_type’ in ‘struct std::greater<int>’
      std::priority_queue<int, std::greater<int> >> nodes;
                                    ^~~~~~~~~~~~
prog.cpp:5:36: error: template argument 3 is invalid
prog.cpp:5:49: error: expected unqualified-id before ‘>’ token
      std::priority_queue<int, std::greater<int> >> nodes;
                                                 ^~
stdout
Standard output is empty