safety.cpp:3: warning: ignoring '#pragma warning ' [-Wunknown-pragmas]
3 | #pragma warning (disable:4996)
|
safety.cpp: In function 'int main()':
safety.cpp:36:11: warning: format '%d' expects argument of type 'int', but argument 2 has type 'long long int' [-Wformat=]
36 | printf("%d\n", ans);
| ~^ ~~~
| | |
| int long long int
| %lld
safety.cpp:30:7: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
30 | scanf("%d%d", &N, &H);
| ~~~~~^~~~~~~~~~~~~~~~
safety.cpp:32:35: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
32 | for (int i = 0; i < N; i++) scanf("%d", &S[i]);
| ~~~~~^~~~~~~~~~~~~