bridge.cpp: In function 'int main()':
bridge.cpp:23:21: warning: format '%d' expects argument of type 'int', but argument 2 has type 'long long int' [-Wformat=]
printf("%d\n", ans);
^
bridge.cpp:28:20: warning: format '%d' expects argument of type 'int', but argument 2 has type 'long long int' [-Wformat=]
printf("%d\n", ans);
^
bridge.cpp:11:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d", &K, &N);
~~~~~^~~~~~~~~~~~~~~~
bridge.cpp:13:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%c %d %c %d\n", &x, &u, &y, &v);
~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~