Main.cc: In function ‘int findMinHeightDifference(ll, std::vector&, std::vector&, std::vector&, std::vector&)’:
Main.cc:50:73: error: wrong number of template arguments (0, should be 1)
50 | priority_queue, vector>, greater<>> minHeap;
| ^
In file included from /usr/include/c++/11/string:48,
from /usr/include/c++/11/bits/locale_classes.h:40,
from /usr/include/c++/11/bits/ios_base.h:41,
from /usr/include/c++/11/ios:42,
from /usr/include/c++/11/istream:38,
from /usr/include/c++/11/sstream:38,
from /usr/include/c++/11/complex:45,
from /usr/include/c++/11/ccomplex:39,
from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:54,
from Main.cc:1:
/usr/include/c++/11/bits/stl_function.h:385:12: note: provided for ‘template struct std::greater’
385 | struct greater : public binary_function<_Tp, _Tp, bool>
| ^~~~~~~
Main.cc:50:74: error: template argument 3 is invalid
50 | priority_queue, vector>, greater<>> minHeap;
| ^~
Main.cc:54:17: error: request for member ‘push’ in ‘minHeap’, which is of non-class type ‘int’
54 | minHeap.push(make_tuple(heights[i][0], i, 0));
| ^~~~
Main.cc:60:48: error: request for member ‘top’ in ‘minHeap’, which is of non-class type ‘int’
60 | tuple topElement = minHeap.top();
| ^~~
Main.cc:64:17: error: request for member ‘pop’ in ‘minHeap’, which is of non-class type ‘int’
64 | minHeap.pop();
| ^~~
Main.cc:73:21: error: request for member ‘push’ in ‘minHeap’, which is of non-class type ‘int’
73 | minHeap.push(make_tuple(nextHeight, classIndex, studentIndex + 1));
| ^~~~