kralj.cpp: In function 'int main()':
kralj.cpp:38:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int k = 0; k < f[j].size(); k++){
~~^~~~~~~~~~~~~
kralj.cpp:9:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf(" %d", &n);
~~~~~^~~~~~~~~~~
kralj.cpp:11:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf(" %d", &a);
~~~~~^~~~~~~~~~~
kralj.cpp:15:36: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
for(int i = 1; i <= n; i++) scanf(" %d", &dwarves[i]);
~~~~~^~~~~~~~~~~~~~~~~~~~
kralj.cpp:17:36: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
for(int i = 1; i <= n; i++) scanf(" %d", &elves[i]);
~~~~~^~~~~~~~~~~~~~~~~~
kralj.cpp:51:5: warning: 'start_point' may be used uninitialized in this function [-Wmaybe-uninitialized]
if( j == start_point ) break;
^~