bosses.cpp: In function 'int dfs(int, int)':
bosses.cpp:16:20: warning: integer overflow in expression [-Woverflow]
sal[i] = INT_MAX*5;
^
bosses.cpp: In function 'int main()':
bosses.cpp:56:9: warning: unused variable 'y' [-Wunused-variable]
int x, y;
^
bosses.cpp:57:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &n);
~~~~~^~~~~~~~~~
bosses.cpp:59:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &m);
~~~~~^~~~~~~~~~
bosses.cpp:61:9: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &x);
~~~~~^~~~~~~~~~