prison.cpp:12:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
12 | main() {
| ^~~~
prison.cpp: In function 'int main()':
prison.cpp:40:22: warning: comparison of integer expressions of different signedness: 'std::priority_queue<long long int, std::vector<long long int>, std::greater<long long int> >::size_type' {aka 'long unsigned int'} and 'long long int' [-Wsign-compare]
40 | while (pq.size() > D) {
| ~~~~~~~~~~^~~
prison.cpp:21:30: warning: variable 'r' set but not used [-Wunused-but-set-variable]
21 | int l = -1 + (A[0] > T), r = 0;
| ^
prison.cpp:14:10: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
14 | scanf("%lld %lld %lld", &N, &D, &T);
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
prison.cpp:15:38: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
15 | for (int i = 0; i < N; i++) scanf("%lld", &A[i]);
| ~~~~~^~~~~~~~~~~~~~~