sazetak.cpp: In function 'int main()':
sazetak.cpp:10:16: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'int' [-Wformat=]
scanf("%d", k);
^
sazetak.cpp:8:24: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d", &n, &m);
^
sazetak.cpp:10:17: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", k);
^
sazetak.cpp:10:17: warning: 'k' may be used uninitialized in this function [-Wmaybe-uninitialized]