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:36: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]
36 | while (pq.size() > D) {
| ~~~~~~~~~~^~~
prison.cpp:15:10: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
15 | scanf("%lld %lld %lld", &N, &D, &T);
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
prison.cpp:17:14: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
17 | scanf("%lld", &A[i]);
| ~~~~~^~~~~~~~~~~~~~~