Main.cpp: In function 'int main()':
Main.cpp:9:17: warning: format '%d' expects argument of type 'int*', but argument 2 has type '__gnu_cxx::__alloc_traits<std::allocator<long long int>, long long int>::value_type*' {aka 'long long int*'} [-Wformat=]
9 | scanf("%d",&nums[i]);
| ~^
| |
| int*
| %lld
Main.cpp:6:10: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
6 | scanf("%lld",&n);
| ~~~~~^~~~~~~~~~~
Main.cpp:9:14: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
9 | scanf("%d",&nums[i]);
| ~~~~~^~~~~~~~~~~~~~~