prison.cpp:8:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
8 | main() {
| ^~~~
prison.cpp: In function 'int main()':
prison.cpp:10:10: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
10 | scanf("%d %d %d", &N, &D, &T);
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
prison.cpp:11:38: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
11 | for (int i = 0; i < N; i++) scanf("%d", &A[i]);
| ~~~~~^~~~~~~~~~~~~