Main.cpp: In function 'int main()':
Main.cpp:10:35: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'long long int*' [-Wformat=]
10 | for(int i=1;i<=n;i++) scanf("%d",&dane[i]);
| ~^ ~~~~~~~~
| | |
| | long long int*
| int*
| %lld
Main.cpp:9:10: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
9 | scanf("%d",&n);
| ~~~~~^~~~~~~~~
Main.cpp:10:32: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
10 | for(int i=1;i<=n;i++) scanf("%d",&dane[i]);
| ~~~~~^~~~~~~~~~~~~~~