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:44:14: warning: format '%d' expects argument of type 'int', but argument 2 has type 'long long int' [-Wformat=]
44 | printf("%d", ans);
| ~^ ~~~
| | |
| int long long int
| %lld
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:39: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
15 | for (int i = 1; i <= N; i++) scanf("%lld", &A[i]);
| ~~~~~^~~~~~~~~~~~~~~