2016_ho_t1.cpp: In function 'int main()':
2016_ho_t1.cpp:8:29: warning: format '%lld' expects argument of type 'long long int*', but argument 4 has type 'int*' [-Wformat=]
scanf("%d%d%lld", &n, &m,&K);
~~^
2016_ho_t1.cpp:8:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d%lld", &n, &m,&K);
~~~~~^~~~~~~~~~~~~~~~~~~~~~~
2016_ho_t1.cpp:10:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &w[i]);
~~~~~^~~~~~~~~~~~~